forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.BotService to add versio…
…n preview/2021-05-01 (Azure#14225) * Adds base for updating Microsoft.BotService from version stable/2021-03-01 to version 2021-05-01 * Updates readme * Updates API version in new specs and examples * add operation result api's to support async operations * add private links support * fix issues in examples * fix more errors * fix prettier issues * add missing private links operation. some more fixes * fix model validation errors * address comments * remove properties bag * remove unintentional change in unrelated api * update example * change api version to have preview suffix * fix lint and model validation errors * change folder name to preview to match api version * add breaking changes from base branch * fix api version * fix prettier warnings * update readme * Update specification/botservice/resource-manager/readme.md Co-authored-by: JianyeXi <[email protected]> * check if rename works * remove system data since it's not support for other botservice * remove references to common types.json resource to avoid conflicts Co-authored-by: Swagat Mishra <[email protected]> Co-authored-by: JianyeXi <[email protected]>
- Loading branch information
Showing
42 changed files
with
4,828 additions
and
8 deletions.
There are no files selected for viewing
2,977 changes: 2,977 additions & 0 deletions
2,977
...tservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/botservice.json
Large diffs are not rendered by default.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
...nager/Microsoft.BotService/preview/2021-05-01-preview/examples/CheckNameAvailability.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2021-05-01-preview", | ||
"parameters": { | ||
"name": "testbotname", | ||
"type": "string" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"valid": true, | ||
"message": "custom message from server" | ||
} | ||
} | ||
} | ||
} |
117 changes: 117 additions & 0 deletions
117
.../resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/CreateBot.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname", | ||
"parameters": { | ||
"location": "West US", | ||
"sku": { | ||
"name": "S1" | ||
}, | ||
"etag": "etag1", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"kind": "sdk", | ||
"properties": { | ||
"description": "The description of the bot", | ||
"developerAppInsightKey": "appinsightskey", | ||
"developerAppInsightsApiKey": "appinsightsapikey", | ||
"developerAppInsightsApplicationId": "appinsightsappid", | ||
"displayName": "The Name of the bot", | ||
"endpoint": "http://mybot.coffee", | ||
"iconUrl": "http://myicon", | ||
"luisAppIds": [ | ||
"luisappid1", | ||
"luisappid2" | ||
], | ||
"luisKey": "luiskey", | ||
"msaAppId": "exampleappid", | ||
"isCmekEnabled": true, | ||
"cmekKeyVaultUrl": "https://myCmekKey", | ||
"isIsolated": false, | ||
"schemaTransformationVersion": "1.0" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"location": "West US", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"name": "samplebotname", | ||
"type": "Microsoft.BotService/botServices", | ||
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname", | ||
"kind": "sdk", | ||
"etag": "etag1", | ||
"properties": { | ||
"description": "The description of the bot", | ||
"developerAppInsightKey": "appinsightskey", | ||
"developerAppInsightsApplicationId": "appinsightsappid", | ||
"displayName": "The Name of the bot", | ||
"endpoint": "http://mybot.coffee", | ||
"endpointVersion": "version", | ||
"iconUrl": "http://myicon", | ||
"luisAppIds": [ | ||
"luisappid1", | ||
"luisappid2" | ||
], | ||
"msaAppId": "msaappid", | ||
"configuredChannels": [ | ||
"facebook", | ||
"groupme" | ||
], | ||
"enabledChannels": [ | ||
"facebook" | ||
], | ||
"isCmekEnabled": true, | ||
"cmekKeyVaultUrl": "https://myCmekKey", | ||
"isIsolated": false, | ||
"schemaTransformationVersion": "1.0" | ||
} | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"location": "West US", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"name": "samplebotname", | ||
"type": "Microsoft.BotService/botServices", | ||
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname", | ||
"kind": "sdk", | ||
"properties": { | ||
"description": "The description of the bot", | ||
"developerAppInsightsApplicationId": "appinsightsappid", | ||
"displayName": "The Name of the bot", | ||
"endpoint": "http://mybot.coffee", | ||
"endpointVersion": "version", | ||
"iconUrl": "http://myicon", | ||
"luisAppIds": [ | ||
"luisappid1", | ||
"luisappid2" | ||
], | ||
"msaAppId": "msaappid", | ||
"configuredChannels": [ | ||
"facebook", | ||
"groupme" | ||
], | ||
"enabledChannels": [ | ||
"facebook" | ||
], | ||
"isCmekEnabled": true, | ||
"cmekKeyVaultUrl": "https://myCmekKey", | ||
"isIsolated": false, | ||
"schemaTransformationVersion": "1.0" | ||
} | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
.../resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteBot.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteChannel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname", | ||
"channelName": "EmailChannel" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...ce-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteConnection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname", | ||
"connectionName": "sampleConnection" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...crosoft.BotService/preview/2021-05-01-preview/examples/DeleteDirectLineSpeechChannel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname", | ||
"channelName": "DirectLineSpeechChannel" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...osoft.BotService/preview/2021-05-01-preview/examples/DeletePrivateEndpointConnection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res6977", | ||
"resourceName": "sto2527", | ||
"privateEndpointConnectionName": "{privateEndpointConnectionName}", | ||
"api-version": "2021-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...er/Microsoft.BotService/preview/2021-05-01-preview/examples/DirectlineRegenerateKeys.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname", | ||
"channelName": "DirectLineChannel", | ||
"parameters": { | ||
"siteName": "testSiteName", | ||
"key": "key1" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"location": "global", | ||
"properties": { | ||
"channelName": "DirectLineChannel", | ||
"properties": { | ||
"sites": [ | ||
{ | ||
"siteId": "abcd", | ||
"siteName": "Default Site", | ||
"key": "key1", | ||
"key2": "key2", | ||
"isEnabled": true, | ||
"isV1Enabled": true, | ||
"isV3Enabled": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...rce-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetAlexaChannel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname", | ||
"channelName": "AlexaChannel" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"location": "global", | ||
"properties": { | ||
"channelName": "AlexaChannel", | ||
"properties": { | ||
"alexaSkillId": "alexa skill id", | ||
"urlFragment": "XUrlFragmentX", | ||
"serviceEndpointUri": "https://domain/XUrlFragmentX/botId", | ||
"isEnabled": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...ice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetBot.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"location": "West US", | ||
"tags": { | ||
"tag1": "value1", | ||
"tag2": "value2" | ||
}, | ||
"name": "samplebotname", | ||
"type": "Microsoft.BotService/botServices", | ||
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname", | ||
"kind": "sdk", | ||
"etag": "etag1", | ||
"properties": { | ||
"description": "The description of the bot", | ||
"developerAppInsightKey": "appinsightskey", | ||
"developerAppInsightsApplicationId": "appinsightsappid", | ||
"displayName": "The Name of the bot", | ||
"endpoint": "http://mybot.coffee", | ||
"endpointVersion": "version", | ||
"iconUrl": "http://myicon", | ||
"luisAppIds": [ | ||
"luisappid1", | ||
"luisappid2" | ||
], | ||
"msaAppId": "msaappid", | ||
"configuredChannels": [ | ||
"facebook", | ||
"groupme" | ||
], | ||
"enabledChannels": [ | ||
"facebook" | ||
], | ||
"isCmekEnabled": true, | ||
"cmekKeyVaultUrl": "https://myCmekKey", | ||
"isIsolated": false, | ||
"schemaTransformationVersion": "1.0" | ||
} | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetChannel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname", | ||
"channelName": "EmailChannel" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"location": "global", | ||
"properties": { | ||
"channelName": "EmailChannel", | ||
"properties": { | ||
"emailAddress": "[email protected]", | ||
"password": "pwd", | ||
"isEnabled": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...ource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetConnection.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subscription-id", | ||
"resourceGroupName": "OneResourceGroupName", | ||
"api-version": "2021-05-01-preview", | ||
"resourceName": "samplebotname", | ||
"connectionName": "sampleConnection" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"location": "global", | ||
"id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection", | ||
"etag": "etag1", | ||
"name": "sampleConnection", | ||
"properties": { | ||
"clientId": "sampleclientid", | ||
"clientSecret": null, | ||
"scopes": "samplescope", | ||
"serviceProviderId": "serviceproviderid", | ||
"serviceProviderDisplayName": "serviceProviderDisplayName", | ||
"parameters": [ | ||
{ | ||
"key": "key1", | ||
"value": "value1" | ||
}, | ||
{ | ||
"key": "key2", | ||
"value": "value2" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.