diff --git a/custom-words.txt b/custom-words.txt index 3b3b89139e75..dd4fc49b011d 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -394,6 +394,8 @@ CMAF Cmdkey cmdlet cmdlets +cmek +Cmek CMKDW CMKHS CMMI diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/botservice.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/botservice.json index 1a04dadac557..62cbd6deda6d 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/botservice.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/botservice.json @@ -309,16 +309,19 @@ "description": "Creates a Channel registration for a Bot Service", "operationId": "Channels_Create", "x-ms-examples": { - "Create Bot": { + "Create Channel": { "$ref": "./examples/PutChannel.json" }, - "Create Alexa Bot": { + "Create Alexa Channel": { "$ref": "./examples/PutAlexaChannel.json" }, - "Create Line Bot": { + "Create Email Channel": { + "$ref": "./examples/PutEmailChannel.json" + }, + "Create Line Channel": { "$ref": "./examples/PutLineChannel.json" }, - "Create DirectLine Speech Bot": { + "Create DirectLine Speech Channel": { "$ref": "./examples/PutDirectLineSpeechChannel.json" } }, @@ -376,16 +379,16 @@ "description": "Updates a Channel registration for a Bot Service", "operationId": "Channels_Update", "x-ms-examples": { - "Update Bot": { + "Update Channel": { "$ref": "./examples/UpdateChannel.json" }, - "Update Alexa": { + "Update Alexa Channel": { "$ref": "./examples/UpdateAlexaChannel.json" }, - "Update Line": { + "Update Line Channel": { "$ref": "./examples/UpdateLineChannel.json" }, - "Update DirectLine Speech": { + "Update DirectLine Speech Channel": { "$ref": "./examples/UpdateDirectLineSpeechChannel.json" } }, @@ -444,10 +447,10 @@ "description": "Deletes a Channel registration from a Bot Service", "operationId": "Channels_Delete", "x-ms-examples": { - "Delete Bot": { + "Delete Channel": { "$ref": "./examples/DeleteChannel.json" }, - "Delete DirectLine Speech Bot": { + "Delete DirectLine Speech Channel": { "$ref": "./examples/DeleteDirectLineSpeechChannel.json" } }, @@ -497,16 +500,16 @@ "description": "Returns a BotService Channel registration specified by the parameters.", "operationId": "Channels_Get", "x-ms-examples": { - "Get Bot": { + "Get Channel": { "$ref": "./examples/GetChannel.json" }, - "Get Alexa Bot": { + "Get Alexa Channel": { "$ref": "./examples/GetAlexaChannel.json" }, - "Get Line Bot": { + "Get Line Channel": { "$ref": "./examples/GetLineChannel.json" }, - "Get DirectLine Speech Bot": { + "Get DirectLine Speech Channel": { "$ref": "./examples/GetDirectLineSpeechChannel.json" } }, @@ -603,7 +606,7 @@ "description": "Returns all the Channel registrations of a particular BotService resource", "operationId": "Channels_ListByResourceGroup", "x-ms-examples": { - "List Bots by Resource Group": { + "List Channels by Resource Group": { "$ref": "./examples/ListChannelsByBotService.json" } }, @@ -818,7 +821,7 @@ "BotConnection" ], "x-ms-examples": { - "Update Connection Setting": { + "List Connection Setting With Secrets": { "$ref": "./examples/GetConnection.json" } }, @@ -979,7 +982,7 @@ "BotConnection" ], "x-ms-examples": { - "Update Connection Setting": { + "Get Connection Setting": { "$ref": "./examples/GetConnection.json" } }, @@ -1024,7 +1027,7 @@ "description": "Deletes a Connection Setting registration for a Bot Service", "operationId": "BotConnection_Delete", "x-ms-examples": { - "Update Connection Setting": { + "Delete Connection Setting": { "$ref": "./examples/DeleteConnection.json" } }, @@ -1462,14 +1465,6 @@ "etag": { "type": "string", "description": "Entity Tag" - }, - "zones": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Entity zones", - "readOnly": true } } }, @@ -1523,7 +1518,11 @@ "x-ms-enum": { "name": "Kind", "modelAsString": true - } + }, + "x-ms-mutability": [ + "create", + "read" + ] }, "Bot": { "type": "object", @@ -1552,11 +1551,13 @@ }, "iconUrl": { "type": "string", - "description": "The Icon Url of the bot" + "description": "The Icon Url of the bot", + "default": "" }, "endpoint": { "type": "string", - "description": "The bot's endpoint" + "description": "The bot's endpoint", + "x-nullable": true }, "endpointVersion": { "type": "string", @@ -1596,11 +1597,19 @@ }, "msaAppId": { "type": "string", - "description": "Microsoft App Id for the bot" + "description": "Microsoft App Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] }, "msaAppTenantId": { "type": "string", - "description": "Microsoft App Tenant Id for the bot" + "description": "Microsoft App Tenant Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] }, "msaAppMSIResourceId": { "type": "string", @@ -1647,7 +1656,8 @@ }, "isCmekEnabled": { "type": "boolean", - "description": "Whether Cmek is enabled" + "description": "Whether Cmek is enabled", + "default": false }, "cmekKeyVaultUrl": { "type": "string", @@ -1658,6 +1668,14 @@ "description": "The CMK encryption status", "readOnly": true }, + "tenantId": { + "type": "string", + "description": "The Tenant Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] + }, "publicNetworkAccess": { "description": "Whether the bot is in an isolated network", "enum": [ @@ -1688,11 +1706,14 @@ }, "disableLocalAuth": { "type": "boolean", - "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication." + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.", + "x-nullable": true }, "schemaTransformationVersion": { "type": "string", - "description": "The channel schema transformation version for the bot" + "description": "The channel schema transformation version for the bot", + "x-nullable": true, + "default": null }, "storageResourceId": { "type": "string", @@ -1800,11 +1821,13 @@ "properties": { "extensionKey1": { "type": "string", - "description": "The extensionKey1" + "description": "The extensionKey1", + "default": "" }, "extensionKey2": { "type": "string", - "description": "The extensionKey2" + "description": "The extensionKey2", + "default": "" }, "sites": { "type": "array", @@ -1827,7 +1850,8 @@ }, "botIconUrl": { "type": "string", - "description": "The bot icon url" + "description": "The bot icon url", + "x-nullable": true }, "isEnabled": { "type": "boolean", @@ -1836,6 +1860,11 @@ "disableLocalAuth": { "type": "boolean", "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication." + }, + "requireTermsAgreement": { + "type": "boolean", + "description": "Whether customer needs to agree to new terms.", + "x-ms-nullable": true } } }, @@ -1851,7 +1880,11 @@ "etag": { "type": "string", "description": "Entity Tag of the resource", - "x-nullable": true + "x-nullable": true, + "x-ms-mutability": [ + "create", + "read" + ] }, "provisioningState": { "type": "string", @@ -2006,10 +2039,18 @@ "type": "string", "description": "The email address" }, + "authMethod": { + "$ref": "#/definitions/EmailChannelAuthMethod", + "description": "Email channel auth method. 0 Password (Default); 1 Graph." + }, "password": { "type": "string", "description": "The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty." }, + "magicCode": { + "type": "string", + "description": "The magic code for setting up the modern authentication." + }, "isEnabled": { "type": "boolean", "description": "Whether this channel is enabled for the bot" @@ -2021,6 +2062,40 @@ "isEnabled" ] }, + "EmailChannelAuthMethod": { + "type": "number", + "description": "Email channel auth method. 0 Password (Default); 1 Graph.", + "enum": [ + 0, + 1 + ], + "x-ms-enum": { + "name": "EmailChannelAuthMethod", + "modelAsString": false, + "values": [ + { + "value": 0, + "name": "Password", + "description": "Basic authentication." + }, + { + "value": 1, + "name": "Graph", + "description": "Modern authentication." + } + ] + } + }, + "OutlookChannel": { + "type": "object", + "x-ms-discriminator-value": "OutlookChannel", + "description": "Outlook channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, "MsTeamsChannel": { "type": "object", "x-ms-discriminator-value": "MsTeamsChannel", @@ -2041,9 +2116,10 @@ "properties": { "enableCalling": { "type": "boolean", - "description": "Enable calling for Microsoft Teams channel" + "description": "Enable calling for Microsoft Teams channel", + "default": false }, - "callingWebHook": { + "callingWebhook": { "type": "string", "description": "Webhook for Microsoft Teams channel calls" }, @@ -2057,11 +2133,14 @@ }, "deploymentEnvironment": { "type": "string", - "description": "Deployment environment for Microsoft Teams channel calls" + "description": "Deployment environment for Microsoft Teams channel calls", + "default": "FallbackDeploymentEnvironment" }, "acceptedTerms": { "type": "boolean", - "description": "Whether this channel accepted terms" + "description": "Whether this channel accepted terms", + "x-nullable": true, + "default": null } }, "description": "The parameters to provide for the Microsoft Teams channel.", @@ -2101,7 +2180,8 @@ }, "enableCalling": { "type": "boolean", - "description": "Enable calling for Skype channel" + "description": "Enable calling for Skype channel", + "default": false }, "enableScreenSharing": { "type": "boolean", @@ -2235,6 +2315,16 @@ }, "description": "The list of Direct Line sites" }, + "extensionKey1": { + "type": "string", + "description": "The extensionKey1", + "default": "" + }, + "extensionKey2": { + "type": "string", + "description": "The extensionKey2", + "default": "" + }, "DirectLineEmbedCode": { "type": "string", "description": "Direct Line embed code of the resource" @@ -2378,7 +2468,8 @@ }, "registerBeforeOAuthFlow": { "type": "boolean", - "description": "Whether to register the settings before OAuth validation is performed. Recommended to True." + "description": "Whether to register the settings before OAuth validation is performed. Recommended to True.", + "readOnly": true }, "IsValidated": { "type": "boolean", @@ -2482,14 +2573,20 @@ }, "DirectLineSpeechChannelProperties": { "properties": { + "cognitiveServiceResourceId": { + "type": "string", + "description": "The cognitive service id with this channel registration." + }, "cognitiveServiceRegion": { "type": "string", - "description": "The cognitive service region with this channel registration." + "description": "The cognitive service region with this channel registration.", + "x-nullable": true }, "cognitiveServiceSubscriptionKey": { "x-ms-secret": true, "type": "string", - "description": "The cognitive service subscription key to use with this channel registration." + "description": "The cognitive service subscription key to use with this channel registration.", + "x-nullable": true }, "isEnabled": { "type": "boolean", @@ -2508,10 +2605,106 @@ "description": "Make this a default bot for chosen cognitive service account." } }, - "description": "The parameters to provide for the DirectLine Speech channel.", - "required": [ - "cognitiveServiceRegion", - "cognitiveServiceSubscriptionKey" + "description": "The parameters to provide for the DirectLine Speech channel." + }, + "Omnichannel": { + "type": "object", + "x-ms-discriminator-value": "Omnichannel", + "description": "Omnichannel channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "TelephonyChannel": { + "type": "object", + "x-ms-discriminator-value": "TelephonyChannel", + "description": "Telephony channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TelephonyChannelProperties", + "description": "The set of properties specific to Telephony channel resource" + } + } + }, + "TelephonyChannelProperties": { + "type": "object", + "properties": { + "phoneNumbers": { + "type": "array", + "items": { + "$ref": "#/definitions/TelephonyPhoneNumbers" + }, + "description": "The list of Telephony phone numbers" + }, + "apiConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/TelephonyChannelResourceApiConfiguration" + }, + "description": "The list of Telephony api configuration" + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The extensionKey1", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The extensionKey2", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale of the channel", + "x-nullable": true + }, + "premiumSKU": { + "type": "string", + "description": "The premium SKU applied to the channel", + "x-nullable": true + }, + "isEnabled": { + "type": "boolean", + "description": "Whether the channel is enabled" + } + }, + "description": "The parameters to provide for the Direct Line channel." + }, + "AcsChatChannel": { + "type": "object", + "x-ms-discriminator-value": "AcsChatChannel", + "description": "AcsChat channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "SearchAssistant": { + "type": "object", + "x-ms-discriminator-value": "SearchAssistant", + "description": "SearchAssistant definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "M365Extensions": { + "type": "object", + "x-ms-discriminator-value": "M365Extensions", + "description": "M365 Extensions definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } ] }, "ChannelResponseList": { @@ -2532,7 +2725,35 @@ "description": "The list of bot service channel operation response." }, "WebChatSite": { + "allOf": [ + { + "$ref": "#/definitions/Site" + } + ], + "required": [ + "isWebchatPreviewEnabled" + ], + "description": "A site for the Webchat channel" + }, + "DirectLineSite": { + "allOf": [ + { + "$ref": "#/definitions/Site" + } + ], + "description": "A site for the Direct Line channel", + "required": [ + "isV1Enabled", + "isV3Enabled" + ] + }, + "Site": { + "type": "object", "properties": { + "tenantId": { + "type": "string", + "description": "Tenant Id" + }, "siteId": { "type": "string", "description": "Site Id", @@ -2543,7 +2764,11 @@ }, "siteName": { "type": "string", - "description": "Site name" + "description": "Site name", + "x-ms-mutability": [ + "create", + "read" + ] }, "key": { "type": "string", @@ -2565,112 +2790,86 @@ "type": "boolean", "description": "Whether this site is enabled for DirectLine channel" }, - "isWebchatPreviewEnabled": { + "isTokenEnabled": { "type": "boolean", - "description": "Whether this site is enabled for preview versions of Webchat", - "default": false - } - }, - "required": [ - "siteName", - "isEnabled", - "isWebchatPreviewEnabled" - ], - "description": "A site for the Webchat channel" - }, - "DirectLineSite": { - "properties": { - "siteId": { - "x-ms-mutability": [ - "read" - ], - "type": "string", - "description": "Site Id", + "description": "Whether this site is token enabled for channel", "readOnly": true }, - "siteName": { - "type": "string", - "description": "Site name" + "isEndpointParametersEnabled": { + "type": "boolean", + "description": "Whether this site is EndpointParameters enabled for channel" }, - "key": { - "x-ms-mutability": [ - "read" - ], - "type": "string", - "description": "Primary key. Value only returned through POST to the action Channel List API, otherwise empty.", - "readOnly": true + "isDetailedLoggingEnabled": { + "type": "boolean", + "description": "Whether this site is disabled detailed logging for" }, - "key2": { - "x-ms-mutability": [ - "read" - ], - "type": "string", - "description": "Secondary key. Value only returned through POST to the action Channel List API, otherwise empty.", - "readOnly": true + "isBlockUserUploadEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for block user upload.", + "x-nullable": true, + "default": null }, - "isEnabled": { + "isNoStorageEnabled": { "type": "boolean", - "description": "Whether this site is enabled for DirectLine channel." + "description": "Whether this no-storage site is disabled detailed logging for" + }, + "eTag": { + "type": "string", + "description": "Entity Tag" + }, + "appId": { + "type": "string", + "description": "DirectLine application id" }, "isV1Enabled": { "type": "boolean", - "description": "Whether this site is enabled for Bot Framework V1 protocol." + "description": "Whether this site is enabled for Bot Framework V1 protocol.", + "x-ms-mutability": [ + "create", + "read" + ] }, "isV3Enabled": { "type": "boolean", - "description": "Whether this site is enabled for Bot Framework V1 protocol." + "description": "Whether this site is enabled for Bot Framework V3 protocol." }, "isSecureSiteEnabled": { "type": "boolean", "description": "Whether this site is enabled for authentication with Bot Framework." }, - "isBlockUserUploadEnabled": { - "type": "boolean", - "description": "Whether this site is enabled for block user upload." - }, "trustedOrigins": { "type": "array", "description": "List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True.", "items": { "type": "string" } + }, + "isWebChatSpeechEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for Webchat Speech", + "default": false + }, + "isWebchatPreviewEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for preview versions of Webchat", + "default": false } }, - "description": "A site for the Direct Line channel", "required": [ - "isV1Enabled", - "isV3Enabled", "isEnabled", "siteName" - ] - }, - "Site": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/WebChatSite" - }, - { - "$ref": "#/definitions/DirectLineSite" - } ], - "properties": { - "isTokenEnabled": { - "type": "boolean", - "description": "Whether this site is token enabled for channel" - }, - "eTag": { - "type": "string", - "description": "Entity Tag" - } - }, "description": "A site for the channel" }, "SiteInfo": { "properties": { "siteName": { "type": "string", - "description": "The site name" + "description": "The site name", + "x-ms-mutability": [ + "create", + "read" + ] }, "key": { "type": "string", @@ -2692,6 +2891,95 @@ "key" ] }, + "TelephonyPhoneNumbers": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The element id." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number." + }, + "acsEndpoint": { + "type": "string", + "description": "The endpoint of ACS.", + "x-nullable": true + }, + "acsSecret": { + "type": "string", + "description": "The secret of ACS.", + "x-nullable": true + }, + "acsResourceId": { + "type": "string", + "description": "The resource id of ACS.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The subscription key of cognitive service.", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The service region of cognitive service.", + "x-nullable": true + }, + "cognitiveServiceResourceId": { + "type": "string", + "description": "The resource id of cognitive service.", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale of the phone number.", + "x-nullable": true + }, + "offerType": { + "type": "string", + "description": "Optional Property that will determine the offering type of the phone.", + "x-nullable": true + } + }, + "description": "A telephone number for the Telephony channel" + }, + "TelephonyChannelResourceApiConfiguration": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The id of config." + }, + "providerName": { + "type": "string", + "description": "The provider name.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The cognitive service subscription key.", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The cognitive service region.", + "x-nullable": true + }, + "cognitiveServiceResourceId": { + "type": "string", + "description": "The cognitive service resourceId.", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale.", + "x-nullable": true + } + }, + "description": "A resource Api configuration for the Telephony channel" + }, "ConnectionItemName": { "properties": { "name": { @@ -2718,14 +3006,6 @@ }, "ConnectionSettingProperties": { "properties": { - "id": { - "type": "string", - "description": "Id associated with the Connection Setting." - }, - "name": { - "type": "string", - "description": "Name associated with the Connection Setting." - }, "clientId": { "type": "string", "description": "Client Id associated with the Connection Setting." @@ -2742,7 +3022,8 @@ }, "scopes": { "type": "string", - "description": "Scopes associated with the Connection Setting" + "description": "Scopes associated with the Connection Setting", + "default": "" }, "serviceProviderId": { "type": "string", @@ -2881,18 +3162,18 @@ }, "serviceProviderName": { "type": "string", - "description": "Display Name of the Service Provider", + "description": "Name of the Service Provider", "readOnly": true }, "devPortalUrl": { "type": "string", - "description": "Display Name of the Service Provider", + "description": "URL of Dev Portal", "readOnly": true }, "iconUrl": { "type": "string", - "description": "Display Name of the Service Provider", - "readOnly": true + "description": "The URL of icon", + "default": "" }, "parameters": { "description": "The list of parameters for the Service Provider", @@ -3026,6 +3307,11 @@ "message": { "description": "additional message from the bot management api showing why a bot name is not available", "type": "string" + }, + "absCode": { + "description": "response code from ABS", + "type": "string", + "x-ms-nullable": true } } }, @@ -3182,7 +3468,12 @@ "SmsChannel", "LineChannel", "DirectLineSpeechChannel", - "OutlookChannel" + "OutlookChannel", + "Omnichannel", + "TelephonyChannel", + "AcsChatChannel", + "SearchAssistant", + "M365Extensions" ], "x-ms-enum": { "name": "channelName", @@ -3229,6 +3520,21 @@ }, { "value": "OutlookChannel" + }, + { + "value": "Omnichannel" + }, + { + "value": "TelephonyChannel" + }, + { + "value": "AcsChatChannel" + }, + { + "value": "SearchAssistant" + }, + { + "value": "M365Extensions" } ] }, diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetAlexaChannel.json index ec1622dbcb44..29f93aa3af53 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetAlexaChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetChannel.json index 0b35ac00f005..5252b867068c 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetDirectLineSpeechChannel.json index 9d436d21c838..114b6893d528 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetDirectLineSpeechChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetLineChannel.json index 65daaf9a0f18..8c980d8641e8 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetLineChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannelsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannelsByBotService.json index 32472bffa5a2..9e0aa59e542d 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannelsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannelsByBotService.json @@ -10,6 +10,7 @@ "body": { "value": [ { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -21,6 +22,7 @@ } }, { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "FacebookChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListConnectionsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListConnectionsByBotService.json index afd346cba1d5..16b514c79163 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListConnectionsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListConnectionsByBotService.json @@ -10,6 +10,7 @@ "body": { "value": [ { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "name": "sampleConnection", "properties": { "clientId": "sampleclientid", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutAlexaChannel.json index 42e777326e0a..cac9d405c8e7 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutAlexaChannel.json @@ -19,6 +19,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutChannel.json index 01a985afdab0..f4690036268a 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutDirectLineSpeechChannel.json index 9d6e2319eb51..736843ef5242 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutDirectLineSpeechChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", @@ -32,6 +33,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutEmailChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutEmailChannel.json new file mode 100644 index 000000000000..b4c5a7373e2a --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutEmailChannel.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2021-05-01-preview", + "resourceName": "samplebotname", + "channelName": "EmailChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "magicCode": "000000", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutLineChannel.json index 3c5b039c9a8f..99617c261b10 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutLineChannel.json @@ -23,6 +23,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", @@ -42,6 +43,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateAlexaChannel.json index 0a9b3855da88..90a5470ec2d7 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateAlexaChannel.json @@ -19,6 +19,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateChannel.json index 01a985afdab0..f4690036268a 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateDirectLineSpeechChannel.json index 9d6e2319eb51..736843ef5242 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateDirectLineSpeechChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", @@ -32,6 +33,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateLineChannel.json index 3c5b039c9a8f..99617c261b10 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateLineChannel.json @@ -23,6 +23,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", @@ -42,6 +43,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/privatelinks.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/privatelinks.json index 974e0dfb111d..583a528ba4fd 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/privatelinks.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/privatelinks.json @@ -66,6 +66,13 @@ "provisioningState": { "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState", "description": "The provisioning state of the private endpoint connection resource." + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Group ids" } }, "required": [ diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/botservice.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/botservice.json index 6293b4cb6aa4..4ce01528fda6 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/botservice.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/botservice.json @@ -1613,7 +1613,11 @@ "x-ms-enum": { "name": "Kind", "modelAsString": true - } + }, + "x-ms-mutability": [ + "create", + "read" + ] }, "Bot": { "type": "object", @@ -1802,7 +1806,8 @@ "schemaTransformationVersion": { "type": "string", "description": "The channel schema transformation version for the bot", - "default": "0.0" + "x-nullable": true, + "default": null }, "storageResourceId": { "type": "string", @@ -1940,12 +1945,12 @@ "extensionKey1": { "type": "string", "description": "The extensionKey1", - "readOnly": true + "default": "" }, "extensionKey2": { "type": "string", "description": "The extensionKey2", - "readOnly": true + "default": "" }, "sites": { "type": "array", @@ -1977,6 +1982,11 @@ "disableLocalAuth": { "type": "boolean", "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication." + }, + "requireTermsAgreement": { + "type": "boolean", + "description": "Whether customer needs to agree to new terms.", + "x-ms-nullable": true } } }, @@ -1992,7 +2002,11 @@ "etag": { "type": "string", "description": "Entity Tag of the resource", - "x-nullable": true + "x-nullable": true, + "x-ms-mutability": [ + "create", + "read" + ] }, "provisioningState": { "type": "string", @@ -2426,12 +2440,12 @@ "extensionKey1": { "type": "string", "description": "The extensionKey1", - "readOnly": true + "default": "" }, "extensionKey2": { "type": "string", "description": "The extensionKey2", - "readOnly": true + "default": "" }, "DirectLineEmbedCode": { "type": "string", @@ -2576,7 +2590,8 @@ }, "registerBeforeOAuthFlow": { "type": "boolean", - "description": "Whether to register the settings before OAuth validation is performed. Recommended to True." + "description": "Whether to register the settings before OAuth validation is performed. Recommended to True.", + "readOnly": true }, "IsValidated": { "type": "boolean", @@ -2714,6 +2729,106 @@ }, "description": "The parameters to provide for the DirectLine Speech channel." }, + "Omnichannel": { + "type": "object", + "x-ms-discriminator-value": "Omnichannel", + "description": "Omnichannel channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "TelephonyChannel": { + "type": "object", + "x-ms-discriminator-value": "TelephonyChannel", + "description": "Telephony channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TelephonyChannelProperties", + "description": "The set of properties specific to Telephony channel resource" + } + } + }, + "TelephonyChannelProperties": { + "type": "object", + "properties": { + "phoneNumbers": { + "type": "array", + "items": { + "$ref": "#/definitions/TelephonyPhoneNumbers" + }, + "description": "The list of Telephony phone numbers" + }, + "apiConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/TelephonyChannelResourceApiConfiguration" + }, + "description": "The list of Telephony api configuration" + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The extensionKey1", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The extensionKey2", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale of the channel", + "x-nullable": true + }, + "premiumSKU": { + "type": "string", + "description": "The premium SKU applied to the channel", + "x-nullable": true + }, + "isEnabled": { + "type": "boolean", + "description": "Whether the channel is enabled" + } + }, + "description": "The parameters to provide for the Direct Line channel." + }, + "AcsChatChannel": { + "type": "object", + "x-ms-discriminator-value": "AcsChatChannel", + "description": "AcsChat channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "SearchAssistant": { + "type": "object", + "x-ms-discriminator-value": "SearchAssistant", + "description": "SearchAssistant definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "M365Extensions": { + "type": "object", + "x-ms-discriminator-value": "M365Extensions", + "description": "M365 Extensions definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, "ChannelResponseList": { "properties": { "nextLink": { @@ -2757,6 +2872,10 @@ "Site": { "type": "object", "properties": { + "tenantId": { + "type": "string", + "description": "Tenant Id" + }, "siteId": { "type": "string", "description": "Site Id", @@ -2767,7 +2886,11 @@ }, "siteName": { "type": "string", - "description": "Site name" + "description": "Site name", + "x-ms-mutability": [ + "create", + "read" + ] }, "key": { "type": "string", @@ -2822,11 +2945,15 @@ }, "isV1Enabled": { "type": "boolean", - "description": "Whether this site is enabled for Bot Framework V1 protocol." + "description": "Whether this site is enabled for Bot Framework V1 protocol.", + "x-ms-mutability": [ + "create", + "read" + ] }, "isV3Enabled": { "type": "boolean", - "description": "Whether this site is enabled for Bot Framework V1 protocol." + "description": "Whether this site is enabled for Bot Framework V3 protocol." }, "isSecureSiteEnabled": { "type": "boolean", @@ -2839,6 +2966,11 @@ "type": "string" } }, + "isWebChatSpeechEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for Webchat Speech", + "default": false + }, "isWebchatPreviewEnabled": { "type": "boolean", "description": "Whether this site is enabled for preview versions of Webchat", @@ -2855,7 +2987,11 @@ "properties": { "siteName": { "type": "string", - "description": "The site name" + "description": "The site name", + "x-ms-mutability": [ + "create", + "read" + ] }, "key": { "type": "string", @@ -2877,6 +3013,95 @@ "key" ] }, + "TelephonyPhoneNumbers": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The element id." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number." + }, + "acsEndpoint": { + "type": "string", + "description": "The endpoint of ACS.", + "x-nullable": true + }, + "acsSecret": { + "type": "string", + "description": "The secret of ACS.", + "x-nullable": true + }, + "acsResourceId": { + "type": "string", + "description": "The resource id of ACS.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The subscription key of cognitive service.", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The service region of cognitive service.", + "x-nullable": true + }, + "cognitiveServiceResourceId": { + "type": "string", + "description": "The resource id of cognitive service.", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale of the phone number.", + "x-nullable": true + }, + "offerType": { + "type": "string", + "description": "Optional Property that will determine the offering type of the phone.", + "x-nullable": true + } + }, + "description": "A telephone number for the Telephony channel" + }, + "TelephonyChannelResourceApiConfiguration": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The id of config." + }, + "providerName": { + "type": "string", + "description": "The provider name.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The cognitive service subscription key.", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The cognitive service region.", + "x-nullable": true + }, + "cognitiveServiceResourceId": { + "type": "string", + "description": "The cognitive service resourceId.", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale.", + "x-nullable": true + } + }, + "description": "A resource Api configuration for the Telephony channel" + }, "ConnectionItemName": { "properties": { "name": { @@ -2903,14 +3128,6 @@ }, "ConnectionSettingProperties": { "properties": { - "id": { - "type": "string", - "description": "Id associated with the Connection Setting." - }, - "name": { - "type": "string", - "description": "Name associated with the Connection Setting." - }, "clientId": { "type": "string", "description": "Client Id associated with the Connection Setting." @@ -2927,7 +3144,8 @@ }, "scopes": { "type": "string", - "description": "Scopes associated with the Connection Setting" + "description": "Scopes associated with the Connection Setting", + "default": "" }, "serviceProviderId": { "type": "string", @@ -3066,18 +3284,18 @@ }, "serviceProviderName": { "type": "string", - "description": "Display Name of the Service Provider", + "description": "Name of the Service Provider", "readOnly": true }, "devPortalUrl": { "type": "string", - "description": "Display Name of the Service Provider", + "description": "URL of Dev Portal", "readOnly": true }, "iconUrl": { "type": "string", - "description": "Display Name of the Service Provider", - "readOnly": true + "description": "The URL of icon", + "default": "" }, "parameters": { "description": "The list of parameters for the Service Provider", @@ -3211,6 +3429,11 @@ "message": { "description": "additional message from the bot management api showing why a bot name is not available", "type": "string" + }, + "absCode": { + "description": "response code from ABS", + "type": "string", + "x-ms-nullable": true } } }, @@ -3405,7 +3628,10 @@ "DirectLineSpeechChannel", "OutlookChannel", "Omnichannel", - "TelephonyChannel" + "TelephonyChannel", + "AcsChatChannel", + "SearchAssistant", + "M365Extensions" ], "x-ms-enum": { "name": "channelName", @@ -3458,6 +3684,15 @@ }, { "value": "TelephonyChannel" + }, + { + "value": "AcsChatChannel" + }, + { + "value": "SearchAssistant" + }, + { + "value": "M365Extensions" } ] }, diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/CreateEmailSignInUrl.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/CreateEmailSignInUrl.json index 4810119cf3d0..a3ed083741e8 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/CreateEmailSignInUrl.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/CreateEmailSignInUrl.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscription-id", "resourceGroupName": "OneResourceGroupName", - "api-version": "2021-05-01-preview", + "api-version": "2022-06-15-preview", "resourceName": "samplebotname" }, "responses": { diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetAlexaChannel.json index 6dee28f9fb55..8d085432dd5e 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetAlexaChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetChannel.json index 903050147931..f2f57297906c 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetDirectLineSpeechChannel.json index e9305df0472b..3937d2ab4f10 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetDirectLineSpeechChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetLineChannel.json index 49096bf7178e..e5e20406b54e 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/GetLineChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/ListChannelsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/ListChannelsByBotService.json index 92bab1687c3e..b78d463e4527 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/ListChannelsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/ListChannelsByBotService.json @@ -10,6 +10,7 @@ "body": { "value": [ { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -21,6 +22,7 @@ } }, { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "FacebookChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/ListConnectionsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/ListConnectionsByBotService.json index ff69fc311ea2..420e426b060b 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/ListConnectionsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/ListConnectionsByBotService.json @@ -10,6 +10,7 @@ "body": { "value": [ { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "name": "sampleConnection", "properties": { "clientId": "sampleclientid", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutAlexaChannel.json index b2582ec3f59f..6ffc78a07963 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutAlexaChannel.json @@ -19,6 +19,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutChannel.json index 3ba1128e9a2f..504356e6fea0 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutDirectLineSpeechChannel.json index b9d4cf469268..5c063a587b19 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutDirectLineSpeechChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", @@ -32,6 +33,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutEmailChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutEmailChannel.json index b4ed19abb6f0..e321131fe17e 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutEmailChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutEmailChannel.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscription-id", "resourceGroupName": "OneResourceGroupName", - "api-version": "2021-05-01-preview", + "api-version": "2022-06-15-preview", "resourceName": "samplebotname", "channelName": "EmailChannel", "parameters": { @@ -21,6 +21,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -34,6 +35,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutLineChannel.json index 9a41510f45bc..b58978f4dc73 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/PutLineChannel.json @@ -23,6 +23,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", @@ -42,6 +43,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateAlexaChannel.json index 22bda67df0a5..0654dfb95b9d 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateAlexaChannel.json @@ -19,6 +19,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateChannel.json index 3ba1128e9a2f..504356e6fea0 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateDirectLineSpeechChannel.json index b9d4cf469268..5c063a587b19 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateDirectLineSpeechChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", @@ -32,6 +33,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateLineChannel.json index 9a41510f45bc..b58978f4dc73 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/examples/UpdateLineChannel.json @@ -23,6 +23,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", @@ -42,6 +43,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/privatelinks.json b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/privatelinks.json index e81d25f6fe97..580b9f6aa36f 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/privatelinks.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/preview/2022-06-15-preview/privatelinks.json @@ -66,6 +66,13 @@ "provisioningState": { "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState", "description": "The provisioning state of the private endpoint connection resource." + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Group ids" } }, "required": [ diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/botservice.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/botservice.json index 375ba9d9f21e..884169f825d2 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/botservice.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/botservice.json @@ -309,16 +309,19 @@ "description": "Creates a Channel registration for a Bot Service", "operationId": "Channels_Create", "x-ms-examples": { - "Create Bot": { + "Create Channel": { "$ref": "./examples/PutChannel.json" }, - "Create Alexa Bot": { + "Create Alexa Channel": { "$ref": "./examples/PutAlexaChannel.json" }, - "Create Line Bot": { + "Create Email Channel": { + "$ref": "./examples/PutEmailChannel.json" + }, + "Create Line Channel": { "$ref": "./examples/PutLineChannel.json" }, - "Create DirectLine Speech Bot": { + "Create DirectLine Speech Channel": { "$ref": "./examples/PutDirectLineSpeechChannel.json" } }, @@ -376,16 +379,16 @@ "description": "Updates a Channel registration for a Bot Service", "operationId": "Channels_Update", "x-ms-examples": { - "Update Bot": { + "Update Channel": { "$ref": "./examples/UpdateChannel.json" }, - "Update Alexa": { + "Update Alexa Channel": { "$ref": "./examples/UpdateAlexaChannel.json" }, - "Update Line": { + "Update Line Channel": { "$ref": "./examples/UpdateLineChannel.json" }, - "Update DirectLine Speech": { + "Update DirectLine Speech Channel": { "$ref": "./examples/UpdateDirectLineSpeechChannel.json" } }, @@ -444,10 +447,10 @@ "description": "Deletes a Channel registration from a Bot Service", "operationId": "Channels_Delete", "x-ms-examples": { - "Delete Bot": { + "Delete Channel": { "$ref": "./examples/DeleteChannel.json" }, - "Delete DirectLine Speech Bot": { + "Delete DirectLine Speech Channel": { "$ref": "./examples/DeleteDirectLineSpeechChannel.json" } }, @@ -497,16 +500,16 @@ "description": "Returns a BotService Channel registration specified by the parameters.", "operationId": "Channels_Get", "x-ms-examples": { - "Get Bot": { + "Get Channel": { "$ref": "./examples/GetChannel.json" }, - "Get Alexa Bot": { + "Get Alexa Channel": { "$ref": "./examples/GetAlexaChannel.json" }, - "Get Line Bot": { + "Get Line Channel": { "$ref": "./examples/GetLineChannel.json" }, - "Get DirectLine Speech Bot": { + "Get DirectLine Speech Channel": { "$ref": "./examples/GetDirectLineSpeechChannel.json" } }, @@ -603,7 +606,7 @@ "description": "Returns all the Channel registrations of a particular BotService resource", "operationId": "Channels_ListByResourceGroup", "x-ms-examples": { - "List Bots by Resource Group": { + "List Channels by Resource Group": { "$ref": "./examples/ListChannelsByBotService.json" } }, @@ -818,7 +821,7 @@ "BotConnection" ], "x-ms-examples": { - "Update Connection Setting": { + "List Connection Setting With Secrets": { "$ref": "./examples/GetConnection.json" } }, @@ -979,7 +982,7 @@ "BotConnection" ], "x-ms-examples": { - "Update Connection Setting": { + "Get Connection Setting": { "$ref": "./examples/GetConnection.json" } }, @@ -1024,7 +1027,7 @@ "description": "Deletes a Connection Setting registration for a Bot Service", "operationId": "BotConnection_Delete", "x-ms-examples": { - "Update Connection Setting": { + "Delete Connection Setting": { "$ref": "./examples/DeleteConnection.json" } }, @@ -1247,7 +1250,11 @@ "x-ms-enum": { "name": "Kind", "modelAsString": true - } + }, + "x-ms-mutability": [ + "create", + "read" + ] }, "Bot": { "type": "object", @@ -1276,11 +1283,13 @@ }, "iconUrl": { "type": "string", - "description": "The Icon Url of the bot" + "description": "The Icon Url of the bot", + "default": "" }, "endpoint": { "type": "string", - "description": "The bot's endpoint" + "description": "The bot's endpoint", + "x-nullable": true }, "endpointVersion": { "type": "string", @@ -1320,11 +1329,19 @@ }, "msaAppId": { "type": "string", - "description": "Microsoft App Id for the bot" + "description": "Microsoft App Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] }, "msaAppTenantId": { "type": "string", - "description": "Microsoft App Tenant Id for the bot" + "description": "Microsoft App Tenant Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] }, "msaAppMSIResourceId": { "type": "string", @@ -1371,7 +1388,8 @@ }, "isCmekEnabled": { "type": "boolean", - "description": "Whether Cmek is enabled" + "description": "Whether Cmek is enabled", + "default": false }, "cmekKeyVaultUrl": { "type": "string", @@ -1382,6 +1400,14 @@ "description": "The CMK encryption status", "readOnly": true }, + "tenantId": { + "type": "string", + "description": "The Tenant Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] + }, "publicNetworkAccess": { "description": "Whether the bot is in an isolated network", "enum": [ @@ -1418,7 +1444,8 @@ "schemaTransformationVersion": { "type": "string", "description": "The channel schema transformation version for the bot", - "x-nullable": true + "x-nullable": true, + "default": null }, "storageResourceId": { "type": "string", @@ -1518,11 +1545,13 @@ "properties": { "extensionKey1": { "type": "string", - "description": "The extensionKey1" + "description": "The extensionKey1", + "default": "" }, "extensionKey2": { "type": "string", - "description": "The extensionKey2" + "description": "The extensionKey2", + "default": "" }, "sites": { "type": "array", @@ -1558,6 +1587,11 @@ "disableLocalAuth": { "type": "boolean", "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication." + }, + "requireTermsAgreement": { + "type": "boolean", + "description": "Whether customer needs to agree to new terms.", + "x-ms-nullable": true } } }, @@ -1573,7 +1607,11 @@ "etag": { "type": "string", "description": "Entity Tag of the resource", - "x-nullable": true + "x-nullable": true, + "x-ms-mutability": [ + "create", + "read" + ] }, "provisioningState": { "type": "string", @@ -1728,10 +1766,18 @@ "type": "string", "description": "The email address" }, + "authMethod": { + "$ref": "#/definitions/EmailChannelAuthMethod", + "description": "Email channel auth method. 0 Password (Default); 1 Graph." + }, "password": { "type": "string", "description": "The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty." }, + "magicCode": { + "type": "string", + "description": "The magic code for setting up the modern authentication." + }, "isEnabled": { "type": "boolean", "description": "Whether this channel is enabled for the bot" @@ -1743,6 +1789,40 @@ "isEnabled" ] }, + "EmailChannelAuthMethod": { + "type": "number", + "description": "Email channel auth method. 0 Password (Default); 1 Graph.", + "enum": [ + 0, + 1 + ], + "x-ms-enum": { + "name": "EmailChannelAuthMethod", + "modelAsString": false, + "values": [ + { + "value": 0, + "name": "Password", + "description": "Basic authentication." + }, + { + "value": 1, + "name": "Graph", + "description": "Modern authentication." + } + ] + } + }, + "OutlookChannel": { + "type": "object", + "x-ms-discriminator-value": "OutlookChannel", + "description": "Outlook channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, "MsTeamsChannel": { "type": "object", "x-ms-discriminator-value": "MsTeamsChannel", @@ -1763,9 +1843,10 @@ "properties": { "enableCalling": { "type": "boolean", - "description": "Enable calling for Microsoft Teams channel" + "description": "Enable calling for Microsoft Teams channel", + "default": false }, - "callingWebHook": { + "callingWebhook": { "type": "string", "description": "Webhook for Microsoft Teams channel calls" }, @@ -1780,12 +1861,13 @@ "deploymentEnvironment": { "type": "string", "description": "Deployment environment for Microsoft Teams channel calls", - "x-nullable": true + "default": "FallbackDeploymentEnvironment" }, "acceptedTerms": { "type": "boolean", "description": "Whether this channel accepted terms", - "default": true + "x-nullable": true, + "default": null } }, "description": "The parameters to provide for the Microsoft Teams channel.", @@ -1825,7 +1907,8 @@ }, "enableCalling": { "type": "boolean", - "description": "Enable calling for Skype channel" + "description": "Enable calling for Skype channel", + "default": false }, "enableScreenSharing": { "type": "boolean", @@ -1965,6 +2048,16 @@ ], "description": "The list of Direct Line sites" }, + "extensionKey1": { + "type": "string", + "description": "The extensionKey1", + "default": "" + }, + "extensionKey2": { + "type": "string", + "description": "The extensionKey2", + "default": "" + }, "DirectLineEmbedCode": { "type": "string", "description": "Direct Line embed code of the resource" @@ -2088,6 +2181,10 @@ "type": "string", "description": "The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty." }, + "scopes": { + "type": "string", + "description": "The Slack permission scopes." + }, "landingPageUrl": { "type": "string", "description": "The Slack landing page Url" @@ -2107,7 +2204,7 @@ "description": "Whether to register the settings before OAuth validation is performed. Recommended to True.", "readOnly": true }, - "isValidated": { + "IsValidated": { "type": "boolean", "description": "Whether this channel is validated for the bot", "readOnly": true @@ -2212,14 +2309,20 @@ }, "DirectLineSpeechChannelProperties": { "properties": { + "cognitiveServiceResourceId": { + "type": "string", + "description": "The cognitive service id with this channel registration." + }, "cognitiveServiceRegion": { "type": "string", - "description": "The cognitive service region with this channel registration." + "description": "The cognitive service region with this channel registration.", + "x-nullable": true }, "cognitiveServiceSubscriptionKey": { "x-ms-secret": true, "type": "string", - "description": "The cognitive service subscription key to use with this channel registration." + "description": "The cognitive service subscription key to use with this channel registration.", + "x-nullable": true }, "isEnabled": { "type": "boolean", @@ -2238,10 +2341,106 @@ "description": "Make this a default bot for chosen cognitive service account." } }, - "description": "The parameters to provide for the DirectLine Speech channel.", - "required": [ - "cognitiveServiceRegion", - "cognitiveServiceSubscriptionKey" + "description": "The parameters to provide for the DirectLine Speech channel." + }, + "Omnichannel": { + "type": "object", + "x-ms-discriminator-value": "Omnichannel", + "description": "Omnichannel channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "TelephonyChannel": { + "type": "object", + "x-ms-discriminator-value": "TelephonyChannel", + "description": "Telephony channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TelephonyChannelProperties", + "description": "The set of properties specific to Telephony channel resource" + } + } + }, + "TelephonyChannelProperties": { + "type": "object", + "properties": { + "phoneNumbers": { + "type": "array", + "items": { + "$ref": "#/definitions/TelephonyPhoneNumbers" + }, + "description": "The list of Telephony phone numbers" + }, + "apiConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/TelephonyChannelResourceApiConfiguration" + }, + "description": "The list of Telephony api configuration" + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The extensionKey1", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The extensionKey2", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale of the channel", + "x-nullable": true + }, + "premiumSKU": { + "type": "string", + "description": "The premium SKU applied to the channel", + "x-nullable": true + }, + "isEnabled": { + "type": "boolean", + "description": "Whether the channel is enabled" + } + }, + "description": "The parameters to provide for the Direct Line channel." + }, + "AcsChatChannel": { + "type": "object", + "x-ms-discriminator-value": "AcsChatChannel", + "description": "AcsChat channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "SearchAssistant": { + "type": "object", + "x-ms-discriminator-value": "SearchAssistant", + "description": "SearchAssistant definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "M365Extensions": { + "type": "object", + "x-ms-discriminator-value": "M365Extensions", + "description": "M365 Extensions definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } ] }, "ChannelResponseList": { @@ -2262,7 +2461,35 @@ "description": "The list of bot service channel operation response." }, "WebChatSite": { + "allOf": [ + { + "$ref": "#/definitions/Site" + } + ], + "required": [ + "isWebchatPreviewEnabled" + ], + "description": "A site for the Webchat channel" + }, + "DirectLineSite": { + "allOf": [ + { + "$ref": "#/definitions/Site" + } + ], + "description": "A site for the Direct Line channel", + "required": [ + "isV1Enabled", + "isV3Enabled" + ] + }, + "Site": { + "type": "object", "properties": { + "tenantId": { + "type": "string", + "description": "Tenant Id" + }, "siteId": { "type": "string", "description": "Site Id", @@ -2273,7 +2500,11 @@ }, "siteName": { "type": "string", - "description": "Site name" + "description": "Site name", + "x-ms-mutability": [ + "create", + "read" + ] }, "key": { "type": "string", @@ -2295,113 +2526,86 @@ "type": "boolean", "description": "Whether this site is enabled for DirectLine channel" }, - "isWebchatPreviewEnabled": { + "isTokenEnabled": { "type": "boolean", - "description": "Whether this site is enabled for preview versions of Webchat", - "default": false - } - }, - "required": [ - "siteName", - "isEnabled", - "isWebchatPreviewEnabled" - ], - "description": "A site for the Webchat channel" - }, - "DirectLineSite": { - "properties": { - "siteId": { - "x-ms-mutability": [ - "read" - ], - "type": "string", - "description": "Site Id", + "description": "Whether this site is token enabled for channel", "readOnly": true }, - "siteName": { - "type": "string", - "description": "Site name" + "isEndpointParametersEnabled": { + "type": "boolean", + "description": "Whether this site is EndpointParameters enabled for channel" }, - "key": { - "x-ms-mutability": [ - "read" - ], - "type": "string", - "description": "Primary key. Value only returned through POST to the action Channel List API, otherwise empty.", - "readOnly": true + "isDetailedLoggingEnabled": { + "type": "boolean", + "description": "Whether this site is disabled detailed logging for" }, - "key2": { - "x-ms-mutability": [ - "read" - ], - "type": "string", - "description": "Secondary key. Value only returned through POST to the action Channel List API, otherwise empty.", - "readOnly": true + "isBlockUserUploadEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for block user upload.", + "x-nullable": true, + "default": null }, - "isEnabled": { + "isNoStorageEnabled": { "type": "boolean", - "description": "Whether this site is enabled for DirectLine channel." + "description": "Whether this no-storage site is disabled detailed logging for" + }, + "eTag": { + "type": "string", + "description": "Entity Tag" + }, + "appId": { + "type": "string", + "description": "DirectLine application id" }, "isV1Enabled": { "type": "boolean", - "description": "Whether this site is enabled for Bot Framework V1 protocol." + "description": "Whether this site is enabled for Bot Framework V1 protocol.", + "x-ms-mutability": [ + "create", + "read" + ] }, "isV3Enabled": { "type": "boolean", - "description": "Whether this site is enabled for Bot Framework V1 protocol." + "description": "Whether this site is enabled for Bot Framework V3 protocol." }, "isSecureSiteEnabled": { "type": "boolean", "description": "Whether this site is enabled for authentication with Bot Framework." }, - "isBlockUserUploadEnabled": { - "type": "boolean", - "description": "Whether this site is enabled for block user upload.", - "x-nullable": true - }, "trustedOrigins": { "type": "array", "description": "List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True.", "items": { "type": "string" } + }, + "isWebChatSpeechEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for Webchat Speech", + "default": false + }, + "isWebchatPreviewEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for preview versions of Webchat", + "default": false } }, - "description": "A site for the Direct Line channel", "required": [ - "isV1Enabled", - "isV3Enabled", "isEnabled", "siteName" - ] - }, - "Site": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/WebChatSite" - }, - { - "$ref": "#/definitions/DirectLineSite" - } ], - "properties": { - "isTokenEnabled": { - "type": "boolean", - "description": "Whether this site is token enabled for channel" - }, - "eTag": { - "type": "string", - "description": "Entity Tag" - } - }, "description": "A site for the channel" }, "SiteInfo": { "properties": { "siteName": { "type": "string", - "description": "The site name" + "description": "The site name", + "x-ms-mutability": [ + "create", + "read" + ] }, "key": { "type": "string", @@ -2423,6 +2627,95 @@ "key" ] }, + "TelephonyPhoneNumbers": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The element id." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number." + }, + "acsEndpoint": { + "type": "string", + "description": "The endpoint of ACS.", + "x-nullable": true + }, + "acsSecret": { + "type": "string", + "description": "The secret of ACS.", + "x-nullable": true + }, + "acsResourceId": { + "type": "string", + "description": "The resource id of ACS.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The subscription key of cognitive service.", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The service region of cognitive service.", + "x-nullable": true + }, + "cognitiveServiceResourceId": { + "type": "string", + "description": "The resource id of cognitive service.", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale of the phone number.", + "x-nullable": true + }, + "offerType": { + "type": "string", + "description": "Optional Property that will determine the offering type of the phone.", + "x-nullable": true + } + }, + "description": "A telephone number for the Telephony channel" + }, + "TelephonyChannelResourceApiConfiguration": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The id of config." + }, + "providerName": { + "type": "string", + "description": "The provider name.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The cognitive service subscription key.", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The cognitive service region.", + "x-nullable": true + }, + "cognitiveServiceResourceId": { + "type": "string", + "description": "The cognitive service resourceId.", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale.", + "x-nullable": true + } + }, + "description": "A resource Api configuration for the Telephony channel" + }, "ConnectionItemName": { "properties": { "name": { @@ -2449,14 +2742,6 @@ }, "ConnectionSettingProperties": { "properties": { - "id": { - "type": "string", - "description": "Id associated with the Connection Setting." - }, - "name": { - "type": "string", - "description": "Name associated with the Connection Setting." - }, "clientId": { "type": "string", "description": "Client Id associated with the Connection Setting." @@ -2473,7 +2758,8 @@ }, "scopes": { "type": "string", - "description": "Scopes associated with the Connection Setting" + "description": "Scopes associated with the Connection Setting", + "default": "" }, "serviceProviderId": { "type": "string", @@ -2618,18 +2904,18 @@ }, "serviceProviderName": { "type": "string", - "description": "Display Name of the Service Provider", + "description": "Name of the Service Provider", "readOnly": true }, "devPortalUrl": { "type": "string", - "description": "Display Name of the Service Provider", + "description": "URL of Dev Portal", "readOnly": true }, "iconUrl": { "type": "string", - "description": "Display Name of the Service Provider", - "readOnly": true + "description": "The URL of icon", + "default": "" }, "parameters": { "description": "The list of parameters for the Service Provider", @@ -2770,6 +3056,11 @@ "message": { "description": "additional message from the bot management api showing why a bot name is not available", "type": "string" + }, + "absCode": { + "description": "response code from ABS", + "type": "string", + "x-ms-nullable": true } } }, @@ -2879,7 +3170,13 @@ "DirectLineChannel", "SmsChannel", "LineChannel", - "DirectLineSpeechChannel" + "DirectLineSpeechChannel", + "OutlookChannel", + "Omnichannel", + "TelephonyChannel", + "AcsChatChannel", + "SearchAssistant", + "M365Extensions" ], "x-ms-enum": { "name": "channelName", @@ -2923,6 +3220,24 @@ }, { "value": "DirectLineSpeechChannel" + }, + { + "value": "OutlookChannel" + }, + { + "value": "Omnichannel" + }, + { + "value": "TelephonyChannel" + }, + { + "value": "AcsChatChannel" + }, + { + "value": "SearchAssistant" + }, + { + "value": "M365Extensions" } ] }, diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetAlexaChannel.json index ce8e6dd0c0cc..0f5d1fd4e01c 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetAlexaChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetChannel.json index b89f02010de6..007f8122b6d6 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetDirectLineSpeechChannel.json index 35110c6719ff..08e3ffe9226c 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetDirectLineSpeechChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetLineChannel.json index 8ea4e7ac3b97..c56b44aaa147 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/GetLineChannel.json @@ -9,6 +9,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListChannelsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListChannelsByBotService.json index 30af210a3ad4..3990ee25724b 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListChannelsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListChannelsByBotService.json @@ -10,6 +10,7 @@ "body": { "value": [ { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -21,6 +22,7 @@ } }, { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "FacebookChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListConnectionsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListConnectionsByBotService.json index 24f10ec90b1a..b5aed59885e5 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListConnectionsByBotService.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/ListConnectionsByBotService.json @@ -10,6 +10,7 @@ "body": { "value": [ { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "name": "sampleConnection", "properties": { "clientId": "sampleclientid", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutAlexaChannel.json index 8bea9a75068f..28521c28ebf6 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutAlexaChannel.json @@ -19,6 +19,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutChannel.json index 0db6722e455b..c78f7b150bce 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutDirectLineSpeechChannel.json index 0411ec285694..08c0385af9e2 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutDirectLineSpeechChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", @@ -32,6 +33,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutEmailChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutEmailChannel.json new file mode 100644 index 000000000000..1a591355a35a --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutEmailChannel.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2021-03-01", + "resourceName": "samplebotname", + "channelName": "EmailChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "magicCode": "000000", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutLineChannel.json index 33ba5d33aabd..5729f0b443fb 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/PutLineChannel.json @@ -23,6 +23,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", @@ -42,6 +43,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateAlexaChannel.json index 86267a4b33ad..980ba269d940 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateAlexaChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateAlexaChannel.json @@ -19,6 +19,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "AlexaChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateChannel.json index 0db6722e455b..c78f7b150bce 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", @@ -33,6 +34,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "EmailChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateDirectLineSpeechChannel.json index 0411ec285694..08c0385af9e2 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateDirectLineSpeechChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateDirectLineSpeechChannel.json @@ -20,6 +20,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", @@ -32,6 +33,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "DirectLineSpeechChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateLineChannel.json index 33ba5d33aabd..5729f0b443fb 100644 --- a/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateLineChannel.json +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2021-03-01/examples/UpdateLineChannel.json @@ -23,6 +23,7 @@ "responses": { "200": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", @@ -42,6 +43,7 @@ }, "201": { "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", "location": "global", "properties": { "channelName": "LineChannel", diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/botservice.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/botservice.json new file mode 100644 index 000000000000..37a4687071f1 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/botservice.json @@ -0,0 +1,3725 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Bot Service", + "description": "Azure Bot Service is a platform for creating smart conversational agents.", + "version": "2022-09-15" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}": { + "put": { + "tags": [ + "Bot" + ], + "description": "Creates a Bot Service. Bot Service is a resource group wide resource type.", + "operationId": "Bots_Create", + "x-ms-examples": { + "Create Bot": { + "$ref": "./examples/CreateBot.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/Bot" + }, + "description": "The parameters to provide for the created bot." + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "If resource is created successfully or already existed, the service should return 200 (OK).", + "schema": { + "$ref": "#/definitions/Bot" + } + }, + "201": { + "description": "If resource is created successfully, the service should return 201 (Created). Execution to continue asynchronously.", + "schema": { + "$ref": "#/definitions/Bot" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch": { + "tags": [ + "Bot" + ], + "description": "Updates a Bot Service", + "operationId": "Bots_Update", + "x-ms-examples": { + "Update Bot": { + "$ref": "./examples/UpdateBot.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "x-ms-client-flatten": true, + "schema": { + "$ref": "#/definitions/Bot" + }, + "description": "The parameters to provide for the created bot." + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. ", + "schema": { + "$ref": "#/definitions/Bot" + } + }, + "201": { + "description": "If resource is updated successfully, the service should return 201 (Created). Execution to continue asynchronously.", + "schema": { + "$ref": "#/definitions/Bot" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "tags": [ + "Bot" + ], + "description": "Deletes a Bot Service from the resource group. ", + "operationId": "Bots_Delete", + "x-ms-examples": { + "Delete Bot": { + "$ref": "./examples/DeleteBot.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A 200 (OK) should be returned if the object exists and was deleted successfully;" + }, + "204": { + "description": "a 204 (NoContent) should be used if the resource does not exist and the request is well formed." + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "get": { + "tags": [ + "Bot" + ], + "description": "Returns a BotService specified by the parameters.", + "operationId": "Bots_Get", + "x-ms-examples": { + "Get Bot": { + "$ref": "./examples/GetBot.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. ", + "schema": { + "$ref": "#/definitions/Bot" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices": { + "get": { + "tags": [ + "Bot" + ], + "description": "Returns all the resources of a particular type belonging to a resource group", + "operationId": "Bots_ListByResourceGroup", + "x-ms-examples": { + "List Bots by Resource Group": { + "$ref": "./examples/ListBotsByResourceGroup.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses here. If a resource provider does not support paging, it should return the same body (JSON object with “value” property) but omit nextLink entirely (or set to null, *not* empty string) for future compatibility.\nThe nextLink should be implemented using following query parameters:\n· skipToken: opaque token that allows the resource provider to skip resources already enumerated. This value is defined and returned by the RP after first request via nextLink.\n· top: the optional client query parameter which defines the maximum number of records to be returned by the server.\nImplementation details:\n· NextLink may include all the query parameters (specifically OData $filter) used by the client in the first query. \n· Server may return less records than requested with nextLink. Returning zero records with NextLink is an acceptable response. \nClients must fetch records until the nextLink is not returned back / null. Clients should never rely on number of returned records to determinate if pagination is completed.", + "schema": { + "$ref": "#/definitions/BotResponseList" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices": { + "get": { + "tags": [ + "Bot" + ], + "description": "Returns all the resources of a particular type belonging to a subscription.", + "operationId": "Bots_List", + "x-ms-examples": { + "List Bots by Subscription": { + "$ref": "./examples/ListBotsBySubscription.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses. If a resource provider does not support paging, it should return the same body but leave nextLink empty for future compatibility.\nFor a detailed explanation of each field in the response body, please refer to the request body description in the PUT resource section. ", + "schema": { + "$ref": "#/definitions/BotResponseList" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}": { + "put": { + "tags": [ + "Channel" + ], + "description": "Creates a Channel registration for a Bot Service", + "operationId": "Channels_Create", + "x-ms-examples": { + "Create Channel": { + "$ref": "./examples/PutChannel.json" + }, + "Create Alexa Channel": { + "$ref": "./examples/PutAlexaChannel.json" + }, + "Create Email Channel": { + "$ref": "./examples/PutEmailChannel.json" + }, + "Create Line Channel": { + "$ref": "./examples/PutLineChannel.json" + }, + "Create DirectLine Speech Channel": { + "$ref": "./examples/PutDirectLineSpeechChannel.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/channelNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/BotChannel" + }, + "description": "The parameters to provide for the created bot." + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "If resource is created successfully or already existed, the service should return 200 (OK).", + "schema": { + "$ref": "#/definitions/BotChannel" + } + }, + "201": { + "description": "If resource is created successfully, the service should return 201 (Created). Execution to continue asynchronously.", + "schema": { + "$ref": "#/definitions/BotChannel" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch": { + "tags": [ + "Channel" + ], + "description": "Updates a Channel registration for a Bot Service", + "operationId": "Channels_Update", + "x-ms-examples": { + "Update Channel": { + "$ref": "./examples/UpdateChannel.json" + }, + "Update Alexa Channel": { + "$ref": "./examples/UpdateAlexaChannel.json" + }, + "Update Line Channel": { + "$ref": "./examples/UpdateLineChannel.json" + }, + "Update DirectLine Speech Channel": { + "$ref": "./examples/UpdateDirectLineSpeechChannel.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/channelNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "x-ms-client-flatten": true, + "schema": { + "$ref": "#/definitions/BotChannel" + }, + "description": "The parameters to provide for the created bot." + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. ", + "schema": { + "$ref": "#/definitions/BotChannel" + } + }, + "201": { + "description": "If resource is updated successfully, the service should return 201 (Created). Execution to continue asynchronously.", + "schema": { + "$ref": "#/definitions/BotChannel" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "tags": [ + "Channel" + ], + "description": "Deletes a Channel registration from a Bot Service", + "operationId": "Channels_Delete", + "x-ms-examples": { + "Delete Channel": { + "$ref": "./examples/DeleteChannel.json" + }, + "Delete DirectLine Speech Channel": { + "$ref": "./examples/DeleteDirectLineSpeechChannel.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "name": "channelName", + "in": "path", + "required": true, + "type": "string", + "maxLength": 64, + "minLength": 2, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", + "description": "The name of the Bot resource." + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A 200 (OK) should be returned if the object exists and was deleted successfully;" + }, + "204": { + "description": "a 204 (NoContent) should be used if the resource does not exist and the request is well formed." + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "get": { + "tags": [ + "Channel" + ], + "description": "Returns a BotService Channel registration specified by the parameters.", + "operationId": "Channels_Get", + "x-ms-examples": { + "Get Channel": { + "$ref": "./examples/GetChannel.json" + }, + "Get Alexa Channel": { + "$ref": "./examples/GetAlexaChannel.json" + }, + "Get Line Channel": { + "$ref": "./examples/GetLineChannel.json" + }, + "Get DirectLine Speech Channel": { + "$ref": "./examples/GetDirectLineSpeechChannel.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "name": "channelName", + "in": "path", + "required": true, + "type": "string", + "maxLength": 64, + "minLength": 2, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", + "description": "The name of the Bot resource." + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. ", + "schema": { + "$ref": "#/definitions/BotChannel" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/listChannelWithKeys": { + "post": { + "tags": [ + "Channel" + ], + "description": "Lists a Channel registration for a Bot Service including secrets", + "operationId": "Channels_ListWithKeys", + "x-ms-examples": { + "List Channel": { + "$ref": "./examples/ListChannel.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/channelNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "If resource is retrieved successfully, the service should return 200 (OK).", + "schema": { + "$ref": "#/definitions/ListChannelWithKeysResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels": { + "get": { + "tags": [ + "Channel" + ], + "description": "Returns all the Channel registrations of a particular BotService resource", + "operationId": "Channels_ListByResourceGroup", + "x-ms-examples": { + "List Channels by Resource Group": { + "$ref": "./examples/ListChannelsByBotService.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses here. If a resource provider does not support paging, it should return the same body (JSON object with “value” property) but omit nextLink entirely (or set to null, *not* empty string) for future compatibility.\nThe nextLink should be implemented using following query parameters:\n· skipToken: opaque token that allows the resource provider to skip resources already enumerated. This value is defined and returned by the RP after first request via nextLink.\n· top: the optional client query parameter which defines the maximum number of records to be returned by the server.\nImplementation details:\n· NextLink may include all the query parameters (specifically OData $filter) used by the client in the first query. \n· Server may return less records than requested with nextLink. Returning zero records with NextLink is an acceptable response. \nClients must fetch records until the nextLink is not returned back / null. Clients should never rely on number of returned records to determinate if pagination is completed.", + "schema": { + "$ref": "#/definitions/ChannelResponseList" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys": { + "post": { + "tags": [ + "Channel" + ], + "description": "Regenerates secret keys and returns them for the DirectLine Channel of a particular BotService resource", + "operationId": "DirectLine_RegenerateKeys", + "x-ms-examples": { + "Regenerate Keys for DirectLine Channel Site": { + "$ref": "./examples/DirectlineRegenerateKeys.json" + }, + "Regenerate Keys for WebChat Channel Site": { + "$ref": "./examples/WebChatRegenerateKeys.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/regenerateKeyschannelNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SiteInfo" + }, + "description": "The parameters to provide for the created bot." + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses here. If a resource provider does not support paging, it should return the same body (JSON object with “value” property) but omit nextLink entirely (or set to null, *not* empty string) for future compatibility.\nThe nextLink should be implemented using following query parameters:\n· skipToken: opaque token that allows the resource provider to skip resources already enumerated. This value is defined and returned by the RP after first request via nextLink.\n· top: the optional client query parameter which defines the maximum number of records to be returned by the server.\nImplementation details:\n· NextLink may include all the query parameters (specifically OData $filter) used by the client in the first query. \n· Server may return less records than requested with nextLink. Returning zero records with NextLink is an acceptable response. \nClients must fetch records until the nextLink is not returned back / null. Clients should never rely on number of returned records to determinate if pagination is completed.", + "schema": { + "$ref": "#/definitions/BotChannel" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/createEmailSignInUrl": { + "post": { + "tags": [ + "Channel" + ], + "description": "Creates an email channel sign in url for a Bot Service", + "operationId": "Email_CreateSignInUrl", + "x-ms-examples": { + "Create Url": { + "$ref": "./examples/CreateEmailSignInUrl.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "If url is created successfully, the service should return 200 (OK).", + "schema": { + "$ref": "#/definitions/CreateEmailSignInUrlResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.BotService/checkNameAvailability": { + "post": { + "tags": [ + "Bot" + ], + "description": "Check whether a bot name is available.", + "operationId": "Bots_GetCheckNameAvailability", + "x-ms-examples": { + "check Name Availability": { + "$ref": "./examples/CheckNameAvailability.json" + } + }, + "parameters": [ + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityRequestBody" + }, + "description": "The request body parameters to provide for the check name availability request" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses. If a resource provider does not support paging, it should return the same body but leave nextLink empty for future compatibility.\nFor a detailed explanation of each field in the response body, please refer to the request body description in the PUT resource section. ", + "schema": { + "$ref": "#/definitions/CheckNameAvailabilityResponseBody" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/providers/Microsoft.BotService/operations": { + "get": { + "tags": [ + "Operations" + ], + "description": "Lists all the available BotService operations.", + "operationId": "Operations_List", + "x-ms-examples": { + "Get Operations": { + "$ref": "./examples/GetOperations.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK.", + "schema": { + "$ref": "#/definitions/OperationEntityListResult" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "deprecated": false, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders": { + "post": { + "tags": [ + "ListServiceProviders" + ], + "description": "Lists the available Service Providers for creating Connection Settings", + "operationId": "BotConnection_ListServiceProviders", + "x-ms-examples": { + "List Auth Service Providers": { + "$ref": "./examples/ListServiceProviders.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "If resource is retrieved successfully, the service should return 200 (OK).", + "schema": { + "$ref": "#/definitions/ServiceProviderResponseList" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/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": [ + "BotConnection" + ], + "x-ms-examples": { + "List Connection Setting With Secrets": { + "$ref": "./examples/GetConnection.json" + } + }, + "description": "Get a Connection Setting registration for a Bot Service", + "operationId": "BotConnection_ListWithSecrets", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/connectionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. ", + "schema": { + "$ref": "#/definitions/ConnectionSetting" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}": { + "put": { + "tags": [ + "BotConnection" + ], + "description": "Register a new Auth Connection for a Bot Service", + "operationId": "BotConnection_Create", + "x-ms-examples": { + "Create Connection Setting": { + "$ref": "./examples/PutConnection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/connectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectionSetting" + }, + "description": "The parameters to provide for creating the Connection Setting." + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "If resource is created successfully or already existed, the service should return 200 (OK).", + "schema": { + "$ref": "#/definitions/ConnectionSetting" + } + }, + "201": { + "description": "If resource is created successfully, the service should return 201 (Created). Execution to continue asynchronously.", + "schema": { + "$ref": "#/definitions/ConnectionSetting" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "patch": { + "tags": [ + "BotConnection" + ], + "description": "Updates a Connection Setting registration for a Bot Service", + "operationId": "BotConnection_Update", + "x-ms-examples": { + "Update Connection Setting": { + "$ref": "./examples/UpdateConnection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/connectionNameParameter" + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConnectionSetting" + }, + "description": "The parameters to provide for updating the Connection Setting." + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "If resource is created successfully or already existed, the service should return 200 (OK).", + "schema": { + "$ref": "#/definitions/ConnectionSetting" + } + }, + "201": { + "description": "If resource is created successfully, the service should return 201 (Created). Execution to continue asynchronously.", + "schema": { + "$ref": "#/definitions/ConnectionSetting" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "get": { + "tags": [ + "BotConnection" + ], + "x-ms-examples": { + "Get Connection Setting": { + "$ref": "./examples/GetConnection.json" + } + }, + "description": "Get a Connection Setting registration for a Bot Service", + "operationId": "BotConnection_Get", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/connectionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. ", + "schema": { + "$ref": "#/definitions/ConnectionSetting" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group *or* resource does not exist, 404 (NotFound) should be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "tags": [ + "BotConnection" + ], + "description": "Deletes a Connection Setting registration for a Bot Service", + "operationId": "BotConnection_Delete", + "x-ms-examples": { + "Delete Connection Setting": { + "$ref": "./examples/DeleteConnection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/connectionNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "A 200 (OK) should be returned if the object exists and was deleted successfully;" + }, + "204": { + "description": "a 204 (NoContent) should be used if the resource does not exist and the request is well formed." + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections": { + "get": { + "tags": [ + "BotConnection" + ], + "description": "Returns all the Connection Settings registered to a particular BotService resource", + "operationId": "BotConnection_ListByBotService", + "x-ms-examples": { + "List Connection Settings": { + "$ref": "./examples/ListConnectionsByBotService.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The resource provider should return 200 (OK) to indicate that the operation completed successfully. For other errors (e.g. internal errors) use the appropriate HTTP error code.\nThe nextLink field is expected to point to the URL the client should use to fetch the next page (per server side paging). This matches the OData guidelines for paged responses here. If a resource provider does not support paging, it should return the same body (JSON object with “value” property) but omit nextLink entirely (or set to null, *not* empty string) for future compatibility.\nThe nextLink should be implemented using following query parameters:\n· skipToken: opaque token that allows the resource provider to skip resources already enumerated. This value is defined and returned by the RP after first request via nextLink.\n· top: the optional client query parameter which defines the maximum number of records to be returned by the server.\nImplementation details:\n· NextLink may include all the query parameters (specifically OData $filter) used by the client in the first query. \n· Server may return less records than requested with nextLink. Returning zero records with NextLink is an acceptable response. \nClients must fetch records until the nextLink is not returned back / null. Clients should never rely on number of returned records to determinate if pagination is completed.", + "schema": { + "$ref": "#/definitions/ConnectionSettingResponseList" + } + }, + "default": { + "description": "Error response describing why the operation failed. If the resource group does not exist, 404 (NotFound) will be returned.", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings": { + "get": { + "tags": [ + "BotHostSettings" + ], + "description": "Get per subscription settings needed to host bot in compute resource such as Azure App Service", + "operationId": "HostSettings_Get", + "x-ms-examples": { + "Get Bot Host Settings": { + "$ref": "./examples/GetHostSettings.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "If resource is retrieved successfully, the service should return 200 (OK).", + "schema": { + "$ref": "#/definitions/HostSettingsResponse" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}": { + "get": { + "tags": [ + "OperationResults" + ], + "description": "Get the operation result for a long running operation.", + "operationId": "OperationResults_Get", + "x-ms-examples": { + "Get operation result": { + "$ref": "./examples/OperationResultsGet.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/operationResultIdParameter" + } + ], + "responses": { + "200": { + "description": "The body contains all of the properties of the operation result.", + "schema": { + "$ref": "#/definitions/OperationResultsDescription" + } + }, + "202": { + "description": "Accepted - Get request accepted; the operation will complete asynchronously." + }, + "default": { + "description": "Default error response", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-long-running-operation": true + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_List", + "description": "List all the private endpoint connections associated with the Bot.", + "x-ms-examples": { + "List Private Endpoint Connections": { + "$ref": "./examples/ListPrivateEndpointConnections.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK -- Successfully retrieved private endpoint connections.", + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnectionListResult" + } + }, + "default": { + "description": "Default error response", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-pageable": { + "nextLinkName": null + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}": { + "get": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Get", + "description": "Gets the specified private endpoint connection associated with the Bot.", + "x-ms-examples": { + "Get Private Endpoint Connection": { + "$ref": "./examples/GetPrivateEndpointConnection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" + } + ], + "responses": { + "200": { + "description": "OK -- Get the private endpoint connection properties successfully.", + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "put": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Create", + "description": "Update the state of specified private endpoint connection associated with the Bot.", + "x-ms-examples": { + "Put Private Endpoint Connection": { + "$ref": "./examples/PutPrivateEndpointConnection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" + }, + { + "name": "properties", + "in": "body", + "required": true, + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection" + }, + "description": "The private endpoint connection properties." + } + ], + "responses": { + "200": { + "description": "OK -- Update the private endpoint connection properties successfully.", + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/Error" + } + } + } + }, + "delete": { + "tags": [ + "PrivateEndpointConnections" + ], + "operationId": "PrivateEndpointConnections_Delete", + "description": "Deletes the specified private endpoint connection associated with the Bot.", + "x-ms-examples": { + "Delete Private Endpoint Connection": { + "$ref": "./examples/DeletePrivateEndpointConnection.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "../../../../../common-types/resource-management/v1/privatelinks.json#/parameters/PrivateEndpointConnectionName" + } + ], + "responses": { + "200": { + "description": "OK -- Delete the private endpoint connection successfully." + }, + "204": { + "description": "No Content -- The private endpoint connection does not exist." + }, + "default": { + "description": "Error response describing why the operation failed.", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateLinkResources": { + "get": { + "tags": [ + "PrivateLinkResources" + ], + "operationId": "PrivateLinkResources_ListByBotResource", + "description": "Gets the private link resources that need to be created for a Bot.", + "x-ms-examples": { + "List Private Link Resources": { + "$ref": "./examples/ListPrivateLinkResources.json" + } + }, + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/resourceNameParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved private link resources.", + "schema": { + "$ref": "./privatelinks.json#/definitions/PrivateLinkResourceListResult" + } + }, + "default": { + "description": "Default error response", + "x-ms-error-response": true, + "schema": { + "$ref": "#/definitions/Error" + } + } + } + } + } + }, + "definitions": { + "Resource": { + "description": "Azure resource", + "x-ms-azure-resource": true, + "properties": { + "id": { + "description": "Specifies the resource ID.", + "type": "string", + "readOnly": true + }, + "name": { + "description": "Specifies the name of the resource.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Specifies the location of the resource.", + "type": "string" + }, + "type": { + "description": "Specifies the type of the resource.", + "type": "string", + "readOnly": true + }, + "tags": { + "description": "Contains resource tags defined as key/value pairs.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "Gets or sets the SKU of the resource." + }, + "kind": { + "$ref": "#/definitions/Kind", + "description": "Required. Gets or sets the Kind of the resource.", + "x-nullable": true + }, + "etag": { + "type": "string", + "description": "Entity Tag" + }, + "zones": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Entity zones", + "readOnly": true + } + } + }, + "Sku": { + "properties": { + "name": { + "$ref": "#/definitions/SkuName", + "description": "The sku name" + }, + "tier": { + "readOnly": true, + "type": "string", + "description": "Gets the sku tier. This is based on the SKU name.", + "enum": [ + "Free", + "Standard" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + } + } + }, + "required": [ + "name" + ], + "description": "The SKU of the cognitive services account." + }, + "SkuName": { + "type": "string", + "description": "The name of SKU.", + "enum": [ + "F0", + "S1" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, + "Kind": { + "type": "string", + "description": "Indicates the type of bot service", + "enum": [ + "sdk", + "designer", + "bot", + "function", + "azurebot" + ], + "x-ms-enum": { + "name": "Kind", + "modelAsString": true + }, + "x-ms-mutability": [ + "create", + "read" + ] + }, + "Bot": { + "type": "object", + "description": "Bot resource definition", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/BotProperties", + "description": "The set of properties specific to bot resource" + } + } + }, + "BotProperties": { + "properties": { + "displayName": { + "type": "string", + "description": "The Name of the bot" + }, + "description": { + "type": "string", + "description": "The description of the bot" + }, + "iconUrl": { + "type": "string", + "description": "The Icon Url of the bot", + "default": "" + }, + "endpoint": { + "type": "string", + "description": "The bot's endpoint", + "x-nullable": true + }, + "endpointVersion": { + "type": "string", + "readOnly": true, + "description": "The bot's endpoint version" + }, + "allSettings": { + "description": "Contains resource all settings defined as key/value pairs.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "parameters": { + "description": "Contains resource parameters defined as key/value pairs.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "manifestUrl": { + "type": "string", + "description": "The bot's manifest url" + }, + "msaAppType": { + "type": "string", + "description": "Microsoft App Type for the bot", + "enum": [ + "UserAssignedMSI", + "SingleTenant", + "MultiTenant" + ], + "x-ms-enum": { + "name": "msaAppType", + "modelAsString": true + } + }, + "msaAppId": { + "type": "string", + "description": "Microsoft App Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "msaAppTenantId": { + "type": "string", + "description": "Microsoft App Tenant Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "msaAppMSIResourceId": { + "type": "string", + "description": "Microsoft App Managed Identity Resource Id for the bot" + }, + "configuredChannels": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true, + "description": "Collection of channels for which the bot is configured" + }, + "enabledChannels": { + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true, + "description": "Collection of channels for which the bot is enabled" + }, + "developerAppInsightKey": { + "type": "string", + "description": "The Application Insights key" + }, + "developerAppInsightsApiKey": { + "type": "string", + "description": "The Application Insights Api Key" + }, + "developerAppInsightsApplicationId": { + "type": "string", + "description": "The Application Insights App Id" + }, + "luisAppIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Collection of LUIS App Ids" + }, + "luisKey": { + "type": "string", + "description": "The LUIS Key" + }, + "isCmekEnabled": { + "type": "boolean", + "description": "Whether Cmek is enabled", + "default": false + }, + "cmekKeyVaultUrl": { + "type": "string", + "description": "The CMK Url" + }, + "cmekEncryptionStatus": { + "type": "string", + "description": "The CMK encryption status", + "readOnly": true + }, + "tenantId": { + "type": "string", + "description": "The Tenant Id for the bot", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "publicNetworkAccess": { + "description": "Whether the bot is in an isolated network", + "enum": [ + "Enabled", + "Disabled" + ], + "type": "string", + "x-ms-enum": { + "name": "PublicNetworkAccess", + "modelAsString": true + }, + "default": "Enabled" + }, + "isStreamingSupported": { + "type": "boolean", + "description": "Whether the bot is streaming supported", + "default": false + }, + "isDeveloperAppInsightsApiKeySet": { + "type": "boolean", + "description": "Whether the bot is developerAppInsightsApiKey set", + "readOnly": true + }, + "migrationToken": { + "type": "string", + "description": "Token used to migrate non Azure bot to azure subscription", + "readOnly": true + }, + "disableLocalAuth": { + "type": "boolean", + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication." + }, + "schemaTransformationVersion": { + "type": "string", + "description": "The channel schema transformation version for the bot", + "x-nullable": true, + "default": null + }, + "storageResourceId": { + "type": "string", + "description": "The storage resourceId for the bot" + }, + "privateEndpointConnections": { + "type": "array", + "readOnly": true, + "description": "List of Private Endpoint Connections configured for the bot", + "items": { + "$ref": "./privatelinks.json#/definitions/PrivateEndpointConnection" + } + }, + "openWithHint": { + "type": "string", + "description": "The hint to browser (e.g. protocol handler) on how to open the bot for authoring" + }, + "appPasswordHint": { + "type": "string", + "description": "The hint (e.g. keyVault secret resourceId) on how to fetch the app secret" + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Provisioning state of the resource" + }, + "publishingCredentials": { + "type": "string", + "description": "Publishing credentials of the resource" + } + }, + "description": "The parameters to provide for the Bot.", + "required": [ + "displayName", + "endpoint", + "msaAppId" + ] + }, + "BotResponseList": { + "properties": { + "nextLink": { + "description": "The link used to get the next page of bot service resources.", + "type": "string" + }, + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/Bot" + }, + "description": "Gets the list of bot service results and their properties." + } + }, + "description": "The list of bot service operation response." + }, + "CreateEmailSignInUrlResponse": { + "type": "object", + "description": "The ARM create email sign in url operation response.", + "properties": { + "id": { + "description": "Specifies the resource ID.", + "type": "string", + "readOnly": true + }, + "location": { + "description": "Specifies the location of the resource.", + "type": "string" + }, + "properties": { + "$ref": "#/definitions/CreateEmailSignInUrlResponseProperties", + "description": "The set of properties specific to sign in url" + } + } + }, + "CreateEmailSignInUrlResponseProperties": { + "type": "object", + "description": "The set of properties specific to sign in url", + "properties": { + "url": { + "description": "Sign in url.", + "type": "string" + } + } + }, + "ListChannelWithKeysResponse": { + "type": "object", + "description": "The ARM channel of list channel with keys operation response.", + "allOf": [ + { + "$ref": "#/definitions/BotChannel" + } + ], + "properties": { + "resource": { + "$ref": "#/definitions/Channel", + "description": "The set of properties specific to bot channel resource" + }, + "setting": { + "$ref": "#/definitions/ChannelSettings", + "description": "Channel settings" + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the resource" + }, + "entityTag": { + "type": "string", + "description": "Entity tag of the resource" + }, + "changedTime": { + "type": "string", + "description": "Changed time of the resource" + } + } + }, + "BotChannel": { + "type": "object", + "description": "Bot channel resource definition", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/Channel", + "description": "The set of properties specific to bot channel resource" + } + } + }, + "ChannelSettings": { + "type": "object", + "description": "Channel settings definition", + "properties": { + "extensionKey1": { + "type": "string", + "description": "The extensionKey1", + "default": "" + }, + "extensionKey2": { + "type": "string", + "description": "The extensionKey2", + "default": "" + }, + "sites": { + "type": "array", + "items": { + "$ref": "#/definitions/Site" + }, + "description": "The list of sites" + }, + "channelId": { + "type": "string", + "description": "The channel id" + }, + "channelDisplayName": { + "type": "string", + "description": "The channel display name" + }, + "botId": { + "type": "string", + "description": "The bot id" + }, + "botIconUrl": { + "type": "string", + "description": "The bot icon url" + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + }, + "disableLocalAuth": { + "type": "boolean", + "description": "Opt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication." + }, + "requireTermsAgreement": { + "type": "boolean", + "description": "Whether customer needs to agree to new terms.", + "x-ms-nullable": true + } + } + }, + "Channel": { + "type": "object", + "description": "Channel definition", + "discriminator": "channelName", + "properties": { + "channelName": { + "type": "string", + "description": "The channel name" + }, + "etag": { + "type": "string", + "description": "Entity Tag of the resource", + "x-nullable": true, + "x-ms-mutability": [ + "create", + "read" + ] + }, + "provisioningState": { + "type": "string", + "readOnly": true, + "description": "Provisioning state of the resource" + }, + "location": { + "description": "Specifies the location of the resource.", + "type": "string", + "default": "global" + } + }, + "required": [ + "channelName" + ] + }, + "AlexaChannel": { + "type": "object", + "x-ms-discriminator-value": "AlexaChannel", + "description": "Alexa channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/AlexaChannelProperties", + "description": "The set of properties specific to Alexa channel resource" + } + } + }, + "AlexaChannelProperties": { + "properties": { + "alexaSkillId": { + "type": "string", + "description": "The Alexa skill Id" + }, + "urlFragment": { + "type": "string", + "readOnly": true, + "description": "Url fragment used in part of the Uri configured in Alexa" + }, + "serviceEndpointUri": { + "type": "string", + "readOnly": true, + "description": "Full Uri used to configured the skill in Alexa" + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + } + }, + "description": "The parameters to provide for the Alexa channel.", + "required": [ + "alexaSkillId", + "isEnabled" + ] + }, + "FacebookChannel": { + "type": "object", + "description": "Facebook channel definition", + "x-ms-discriminator-value": "FacebookChannel", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/FacebookChannelProperties", + "description": "The set of properties specific to bot facebook channel" + } + } + }, + "FacebookChannelProperties": { + "properties": { + "verifyToken": { + "x-ms-secret": true, + "type": "string", + "readOnly": true, + "description": "Verify token. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "pages": { + "type": "array", + "items": { + "$ref": "#/definitions/FacebookPage" + }, + "description": "The list of Facebook pages" + }, + "appId": { + "type": "string", + "description": "Facebook application id" + }, + "appSecret": { + "x-ms-secret": true, + "type": "string", + "description": "Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "callbackUrl": { + "type": "string", + "readOnly": true, + "description": "Callback Url" + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + } + }, + "description": "The parameters to provide for the Facebook channel.", + "required": [ + "appId", + "isEnabled" + ] + }, + "FacebookPage": { + "properties": { + "id": { + "type": "string", + "description": "Page id" + }, + "accessToken": { + "x-ms-secret": true, + "type": "string", + "description": "Facebook application access token. Value only returned through POST to the action Channel List API, otherwise empty." + } + }, + "description": "A Facebook page for Facebook channel registration", + "required": [ + "id" + ] + }, + "EmailChannel": { + "type": "object", + "description": "Email channel definition", + "x-ms-discriminator-value": "EmailChannel", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/EmailChannelProperties", + "description": "The set of properties specific to email channel resource" + } + } + }, + "EmailChannelProperties": { + "properties": { + "emailAddress": { + "type": "string", + "description": "The email address" + }, + "authMethod": { + "$ref": "#/definitions/EmailChannelAuthMethod", + "description": "Email channel auth method. 0 Password (Default); 1 Graph." + }, + "password": { + "type": "string", + "description": "The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "magicCode": { + "type": "string", + "description": "The magic code for setting up the modern authentication." + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + } + }, + "description": "The parameters to provide for the Email channel.", + "required": [ + "emailAddress", + "isEnabled" + ] + }, + "EmailChannelAuthMethod": { + "type": "number", + "description": "Email channel auth method. 0 Password (Default); 1 Graph.", + "enum": [ + 0, + 1 + ], + "x-ms-enum": { + "name": "EmailChannelAuthMethod", + "modelAsString": false, + "values": [ + { + "value": 0, + "name": "Password", + "description": "Basic authentication." + }, + { + "value": 1, + "name": "Graph", + "description": "Modern authentication." + } + ] + } + }, + "OutlookChannel": { + "type": "object", + "x-ms-discriminator-value": "OutlookChannel", + "description": "Outlook channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "MsTeamsChannel": { + "type": "object", + "x-ms-discriminator-value": "MsTeamsChannel", + "description": "Microsoft Teams channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/MsTeamsChannelProperties", + "description": "The set of properties specific to Microsoft Teams channel resource" + } + } + }, + "MsTeamsChannelProperties": { + "properties": { + "enableCalling": { + "type": "boolean", + "description": "Enable calling for Microsoft Teams channel", + "default": false + }, + "callingWebhook": { + "type": "string", + "description": "Webhook for Microsoft Teams channel calls" + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + }, + "incomingCallRoute": { + "type": "string", + "description": "Webhook for Microsoft Teams channel calls" + }, + "deploymentEnvironment": { + "type": "string", + "description": "Deployment environment for Microsoft Teams channel calls", + "default": "FallbackDeploymentEnvironment" + }, + "acceptedTerms": { + "type": "boolean", + "description": "Whether this channel accepted terms", + "x-nullable": true, + "default": null + } + }, + "description": "The parameters to provide for the Microsoft Teams channel.", + "required": [ + "isEnabled" + ] + }, + "SkypeChannel": { + "type": "object", + "description": "Skype channel definition", + "x-ms-discriminator-value": "SkypeChannel", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/SkypeChannelProperties", + "description": "The set of properties specific to Skype channel resource" + } + } + }, + "SkypeChannelProperties": { + "properties": { + "enableMessaging": { + "type": "boolean", + "description": "Enable messaging for Skype channel" + }, + "enableMediaCards": { + "type": "boolean", + "description": "Enable media cards for Skype channel" + }, + "enableVideo": { + "type": "boolean", + "description": "Enable video for Skype channel" + }, + "enableCalling": { + "type": "boolean", + "description": "Enable calling for Skype channel", + "default": false + }, + "enableScreenSharing": { + "type": "boolean", + "description": "Enable screen sharing for Skype channel" + }, + "enableGroups": { + "type": "boolean", + "description": "Enable groups for Skype channel" + }, + "groupsMode": { + "type": "string", + "description": "Group mode for Skype channel" + }, + "callingWebHook": { + "type": "string", + "description": "Calling web hook for Skype channel" + }, + "incomingCallRoute": { + "type": "string", + "description": "Incoming call route for Skype channel" + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + } + }, + "description": "The parameters to provide for the Microsoft Teams channel.", + "required": [ + "isEnabled" + ] + }, + "KikChannel": { + "type": "object", + "x-ms-discriminator-value": "KikChannel", + "description": "Kik channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/KikChannelProperties", + "description": "The set of properties specific to Kik channel resource" + } + } + }, + "KikChannelProperties": { + "properties": { + "userName": { + "type": "string", + "description": "The Kik user name" + }, + "apiKey": { + "type": "string", + "description": "Kik API key. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "isValidated": { + "type": "boolean", + "description": "Whether this channel is validated for the bot" + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + } + }, + "description": "The parameters to provide for the Kik channel.", + "required": [ + "userName", + "isEnabled" + ] + }, + "WebChatChannel": { + "type": "object", + "x-ms-discriminator-value": "WebChatChannel", + "description": "Web Chat channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/WebChatChannelProperties", + "description": "The set of properties specific to Web Chat channel resource" + } + } + }, + "WebChatChannelProperties": { + "properties": { + "webChatEmbedCode": { + "type": "string", + "x-ms-mutability": [ + "read" + ], + "readOnly": true, + "description": "Web chat control embed code" + }, + "sites": { + "type": "array", + "items": { + "$ref": "#/definitions/WebChatSite" + }, + "description": "The list of Web Chat sites" + } + }, + "description": "The parameters to provide for the Web Chat channel." + }, + "DirectLineChannel": { + "type": "object", + "x-ms-discriminator-value": "DirectLineChannel", + "description": "Direct Line channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/DirectLineChannelProperties", + "description": "The set of properties specific to Direct Line channel resource" + } + } + }, + "DirectLineChannelProperties": { + "properties": { + "sites": { + "type": "array", + "items": { + "$ref": "#/definitions/DirectLineSite" + }, + "description": "The list of Direct Line sites" + }, + "extensionKey1": { + "type": "string", + "description": "The extensionKey1", + "default": "" + }, + "extensionKey2": { + "type": "string", + "description": "The extensionKey2", + "default": "" + }, + "DirectLineEmbedCode": { + "type": "string", + "description": "Direct Line embed code of the resource" + } + }, + "description": "The parameters to provide for the Direct Line channel." + }, + "TelegramChannel": { + "type": "object", + "description": "Telegram channel definition", + "x-ms-discriminator-value": "TelegramChannel", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TelegramChannelProperties", + "description": "The set of properties specific to Telegram channel resource" + } + } + }, + "TelegramChannelProperties": { + "properties": { + "accessToken": { + "x-ms-secret": true, + "type": "string", + "description": "The Telegram access token. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "isValidated": { + "type": "boolean", + "description": "Whether this channel is validated for the bot" + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + } + }, + "description": "The parameters to provide for the Telegram channel.", + "required": [ + "isEnabled" + ] + }, + "SmsChannel": { + "type": "object", + "description": "Sms channel definition", + "x-ms-discriminator-value": "SmsChannel", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/SmsChannelProperties", + "description": "The set of properties specific to Sms channel resource" + } + } + }, + "SmsChannelProperties": { + "properties": { + "phone": { + "type": "string", + "description": "The Sms phone" + }, + "accountSID": { + "type": "string", + "description": "The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "authToken": { + "x-ms-secret": true, + "type": "string", + "description": "The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "isValidated": { + "type": "boolean", + "description": "Whether this channel is validated for the bot" + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + } + }, + "description": "The parameters to provide for the Sms channel.", + "required": [ + "phone", + "accountSID", + "isEnabled" + ] + }, + "SlackChannel": { + "type": "object", + "description": "Slack channel definition", + "x-ms-discriminator-value": "SlackChannel", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/SlackChannelProperties", + "description": "The set of properties specific to Slack channel resource" + } + } + }, + "SlackChannelProperties": { + "properties": { + "clientId": { + "type": "string", + "description": "The Slack client id" + }, + "clientSecret": { + "x-ms-secret": true, + "type": "string", + "description": "The Slack client secret. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "verificationToken": { + "x-ms-secret": true, + "type": "string", + "description": "The Slack verification token. Value only returned through POST to the action Channel List API, otherwise empty." + }, + "scopes": { + "type": "string", + "description": "The Slack permission scopes." + }, + "landingPageUrl": { + "type": "string", + "description": "The Slack landing page Url" + }, + "redirectAction": { + "type": "string", + "description": "The Slack redirect action", + "readOnly": true + }, + "lastSubmissionId": { + "type": "string", + "description": "The Sms auth token", + "readOnly": true + }, + "registerBeforeOAuthFlow": { + "type": "boolean", + "description": "Whether to register the settings before OAuth validation is performed. Recommended to True." + }, + "IsValidated": { + "type": "boolean", + "description": "Whether this channel is validated for the bot", + "readOnly": true + }, + "signingSecret": { + "x-ms-secret": true, + "type": "string", + "description": "The Slack signing secret." + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled for the bot" + } + }, + "description": "The parameters to provide for the Slack channel.", + "required": [ + "isEnabled" + ] + }, + "LineChannel": { + "type": "object", + "description": "Line channel definition", + "x-ms-discriminator-value": "LineChannel", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/LineChannelProperties", + "description": "The set of properties specific to line channel resource" + } + } + }, + "LineChannelProperties": { + "properties": { + "lineRegistrations": { + "type": "array", + "description": "The list of line channel registrations", + "items": { + "$ref": "#/definitions/LineRegistration" + } + }, + "callbackUrl": { + "type": "string", + "description": "Callback Url to enter in line registration.", + "readOnly": true + }, + "isValidated": { + "type": "boolean", + "description": "Whether this channel is validated for the bot", + "readOnly": true + } + }, + "description": "The parameters to provide for the Line channel.", + "required": [ + "lineRegistrations" + ] + }, + "LineRegistration": { + "properties": { + "generatedId": { + "x-ms-mutability": [ + "read" + ], + "type": "string", + "description": "Id generated for the line channel registration", + "readOnly": true + }, + "channelSecret": { + "x-ms-secret": true, + "type": "string", + "description": "Secret for the line channel registration" + }, + "channelAccessToken": { + "x-ms-secret": true, + "type": "string", + "description": "Access token for the line channel registration" + } + }, + "description": "The properties corresponding to a line channel registration" + }, + "DirectLineSpeechChannel": { + "type": "object", + "description": "DirectLine Speech channel definition", + "x-ms-discriminator-value": "DirectLineSpeechChannel", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/DirectLineSpeechChannelProperties", + "description": "The set of properties specific to DirectLine Speech channel resource" + } + } + }, + "DirectLineSpeechChannelProperties": { + "properties": { + "cognitiveServiceResourceId": { + "type": "string", + "description": "The cognitive service id with this channel registration." + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The cognitive service region with this channel registration.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "x-ms-secret": true, + "type": "string", + "description": "The cognitive service subscription key to use with this channel registration.", + "x-nullable": true + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this channel is enabled or not." + }, + "customVoiceDeploymentId": { + "type": "string", + "description": "Custom speech model id (optional)." + }, + "customSpeechModelId": { + "type": "string", + "description": "Custom voice deployment id (optional)." + }, + "isDefaultBotForCogSvcAccount": { + "type": "boolean", + "description": "Make this a default bot for chosen cognitive service account." + } + }, + "description": "The parameters to provide for the DirectLine Speech channel." + }, + "Omnichannel": { + "type": "object", + "x-ms-discriminator-value": "Omnichannel", + "description": "Omnichannel channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "TelephonyChannel": { + "type": "object", + "x-ms-discriminator-value": "TelephonyChannel", + "description": "Telephony channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/TelephonyChannelProperties", + "description": "The set of properties specific to Telephony channel resource" + } + } + }, + "TelephonyChannelProperties": { + "type": "object", + "properties": { + "phoneNumbers": { + "type": "array", + "items": { + "$ref": "#/definitions/TelephonyPhoneNumbers" + }, + "description": "The list of Telephony phone numbers" + }, + "apiConfigurations": { + "type": "array", + "items": { + "$ref": "#/definitions/TelephonyChannelResourceApiConfiguration" + }, + "description": "The list of Telephony api configuration" + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The extensionKey1", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The extensionKey2", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale of the channel", + "x-nullable": true + }, + "premiumSKU": { + "type": "string", + "description": "The premium SKU applied to the channel", + "x-nullable": true + }, + "isEnabled": { + "type": "boolean", + "description": "Whether the channel is enabled" + } + }, + "description": "The parameters to provide for the Direct Line channel." + }, + "AcsChatChannel": { + "type": "object", + "x-ms-discriminator-value": "AcsChatChannel", + "description": "AcsChat channel definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "SearchAssistant": { + "type": "object", + "x-ms-discriminator-value": "SearchAssistant", + "description": "SearchAssistant definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "M365Extensions": { + "type": "object", + "x-ms-discriminator-value": "M365Extensions", + "description": "M365 Extensions definition", + "allOf": [ + { + "$ref": "#/definitions/Channel" + } + ] + }, + "ChannelResponseList": { + "properties": { + "nextLink": { + "description": "The link used to get the next page of bot service channel resources.", + "type": "string" + }, + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/BotChannel" + }, + "description": "Gets the list of bot service channel results and their properties." + } + }, + "description": "The list of bot service channel operation response." + }, + "WebChatSite": { + "allOf": [ + { + "$ref": "#/definitions/Site" + } + ], + "required": [ + "isWebchatPreviewEnabled" + ], + "description": "A site for the Webchat channel" + }, + "DirectLineSite": { + "allOf": [ + { + "$ref": "#/definitions/Site" + } + ], + "description": "A site for the Direct Line channel", + "required": [ + "isV1Enabled", + "isV3Enabled" + ] + }, + "Site": { + "type": "object", + "properties": { + "tenantId": { + "type": "string", + "description": "Tenant Id" + }, + "siteId": { + "type": "string", + "description": "Site Id", + "x-ms-mutability": [ + "read" + ], + "readOnly": true + }, + "siteName": { + "type": "string", + "description": "Site name", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "key": { + "type": "string", + "description": "Primary key. Value only returned through POST to the action Channel List API, otherwise empty.", + "x-ms-mutability": [ + "read" + ], + "readOnly": true + }, + "key2": { + "type": "string", + "description": "Secondary key. Value only returned through POST to the action Channel List API, otherwise empty.", + "x-ms-mutability": [ + "read" + ], + "readOnly": true + }, + "isEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for DirectLine channel" + }, + "isTokenEnabled": { + "type": "boolean", + "description": "Whether this site is token enabled for channel", + "readOnly": true + }, + "isEndpointParametersEnabled": { + "type": "boolean", + "description": "Whether this site is EndpointParameters enabled for channel" + }, + "isDetailedLoggingEnabled": { + "type": "boolean", + "description": "Whether this site is disabled detailed logging for" + }, + "isBlockUserUploadEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for block user upload.", + "x-nullable": true, + "default": null + }, + "isNoStorageEnabled": { + "type": "boolean", + "description": "Whether this no-storage site is disabled detailed logging for" + }, + "eTag": { + "type": "string", + "description": "Entity Tag" + }, + "appId": { + "type": "string", + "description": "DirectLine application id" + }, + "isV1Enabled": { + "type": "boolean", + "description": "Whether this site is enabled for Bot Framework V1 protocol.", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "isV3Enabled": { + "type": "boolean", + "description": "Whether this site is enabled for Bot Framework V3 protocol." + }, + "isSecureSiteEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for authentication with Bot Framework." + }, + "trustedOrigins": { + "type": "array", + "description": "List of Trusted Origin URLs for this site. This field is applicable only if isSecureSiteEnabled is True.", + "items": { + "type": "string" + } + }, + "isWebChatSpeechEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for Webchat Speech", + "default": false + }, + "isWebchatPreviewEnabled": { + "type": "boolean", + "description": "Whether this site is enabled for preview versions of Webchat", + "default": false + } + }, + "required": [ + "isEnabled", + "siteName" + ], + "description": "A site for the channel" + }, + "SiteInfo": { + "properties": { + "siteName": { + "type": "string", + "description": "The site name", + "x-ms-mutability": [ + "create", + "read" + ] + }, + "key": { + "type": "string", + "description": "Determines which key is to be regenerated", + "enum": [ + "key1", + "key2" + ], + "x-ms-enum": { + "name": "key", + "modelAsString": false + } + } + }, + "description": "Site information for WebChat or DirectLine Channels to identify which site to regenerate keys for.", + "type": "object", + "required": [ + "siteName", + "key" + ] + }, + "TelephonyPhoneNumbers": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The element id." + }, + "phoneNumber": { + "type": "string", + "description": "The phone number." + }, + "acsEndpoint": { + "type": "string", + "description": "The endpoint of ACS.", + "x-nullable": true + }, + "acsSecret": { + "type": "string", + "description": "The secret of ACS.", + "x-nullable": true + }, + "acsResourceId": { + "type": "string", + "description": "The resource id of ACS.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The subscription key of cognitive service.", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The service region of cognitive service.", + "x-nullable": true + }, + "cognitiveServiceResourceId": { + "type": "string", + "description": "The resource id of cognitive service.", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale of the phone number.", + "x-nullable": true + }, + "offerType": { + "type": "string", + "description": "Optional Property that will determine the offering type of the phone.", + "x-nullable": true + } + }, + "description": "A telephone number for the Telephony channel" + }, + "TelephonyChannelResourceApiConfiguration": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The id of config." + }, + "providerName": { + "type": "string", + "description": "The provider name.", + "x-nullable": true + }, + "cognitiveServiceSubscriptionKey": { + "type": "string", + "description": "The cognitive service subscription key.", + "x-nullable": true + }, + "cognitiveServiceRegion": { + "type": "string", + "description": "The cognitive service region.", + "x-nullable": true + }, + "cognitiveServiceResourceId": { + "type": "string", + "description": "The cognitive service resourceId.", + "x-nullable": true + }, + "defaultLocale": { + "type": "string", + "description": "The default locale.", + "x-nullable": true + } + }, + "description": "A resource Api configuration for the Telephony channel" + }, + "ConnectionItemName": { + "properties": { + "name": { + "type": "string", + "description": "Connection Item name that has been added in the API", + "readOnly": true + } + }, + "description": "The display name of a connection Item Setting registered with the Bot" + }, + "ConnectionSettingParameter": { + "properties": { + "key": { + "type": "string", + "description": "Key for the Connection Setting Parameter." + }, + "value": { + "type": "string", + "description": "Value associated with the Connection Setting Parameter.", + "x-nullable": true + } + }, + "description": "Extra Parameter in a Connection Setting Properties to indicate service provider specific properties" + }, + "ConnectionSettingProperties": { + "properties": { + "clientId": { + "type": "string", + "description": "Client Id associated with the Connection Setting." + }, + "settingId": { + "type": "string", + "description": "Setting Id set by the service for the Connection Setting.", + "readOnly": true + }, + "clientSecret": { + "x-ms-secret": true, + "type": "string", + "description": "Client Secret associated with the Connection Setting" + }, + "scopes": { + "type": "string", + "description": "Scopes associated with the Connection Setting", + "default": "" + }, + "serviceProviderId": { + "type": "string", + "description": "Service Provider Id associated with the Connection Setting" + }, + "serviceProviderDisplayName": { + "type": "string", + "description": "Service Provider Display Name associated with the Connection Setting" + }, + "parameters": { + "type": "array", + "description": "Service Provider Parameters associated with the Connection Setting", + "items": { + "$ref": "#/definitions/ConnectionSettingParameter" + } + }, + "provisioningState": { + "type": "string", + "description": "Provisioning state of the resource" + } + }, + "description": "Properties for a Connection Setting Item" + }, + "ConnectionSetting": { + "type": "object", + "description": "Bot channel resource definition", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/ConnectionSettingProperties", + "description": "The set of properties specific to bot channel resource" + } + } + }, + "ConnectionSettingResponseList": { + "properties": { + "nextLink": { + "description": "The link used to get the next page of bot service connection setting resources.", + "type": "string" + }, + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ConnectionSetting" + }, + "description": "Gets the list of bot service connection settings and their properties." + } + }, + "description": "The list of bot service connection settings response." + }, + "ServiceProviderResponseList": { + "properties": { + "nextLink": { + "description": "The link used to get the next page of bot service providers.", + "type": "string" + }, + "value": { + "readOnly": true, + "type": "array", + "items": { + "$ref": "#/definitions/ServiceProvider" + }, + "description": "Gets the list of bot service providers and their properties." + } + }, + "description": "The list of bot service providers response." + }, + "ServiceProviderParameter": { + "properties": { + "name": { + "type": "string", + "description": "Name of the Service Provider", + "readOnly": true + }, + "type": { + "type": "string", + "description": "Type of the Service Provider", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "Display Name of the Service Provider", + "readOnly": true + }, + "description": { + "type": "string", + "description": "Description of the Service Provider", + "readOnly": true + }, + "helpUrl": { + "type": "string", + "description": "Help Url for the Service Provider", + "readOnly": true + }, + "default": { + "type": "string", + "description": "Default Name for the Service Provider", + "readOnly": true + }, + "metadata": { + "type": "object", + "description": "Meta data for the Service Provider", + "readOnly": true, + "properties": { + "constraints": { + "description": "the constraints of the bot meta data.", + "type": "object", + "properties": { + "required": { + "description": "Whether required the constraints of the bot meta data.", + "type": "boolean" + } + } + } + } + } + }, + "description": "Extra Parameters specific to each Service Provider" + }, + "ServiceProviderProperties": { + "properties": { + "id": { + "type": "string", + "description": "Id for Service Provider", + "readOnly": true + }, + "displayName": { + "type": "string", + "description": "Display Name of the Service Provider", + "readOnly": true + }, + "serviceProviderName": { + "type": "string", + "description": "Name of the Service Provider", + "readOnly": true + }, + "devPortalUrl": { + "type": "string", + "description": "URL of Dev Portal", + "readOnly": true + }, + "iconUrl": { + "type": "string", + "description": "The URL of icon", + "default": "" + }, + "parameters": { + "description": "The list of parameters for the Service Provider", + "type": "array", + "items": { + "$ref": "#/definitions/ServiceProviderParameter" + } + } + }, + "description": "The Object used to describe a Service Provider supported by Bot Service" + }, + "ServiceProvider": { + "type": "object", + "description": "Service Provider Definition", + "properties": { + "properties": { + "$ref": "#/definitions/ServiceProviderProperties", + "description": "The Properties of a Service Provider Object" + } + } + }, + "Error": { + "properties": { + "error": { + "$ref": "#/definitions/ErrorBody", + "description": "The error body." + } + }, + "description": "Bot Service error object." + }, + "ErrorBody": { + "properties": { + "code": { + "type": "string", + "description": "error code" + }, + "message": { + "type": "string", + "description": "error message" + } + }, + "description": "Bot Service error body.", + "required": [ + "code", + "message" + ] + }, + "OperationEntityListResult": { + "description": "The list of bot service operation response.", + "type": "object", + "properties": { + "nextLink": { + "description": "The link used to get the next page of operations.", + "type": "string" + }, + "value": { + "description": "The list of operations.", + "type": "array", + "items": { + "$ref": "#/definitions/OperationEntity" + } + } + } + }, + "OperationEntity": { + "description": "The operations supported by Bot Service Management.", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}.", + "type": "string" + }, + "display": { + "$ref": "#/definitions/OperationDisplayInfo", + "description": "The operation supported by Bot Service Management." + }, + "origin": { + "description": "The origin of the operation.", + "type": "string" + }, + "properties": { + "description": "Additional properties.", + "type": "object" + } + } + }, + "OperationDisplayInfo": { + "description": "The operation supported by Bot Service Management.", + "type": "object", + "properties": { + "description": { + "description": "The description of the operation.", + "type": "string" + }, + "operation": { + "description": "The action that users can perform, based on their permission level.", + "type": "string" + }, + "provider": { + "description": "Service provider: Microsoft Bot Service.", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed.", + "type": "string" + } + } + }, + "CheckNameAvailabilityRequestBody": { + "description": "The request body for a request to Bot Service Management to check availability of a bot name.", + "type": "object", + "properties": { + "name": { + "description": "the name of the bot for which availability needs to be checked.", + "type": "string" + }, + "type": { + "description": "the type of the bot for which availability needs to be checked", + "type": "string" + } + } + }, + "CheckNameAvailabilityResponseBody": { + "description": "The response body returned for a request to Bot Service Management to check availability of a bot name.", + "type": "object", + "properties": { + "valid": { + "description": "indicates if the bot name is valid.", + "type": "boolean" + }, + "message": { + "description": "additional message from the bot management api showing why a bot name is not available", + "type": "string" + }, + "absCode": { + "description": "response code from ABS", + "type": "string", + "x-ms-nullable": true + } + } + }, + "HostSettingsResponse": { + "description": "The response body returned for a request to Bot Service Management to check per subscription hostSettings", + "type": "object", + "properties": { + "OAuthUrl": { + "description": "For in-conversation bot user authentication", + "type": "string" + }, + "ToBotFromChannelOpenIdMetadataUrl": { + "description": "For verifying incoming tokens from the channels", + "type": "string" + }, + "ToBotFromChannelTokenIssuer": { + "description": "For verifying incoming tokens from the channels", + "type": "string" + }, + "ToBotFromEmulatorOpenIdMetadataUrl": { + "description": "For verifying incoming tokens from bot emulator", + "type": "string" + }, + "ToChannelFromBotLoginUrl": { + "description": "For getting access token to channels from bot host", + "type": "string" + }, + "ToChannelFromBotOAuthScope": { + "description": "For getting access token to channels from bot host", + "type": "string" + }, + "ValidateAuthority": { + "description": "Per cloud OAuth setting on whether authority is validated", + "type": "boolean" + }, + "BotOpenIdMetadata": { + "description": "Same as toBotFromChannelOpenIdMetadataUrl, used by SDK < v4.12", + "type": "string" + } + } + }, + "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", + "properties": { + "id": { + "description": "The ID of the operation returned.", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "The name of the operation result.", + "readOnly": true, + "type": "string" + }, + "status": { + "description": "The status of the operation being performed.", + "enum": [ + "Canceled", + "Succeeded", + "Failed", + "Requested", + "Running" + ], + "readOnly": true, + "type": "string", + "x-ms-enum": { + "name": "OperationResultStatus", + "modelAsString": true + } + }, + "startTime": { + "format": "date-time", + "description": "The time that the operation was started.", + "readOnly": true, + "type": "string" + } + } + } + }, + "parameters": { + "resourceGroupNameParameter": { + "name": "resourceGroupName", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "maxLength": 64, + "minLength": 2, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", + "description": "The name of the Bot resource group in the user subscription." + }, + "resourceNameParameter": { + "name": "resourceName", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "maxLength": 64, + "minLength": 2, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9_.-]*$", + "description": "The name of the Bot resource." + }, + "subscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "description": "Azure Subscription ID.", + "required": true, + "type": "string" + }, + "apiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Version of the API to be used with the client request." + }, + "operationResultIdParameter": { + "name": "operationResultId", + "in": "path", + "description": "The ID of the operation result to get.", + "required": true, + "x-ms-parameter-location": "method", + "type": "string" + }, + "connectionNameParameter": { + "name": "connectionName", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "maxLength": 64, + "minLength": 2, + "pattern": "^[a-zA-Z0-9][\\sa-zA-Z0-9_.-]*$", + "description": "The name of the Bot Service Connection Setting resource." + }, + "channelNameParameter": { + "name": "channelName", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "AlexaChannel", + "FacebookChannel", + "EmailChannel", + "KikChannel", + "TelegramChannel", + "SlackChannel", + "MsTeamsChannel", + "SkypeChannel", + "WebChatChannel", + "DirectLineChannel", + "SmsChannel", + "LineChannel", + "DirectLineSpeechChannel", + "OutlookChannel", + "Omnichannel", + "TelephonyChannel", + "AcsChatChannel", + "SearchAssistant", + "M365Extensions" + ], + "x-ms-enum": { + "name": "channelName", + "modelAsString": false, + "values": [ + { + "value": "AlexaChannel" + }, + { + "value": "FacebookChannel" + }, + { + "value": "EmailChannel" + }, + { + "value": "KikChannel" + }, + { + "value": "TelegramChannel" + }, + { + "value": "SlackChannel" + }, + { + "value": "MsTeamsChannel" + }, + { + "value": "SkypeChannel" + }, + { + "value": "WebChatChannel" + }, + { + "value": "DirectLineChannel" + }, + { + "value": "SmsChannel" + }, + { + "value": "LineChannel" + }, + { + "value": "DirectLineSpeechChannel" + }, + { + "value": "OutlookChannel" + }, + { + "value": "Omnichannel" + }, + { + "value": "TelephonyChannel" + }, + { + "value": "AcsChatChannel" + }, + { + "value": "SearchAssistant" + }, + { + "value": "M365Extensions" + } + ] + }, + "description": "The name of the Channel resource." + }, + "regenerateKeyschannelNameParameter": { + "name": "channelName", + "x-ms-parameter-location": "method", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "WebChatChannel", + "DirectLineChannel" + ], + "x-ms-enum": { + "name": "regenerateKeysChannelName", + "modelAsString": false, + "values": [ + { + "value": "WebChatChannel" + }, + { + "value": "DirectLineChannel" + } + ] + }, + "description": "The name of the Channel resource for which keys are to be regenerated." + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CheckNameAvailability.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CheckNameAvailability.json new file mode 100644 index 000000000000..fe8fe7f84cf1 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CheckNameAvailability.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "api-version": "2022-09-15", + "parameters": { + "name": "testbotname", + "type": "string" + } + }, + "responses": { + "200": { + "body": { + "valid": true, + "message": "custom message from server" + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CreateBot.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CreateBot.json new file mode 100644 index 000000000000..b2e94f7a15ef --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CreateBot.json @@ -0,0 +1,129 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "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", + "msaAppType": "UserAssignedMSI", + "msaAppId": "exampleappid", + "msaAppTenantId": "exampleapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": true, + "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" + ], + "msaAppType": "UserAssignedMSI", + "msaAppId": "msaappid", + "msaAppTenantId": "msaapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "configuredChannels": [ + "facebook", + "groupme" + ], + "enabledChannels": [ + "facebook" + ], + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": true, + "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" + ], + "msaAppType": "UserAssignedMSI", + "msaAppId": "msaappid", + "msaAppTenantId": "msaapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "configuredChannels": [ + "facebook", + "groupme" + ], + "enabledChannels": [ + "facebook" + ], + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": true, + "schemaTransformationVersion": "1.0" + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CreateEmailSignInUrl.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CreateEmailSignInUrl.json new file mode 100644 index 000000000000..e1920b721788 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/CreateEmailSignInUrl.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname", + "location": "global", + "properties": { + "url": "https://token.botframework.com/api/oauth/signin?signin=XXX" + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteBot.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteBot.json new file mode 100644 index 000000000000..d1ebb0eb3c6a --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteBot.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteChannel.json new file mode 100644 index 000000000000..6b296d1623b2 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteChannel.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "EmailChannel" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteConnection.json new file mode 100644 index 000000000000..e14fdc0a6e5a --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteConnection.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "connectionName": "sampleConnection" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteDirectLineSpeechChannel.json new file mode 100644 index 000000000000..ecbb6938ece9 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeleteDirectLineSpeechChannel.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "DirectLineSpeechChannel" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeletePrivateEndpointConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeletePrivateEndpointConnection.json new file mode 100644 index 000000000000..a051abfb7b82 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DeletePrivateEndpointConnection.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res6977", + "resourceName": "sto2527", + "privateEndpointConnectionName": "{privateEndpointConnectionName}", + "api-version": "2022-09-15" + }, + "responses": { + "200": {}, + "204": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DirectlineRegenerateKeys.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DirectlineRegenerateKeys.json new file mode 100644 index 000000000000..eac9803896dd --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/DirectlineRegenerateKeys.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "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 + } + ] + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetAlexaChannel.json new file mode 100644 index 000000000000..6d73c583b547 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetAlexaChannel.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "AlexaChannel" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "AlexaChannel", + "properties": { + "alexaSkillId": "alexa skill id", + "urlFragment": "XUrlFragmentX", + "serviceEndpointUri": "https://domain/XUrlFragmentX/botId", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetBot.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetBot.json new file mode 100644 index 000000000000..326885935b63 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetBot.json @@ -0,0 +1,69 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "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" + ], + "msaAppType": "UserAssignedMSI", + "msaAppId": "msaappid", + "msaAppTenantId": "msaapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "configuredChannels": [ + "facebook", + "groupme" + ], + "enabledChannels": [ + "facebook" + ], + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "schemaTransformationVersion": "1.0", + "disableLocalAuth": true, + "privateEndpointConnections": [ + { + "id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/privateEndpointConnections/privatelink", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.Network/privateEndpoints/privatelink" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetChannel.json new file mode 100644 index 000000000000..24287d598ee5 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetChannel.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "EmailChannel" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetConnection.json new file mode 100644 index 000000000000..922e50704acc --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetConnection.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "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" + } + ] + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetDirectLineSpeechChannel.json new file mode 100644 index 000000000000..0b004deae9e9 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetDirectLineSpeechChannel.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "DirectLineSpeechChannel" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "DirectLineSpeechChannel", + "properties": { + "cognitiveServiceRegion": "Cognitive service region", + "customVoiceDeploymentId": "Custom voice deployment ID", + "customSpeechModelId": "Custom speech model ID", + "isDefaultBotForCogSvcAccount": true, + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetHostSettings.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetHostSettings.json new file mode 100644 index 000000000000..3379ce01badb --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetHostSettings.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "BotOpenIdMetadata": "https://login.botframework.com/v1/.well-known/openidconfiguration", + "OAuthUrl": "https://token.botframework.com/", + "ToBotFromChannelOpenIdMetadataUrl": "https://login.botframework.com/v1/.well-known/openidconfiguration", + "ToBotFromChannelTokenIssuer": "https://api.botframework.com", + "ToBotFromEmulatorOpenIdMetadataUrl": "https://login.microsoftonline.com/botframework.com/v2.0/.well-known/openid-configuration", + "ToChannelFromBotLoginUrl": "https://login.microsoftonline.com/botframework.com", + "ToChannelFromBotOAuthScope": "https://api.botframework.com", + "ValidateAuthority": true + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetLineChannel.json new file mode 100644 index 000000000000..f7f8c12ddaf0 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetLineChannel.json @@ -0,0 +1,31 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "LineChannel" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "LineChannel", + "properties": { + "lineRegistrations": [ + { + "generatedId": "id", + "channelSecret": null, + "channelAccessToken": null + } + ], + "callbackUrl": "http://callbackUrl", + "isValidated": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetOperations.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetOperations.json new file mode 100644 index 000000000000..a8182d844186 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetOperations.json @@ -0,0 +1,53 @@ +{ + "parameters": { + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.BotService/botService/read", + "display": { + "provider": "Microsoft Bot Service", + "resource": "Bot Service", + "operation": "Read Bot Service", + "description": "Read Bot Service" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.BotService/botService/write", + "display": { + "provider": "Microsoft Bot Service", + "resource": "Bot Service", + "operation": "Write Bot Service", + "description": "Writes Bot Service" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.BotService/botService/delete", + "display": { + "provider": "Microsoft Bot Service", + "resource": "Bot Service", + "operation": "Delete Bot Service", + "description": "Deletes Bot Service" + }, + "origin": "user,system" + }, + { + "name": "Microsoft.BotService/botService/botName/read", + "display": { + "provider": "Microsoft Bot Service", + "resource": "Bot Service name availability", + "operation": "Check bot name availability", + "description": "Check bot name availability" + }, + "origin": "user,system" + } + ] + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetPrivateEndpointConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetPrivateEndpointConnection.json new file mode 100644 index 000000000000..f04b0b4bb383 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/GetPrivateEndpointConnection.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res6977", + "resourceName": "sto2527", + "privateEndpointConnectionName": "{privateEndpointConnectionName}", + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.BotService/botServices/sto288/privateEndpointConnections/{privateEndpointConnectionName}", + "name": "{privateEndpointConnectionName}", + "type": "Microsoft.BotService/botServices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListBotsByResourceGroup.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListBotsByResourceGroup.json new file mode 100644 index 000000000000..f00d56e97ebf --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListBotsByResourceGroup.json @@ -0,0 +1,56 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "name": "samplebotname", + "type": "Microsoft.BotService/botServices", + "id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices", + "etag": "etag1", + "kind": "sdk", + "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" + ], + "msaAppType": "UserAssignedMSI", + "msaAppId": "msaappid", + "msaAppTenantId": "msaapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "configuredChannels": [ + "facebook", + "groupme" + ], + "enabledChannels": [ + "facebook" + ], + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": true, + "schemaTransformationVersion": "1.0" + } + } + ] + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListBotsBySubscription.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListBotsBySubscription.json new file mode 100644 index 000000000000..69504e18e6a6 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListBotsBySubscription.json @@ -0,0 +1,55 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "name": "samplebotname", + "type": "Microsoft.BotService/botServices", + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "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" + ], + "msaAppType": "UserAssignedMSI", + "msaAppId": "msaappid", + "msaAppTenantId": "msaapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "configuredChannels": [ + "facebook", + "groupme" + ], + "enabledChannels": [ + "facebook" + ], + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": true, + "schemaTransformationVersion": "1.0" + } + } + ] + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListChannel.json new file mode 100644 index 000000000000..fe9b9a56da44 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListChannel.json @@ -0,0 +1,79 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "EmailChannel", + "parameters": { + "location": "global" + } + }, + "responses": { + "200": { + "body": { + "resource": { + "properties": { + "sites": [ + { + "siteId": "aaaaaaaaaaa", + "siteName": "aaaaaaaaaaaa", + "key": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "key2": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "isEnabled": true, + "isV1Enabled": true, + "isV3Enabled": true, + "isSecureSiteEnabled": false, + "isBlockUserUploadEnabled": false, + "trustedOrigins": [ + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + ] + } + ] + }, + "etag": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "channelName": "DirectLineChannel", + "location": "aaaaaa" + }, + "setting": { + "extensionKey1": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "extensionKey2": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "sites": [ + { + "siteId": "aaaaaaaaaaa", + "siteName": "aaaaaaaaaaaa", + "key": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "key2": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "isEnabled": true, + "isV1Enabled": true, + "isV3Enabled": true, + "isWebchatPreviewEnabled": false, + "isSecureSiteEnabled": false, + "isBlockUserUploadEnabled": false, + "trustedOrigins": [ + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + ], + "isTokenEnabled": false, + "eTag": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + } + ], + "channelId": "aaaaaaaaaa", + "channelDisplayName": "aaaaaaaaaaa", + "botId": "aaaaaaaaaaaaaaaaaaaa", + "botIconUrl": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "isEnabled": true, + "disableLocalAuth": false + }, + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListChannelsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListChannelsByBotService.json new file mode 100644 index 000000000000..9f186424c404 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListChannelsByBotService.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "resourceName": "samplebotname", + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + }, + { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "FacebookChannel", + "properties": { + "appId": "id", + "callbackUrl": "appid", + "isEnabled": true, + "pages": [ + { + "accessToken": null, + "id": "id" + } + ] + } + } + } + ] + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListConnectionsByBotService.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListConnectionsByBotService.json new file mode 100644 index 000000000000..31dff87f4479 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListConnectionsByBotService.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "name": "sampleConnection", + "properties": { + "clientId": "sampleclientid", + "clientSecret": null, + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListPrivateEndpointConnections.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListPrivateEndpointConnections.json new file mode 100644 index 000000000000..153cf5f2233e --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListPrivateEndpointConnections.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res6977", + "resourceName": "sto2527", + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.BotService/botServices/sto288/privateEndpointConnections/{privateEndpointConnectionName}", + "name": "{privateEndpointConnectionName}", + "type": "Microsoft.BotService/botServices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + }, + { + "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.BotService/botServices/sto288/privateEndpointConnections/{privateEndpointConnectionName}", + "name": "{privateEndpointConnectionName}", + "type": "Microsoft.BotService/botServices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest02" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + } + ] + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListPrivateLinkResources.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListPrivateLinkResources.json new file mode 100644 index 000000000000..d6249663f985 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListPrivateLinkResources.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res6977", + "resourceName": "sto2527", + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/{subscription-id}/resourceGroups/res6977/providers/Microsoft.BotService/botServices/sto2527/privateLinkResources/resource1", + "name": "resource1", + "type": "Microsoft.BotService/botServices/privateLinkResources", + "properties": { + "groupId": "bot", + "requiredMembers": [ + "bot" + ], + "requiredZoneNames": [ + "privatelink.botframework.com" + ] + } + } + ] + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListQnAMakerEndpointKeys.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListQnAMakerEndpointKeys.json new file mode 100644 index 000000000000..c9cd1142dc0c --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListQnAMakerEndpointKeys.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "api-version": "2022-09-15", + "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" + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListServiceProviders.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListServiceProviders.json new file mode 100644 index 000000000000..d43d37a0fa58 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/ListServiceProviders.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "api-version": "2022-09-15" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "id": "sampleServiceProviderId", + "displayName": "sample service provider display name", + "serviceProviderName": "sampleServiceProvider", + "devPortalUrl": "sampleDevPortalUrl", + "iconUrl": "sampleIconUrl", + "parameters": [ + { + "name": "sampleParameterName", + "type": "sampleParameterType", + "displayName": "sampleDisplayName", + "description": "sampleDescription", + "helpUrl": "sampleHelpUrl", + "default": "sampleDefaultValue" + } + ] + } + } + ] + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/OperationResultsGet.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/OperationResultsGet.json new file mode 100644 index 000000000000..2f7ff73ca6cf --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/OperationResultsGet.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2022-09-15", + "subscriptionId": "subid", + "operationResultId": "exampleid" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subid/providers/Microsoft.BotService/locations/westus/operationresults/exampleid", + "name": "servicename", + "status": "Requested", + "startTime": "2019-01-21T06:03:30.2716301Z" + } + }, + "202": {} + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutAlexaChannel.json new file mode 100644 index 000000000000..1036bbc7aa2e --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutAlexaChannel.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "AlexaChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "AlexaChannel", + "properties": { + "alexaSkillId": "XAlexaSkillIdX", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "AlexaChannel", + "properties": { + "alexaSkillId": "alexa skill id", + "urlFragment": "XUrlFragmentX", + "serviceEndpointUri": "https://domain/XUrlFragmentX/botId", + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "AlexaChannel", + "properties": { + "alexaSkillId": "alexa skill id", + "urlFragment": "XUrlFragmentX", + "serviceEndpointUri": "https://domain/XUrlFragmentX/botId", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutChannel.json new file mode 100644 index 000000000000..1c94583b0361 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutChannel.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "EmailChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutConnection.json new file mode 100644 index 000000000000..f2b22b23f49c --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutConnection.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "connectionName": "sampleConnection", + "parameters": { + "location": "West US", + "etag": "etag1", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + }, + "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" + } + ] + } + } + }, + "201": { + "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" + } + ] + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutDirectLineSpeechChannel.json new file mode 100644 index 000000000000..ceb5d24b67b5 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutDirectLineSpeechChannel.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "DirectLineSpeechChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "DirectLineSpeechChannel", + "properties": { + "cognitiveServiceRegion": "XcognitiveServiceRegionX", + "cognitiveServiceSubscriptionKey": "XcognitiveServiceSubscriptionKeyX", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "DirectLineSpeechChannel", + "properties": { + "cognitiveServiceRegion": "XcognitiveServiceRegionX", + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "DirectLineSpeechChannel", + "properties": { + "cognitiveServiceRegion": "XcognitiveServiceRegionX", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutEmailChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutEmailChannel.json new file mode 100644 index 000000000000..303178e21dda --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutEmailChannel.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "EmailChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "magicCode": "000000", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "authMethod": 1, + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutLineChannel.json new file mode 100644 index 000000000000..9d61be3c3d58 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutLineChannel.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "LineChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "LineChannel", + "properties": { + "lineRegistrations": [ + { + "channelSecret": "channelSecret", + "channelAccessToken": "channelAccessToken" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "LineChannel", + "properties": { + "lineRegistrations": [ + { + "generatedId": "id", + "channelSecret": null, + "channelAccessToken": null + } + ], + "callbackUrl": "http://callbackUrl", + "isValidated": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "LineChannel", + "properties": { + "lineRegistrations": [ + { + "generatedId": "id", + "channelSecret": null, + "channelAccessToken": null + } + ], + "callbackUrl": "http://callbackUrl", + "isValidated": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutPrivateEndpointConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutPrivateEndpointConnection.json new file mode 100644 index 000000000000..c8209e549eda --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/PutPrivateEndpointConnection.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "subscriptionId": "{subscription-id}", + "resourceGroupName": "res7687", + "resourceName": "sto9699", + "privateEndpointConnectionName": "{privateEndpointConnectionName}", + "api-version": "2022-09-15", + "properties": { + "properties": { + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved" + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.BotService/botServices/sto288/privateEndpointConnections/{privateEndpointConnectionName}", + "name": "{privateEndpointConnectionName}", + "type": "Microsoft.BotService/botServices/privateEndpointConnections", + "properties": { + "provisioningState": "Succeeded", + "privateEndpoint": { + "id": "/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01" + }, + "privateLinkServiceConnectionState": { + "status": "Approved", + "description": "Auto-Approved", + "actionsRequired": "None" + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateAlexaChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateAlexaChannel.json new file mode 100644 index 000000000000..46f70ab87fab --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateAlexaChannel.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "AlexaChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "AlexaChannel", + "properties": { + "alexaSkillId": "XAlexaSkillIdX", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "AlexaChannel", + "properties": { + "alexaSkillId": "XAlexaSkillIdX", + "urlFragment": "XUrlFragmentX", + "serviceEndpointUri": "https://domain/XUrlFragmentX/botId", + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "AlexaChannel", + "properties": { + "alexaSkillId": "XAlexaSkillIdX", + "urlFragment": "XUrlFragmentX", + "serviceEndpointUri": "https://domain/XUrlFragmentX/botId", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateBot.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateBot.json new file mode 100644 index 000000000000..ebb7ffd06a70 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateBot.json @@ -0,0 +1,131 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "parameters": { + "location": "West US", + "sku": { + "name": "S1" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "etag": "etag1", + "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", + "msaAppType": "UserAssignedMSI", + "msaAppId": "msaappid", + "msaAppTenantId": "msaapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": true, + "schemaTransformationVersion": "1.0" + } + } + }, + "responses": { + "200": { + "body": { + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "etag": "etag1", + "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", + "developerAppInsightKey": "appinsightskey", + "developerAppInsightsApplicationId": "appinsightsappid", + "displayName": "The Name of the bot", + "endpoint": "http://mybot.coffee", + "endpointVersion": "version", + "iconUrl": "http://myicon", + "luisAppIds": [ + "luisappid1", + "luisappid2" + ], + "msaAppType": "UserAssignedMSI", + "msaAppId": "msaappid", + "msaAppTenantId": "msaapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "configuredChannels": [ + "facebook", + "groupme" + ], + "enabledChannels": [ + "facebook" + ], + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": true, + "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", + "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" + ], + "msaAppType": "UserAssignedMSI", + "msaAppId": "msaappid", + "msaAppTenantId": "msaapptenantid", + "msaAppMSIResourceId": "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId", + "configuredChannels": [ + "facebook", + "groupme" + ], + "enabledChannels": [ + "facebook" + ], + "isCmekEnabled": true, + "cmekKeyVaultUrl": "https://myCmekKey", + "publicNetworkAccess": "Enabled", + "disableLocalAuth": true, + "schemaTransformationVersion": "1.0" + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateChannel.json new file mode 100644 index 000000000000..1c94583b0361 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateChannel.json @@ -0,0 +1,50 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "EmailChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "EmailChannel", + "properties": { + "emailAddress": "a@b.com", + "password": "pwd", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateConnection.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateConnection.json new file mode 100644 index 000000000000..f9ce026b165c --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateConnection.json @@ -0,0 +1,81 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "connectionName": "sampleConnection", + "parameters": { + "location": "global", + "etag": "etag1", + "properties": { + "clientId": "sampleclientid", + "clientSecret": "samplesecret", + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "location": "global", + "id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection", + "name": "sampleConnection", + "properties": { + "clientId": "sampleclientid", + "clientSecret": null, + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + }, + "201": { + "body": { + "location": "global", + "etag": "etag1", + "id": "/subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection", + "name": "sampleConnection", + "properties": { + "clientId": "sampleclientid", + "clientSecret": null, + "scopes": "samplescope", + "serviceProviderId": "serviceproviderid", + "serviceProviderDisplayName": "serviceProviderDisplayName", + "parameters": [ + { + "key": "key1", + "value": "value1" + }, + { + "key": "key2", + "value": "value2" + } + ] + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateDirectLineSpeechChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateDirectLineSpeechChannel.json new file mode 100644 index 000000000000..ceb5d24b67b5 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateDirectLineSpeechChannel.json @@ -0,0 +1,48 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "DirectLineSpeechChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "DirectLineSpeechChannel", + "properties": { + "cognitiveServiceRegion": "XcognitiveServiceRegionX", + "cognitiveServiceSubscriptionKey": "XcognitiveServiceSubscriptionKeyX", + "isEnabled": true + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "DirectLineSpeechChannel", + "properties": { + "cognitiveServiceRegion": "XcognitiveServiceRegionX", + "isEnabled": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "DirectLineSpeechChannel", + "properties": { + "cognitiveServiceRegion": "XcognitiveServiceRegionX", + "isEnabled": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateLineChannel.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateLineChannel.json new file mode 100644 index 000000000000..9d61be3c3d58 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/UpdateLineChannel.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "LineChannel", + "parameters": { + "location": "global", + "properties": { + "channelName": "LineChannel", + "properties": { + "lineRegistrations": [ + { + "channelSecret": "channelSecret", + "channelAccessToken": "channelAccessToken" + } + ] + } + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "LineChannel", + "properties": { + "lineRegistrations": [ + { + "generatedId": "id", + "channelSecret": null, + "channelAccessToken": null + } + ], + "callbackUrl": "http://callbackUrl", + "isValidated": true + } + } + } + }, + "201": { + "body": { + "id": "/subscriptions/subscription-id/providers/Microsoft.BotService/botServices", + "location": "global", + "properties": { + "channelName": "LineChannel", + "properties": { + "lineRegistrations": [ + { + "generatedId": "id", + "channelSecret": null, + "channelAccessToken": null + } + ], + "callbackUrl": "http://callbackUrl", + "isValidated": true + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/WebChatRegenerateKeys.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/WebChatRegenerateKeys.json new file mode 100644 index 000000000000..e84b09d946b7 --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/examples/WebChatRegenerateKeys.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subscription-id", + "resourceGroupName": "OneResourceGroupName", + "api-version": "2022-09-15", + "resourceName": "samplebotname", + "channelName": "WebChatChannel", + "parameters": { + "siteName": "testSiteName", + "key": "key1" + } + }, + "responses": { + "200": { + "body": { + "location": "global", + "properties": { + "channelName": "WebChatChannel", + "properties": { + "sites": [ + { + "siteId": "abcd", + "siteName": "Default Site", + "key": "key1", + "key2": "key2", + "isEnabled": true, + "isWebchatPreviewEnabled": true + } + ] + } + } + } + } + } +} diff --git a/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/privatelinks.json b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/privatelinks.json new file mode 100644 index 000000000000..a0250342682d --- /dev/null +++ b/specification/botservice/resource-manager/Microsoft.BotService/stable/2022-09-15/privatelinks.json @@ -0,0 +1,203 @@ +{ + "swagger": "2.0", + "info": { + "version": "2022-09-15", + "title": "Common types" + }, + "paths": {}, + "definitions": { + "PrivateEndpoint": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "The ARM identifier for Private Endpoint" + } + }, + "description": "The Private Endpoint resource." + }, + "PrivateLinkResourceBase": { + "title": "Private Link Resource Base", + "description": "Common fields that are returned in the response for all BotService Private Link Resources", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"" + } + }, + "x-ms-azure-resource": true + }, + "PrivateEndpointConnection": { + "properties": { + "properties": { + "$ref": "#/definitions/PrivateEndpointConnectionProperties", + "x-ms-client-flatten": true, + "description": "Resource properties." + } + }, + "allOf": [ + { + "$ref": "#/definitions/PrivateLinkResourceBase" + } + ], + "description": "The Private Endpoint Connection resource." + }, + "PrivateEndpointConnectionProperties": { + "properties": { + "privateEndpoint": { + "$ref": "#/definitions/PrivateEndpoint", + "description": "The resource of private end point." + }, + "privateLinkServiceConnectionState": { + "$ref": "#/definitions/PrivateLinkServiceConnectionState", + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "provisioningState": { + "$ref": "#/definitions/PrivateEndpointConnectionProvisioningState", + "description": "The provisioning state of the private endpoint connection resource." + }, + "groupIds": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Group ids" + } + }, + "required": [ + "privateLinkServiceConnectionState" + ], + "description": "Properties of the PrivateEndpointConnectProperties." + }, + "PrivateLinkServiceConnectionState": { + "properties": { + "status": { + "$ref": "#/definitions/PrivateEndpointServiceConnectionStatus", + "description": "Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service." + }, + "description": { + "type": "string", + "description": "The reason for approval/rejection of the connection." + }, + "actionsRequired": { + "type": "string", + "description": "A message indicating if changes on the service provider require any updates on the consumer." + } + }, + "description": "A collection of information about the state of the connection between service consumer and provider." + }, + "PrivateEndpointServiceConnectionStatus": { + "type": "string", + "description": "The private endpoint connection status.", + "enum": [ + "Pending", + "Approved", + "Rejected" + ], + "x-ms-enum": { + "name": "PrivateEndpointServiceConnectionStatus", + "modelAsString": true + } + }, + "PrivateEndpointConnectionProvisioningState": { + "type": "string", + "readOnly": true, + "description": "The current provisioning state.", + "enum": [ + "Succeeded", + "Creating", + "Deleting", + "Failed" + ], + "x-ms-enum": { + "name": "PrivateEndpointConnectionProvisioningState", + "modelAsString": true + } + }, + "PrivateLinkResource": { + "properties": { + "properties": { + "$ref": "#/definitions/PrivateLinkResourceProperties", + "description": "Resource properties.", + "x-ms-client-flatten": true + } + }, + "allOf": [ + { + "$ref": "#/definitions/PrivateLinkResourceBase" + } + ], + "description": "A private link resource" + }, + "PrivateLinkResourceProperties": { + "properties": { + "groupId": { + "description": "The private link resource group id.", + "type": "string", + "readOnly": true + }, + "requiredMembers": { + "description": "The private link resource required member names.", + "type": "array", + "items": { + "type": "string" + }, + "readOnly": true + }, + "requiredZoneNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "The private link resource Private link DNS zone name." + } + }, + "description": "Properties of a private link resource." + }, + "PrivateEndpointConnectionListResult": { + "properties": { + "value": { + "type": "array", + "description": "Array of private endpoint connections", + "items": { + "$ref": "#/definitions/PrivateEndpointConnection" + } + } + }, + "description": "List of private endpoint connection associated with the specified storage account" + }, + "PrivateLinkResourceListResult": { + "properties": { + "value": { + "type": "array", + "description": "Array of private link resources", + "items": { + "$ref": "#/definitions/PrivateLinkResource" + } + } + }, + "description": "A list of private link resources" + } + }, + "parameters": { + "PrivateEndpointConnectionName": { + "name": "privateEndpointConnectionName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the private endpoint connection associated with the Azure resource", + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/botservice/resource-manager/readme.md b/specification/botservice/resource-manager/readme.md index 765e84d2f642..02083594aa83 100644 --- a/specification/botservice/resource-manager/readme.md +++ b/specification/botservice/resource-manager/readme.md @@ -26,15 +26,36 @@ These are the global settings for the BotService API. ``` yaml openapi-type: arm -tag: package-preview-2022-06 +tag: package-2022-09 ``` +### Tag: package-2022-09 + +These settings apply only when `--tag=package-2022-09` is specified on the command line. + +```yaml $(tag) == 'package-2022-09' +input-file: + - Microsoft.BotService/stable/2022-09-15/botservice.json +directive: + - suppress: R4009 + from: botservice.json + reason: We don not yet support systemdata + - suppress: R4018 + from: botservice.json + reason: We don not yet support systemdata + - suppress: R3016 + from: botservice.json + reason: app settings keys are case sensitive + - suppress: R3018 + from: botservice.json + reason: app settings for ValidateAuthority needs to be boolean +``` ### Tag: package-preview-2022-06 These settings apply only when `--tag=package-preview-2022-06` is specified on the command line. -```yaml $(tag) == 'package-preview-2022-06' +``` yaml $(tag) == 'package-preview-2022-06' input-file: - Microsoft.BotService/preview/2022-06-15-preview/botservice.json directive: @@ -51,6 +72,7 @@ directive: from: botservice.json reason: app settings for ValidateAuthority needs to be boolean ``` + ### Tag: package-preview-2021-05 These settings apply only when `--tag=package-preview-2021-05` is specified on the command line.