Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev botservice microsoft.bot service 2022 06 15 preview #19687

Merged
merged 12 commits into from
Aug 9, 2022
Prev Previous commit
Next Next commit
add QnAMakerEndpointKeys api
  • Loading branch information
Danieladu committed Jul 29, 2022
commit d2406c89ff4d109c4301452be1475a42cce5a619
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ australiaeast
australiasoutheast
authenticatable
Authenticode
authkey
authorityURL
authorizationrules
authpriv
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,51 @@
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listQnAMakerEndpointKeys": {
"post": {
"tags": [
"ListQnAMakerEndpointKeys"
],
"description": "Lists the QnA Maker endpoint keys",
"operationId": "QnAMakerEndpointKeys_Get",
"x-ms-examples": {
"List QnAMaker Endpoint Keys": {
"$ref": "./examples/ListQnAMakerEndpointKeys.json"
}
},
"parameters": [
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/QnAMakerEndpointKeysRequestBody"
},
"description": "The request body parameters to provide for the check name availability request"
},
{
"$ref": "#/parameters/apiVersionParameter"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "If resource is retrieved successfully, the service should return 200 (OK).",
"schema": {
"$ref": "#/definitions/QnAMakerEndpointKeysResponse"
}
},
"default": {
"description": "Error response describing why the operation failed",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets": {
"post": {
"tags": [
Expand Down Expand Up @@ -3207,6 +3252,42 @@
}
}
},
"QnAMakerEndpointKeysRequestBody": {
"description": "The request body for a request to Bot Service Management to list QnA Maker endpoint keys.",
"type": "object",
"properties": {
"hostname": {
"description": "the host name of the QnA Maker endpoint",
"type": "string"
},
"authkey": {
"description": "Subscription key which provides access to this API.",
"type": "string"
}
}
},
"QnAMakerEndpointKeysResponse": {
"type": "object",
"description": "Schema for EndpointKeys generate/refresh operations.",
"properties": {
"primaryEndpointKey": {
"type": "string",
"description": "Primary Access Key."
},
"secondaryEndpointKey": {
"type": "string",
"description": "Secondary Access Key."
},
"installedVersion": {
"type": "string",
"description": "Current version of runtime."
},
"lastStableVersion": {
"type": "string",
"description": "Latest version of runtime."
}
}
},
"OperationResultsDescription": {
"description": "The properties indicating the operation result of an operation on a service.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "subscription-id",
"api-version": "2022-06-15-preview",
"parameters": {
"hostname": "https://xxx.cognitiveservices.azure.com/",
"authkey": "testAuthKey"
}
},
"responses": {
"200": {
"body": {
"primaryEndpointKey": "sample_primaryEndpointKey",
"secondaryEndpointKey": "sample_secondaryEndpointKey",
"installedVersion": "4.1.0",
"lastStableVersion": "4.2.0"
}
}
}
}