diff --git a/fluent-tests/prepare-tests.bat b/fluent-tests/prepare-tests.bat index 438f79f368..a679957347 100644 --- a/fluent-tests/prepare-tests.bat +++ b/fluent-tests/prepare-tests.bat @@ -69,6 +69,9 @@ if %errorlevel% neq 0 exit /b %errorlevel% CALL autorest --version=%AUTOREST_CORE_VERSION% %FLUENTLITE_ARGUMENTS% --regenerate-pom=false https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/resources/resource-manager/readme.md --tag=package-policy-2020-09 --java.namespace=com.azure.mgmtlitetest.policy if %errorlevel% neq 0 exit /b %errorlevel% +CALL autorest --version=%AUTOREST_CORE_VERSION% %FLUENTLITE_ARGUMENTS% --regenerate-pom=false https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/readme.md --tag=package-preview-2021-05 --java.namespace=com.azure.mgmtlitetest.botservice +if %errorlevel% neq 0 exit /b %errorlevel% + REM CALL autorest --version=%AUTOREST_CORE_VERSION% %FLUENTLITE_ARGUMENTS% --regenerate-pom=false https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/network/resource-manager/readme.md --tag=package-2020-06 --java.namespace=com.azure.mgmtlitetest.network REM CALL autorest --version=%AUTOREST_CORE_VERSION% %FLUENTLITE_ARGUMENTS% --regenerate-pom=false https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/compute/resource-manager/readme.md --tag=package-2020-06-30 --java.namespace=com.azure.mgmtlitetest.compute diff --git a/fluent-tests/src/test/java/com/azure/mgmttest/RuntimeTests.java b/fluent-tests/src/test/java/com/azure/mgmttest/RuntimeTests.java index a445fb9677..209b0a966d 100644 --- a/fluent-tests/src/test/java/com/azure/mgmttest/RuntimeTests.java +++ b/fluent-tests/src/test/java/com/azure/mgmttest/RuntimeTests.java @@ -24,6 +24,7 @@ import com.azure.mgmtlitetest.advisor.AdvisorManager; import com.azure.mgmtlitetest.advisor.models.ResourceRecommendationBase; import com.azure.mgmtlitetest.advisor.models.SuppressionContract; +import com.azure.mgmtlitetest.botservice.models.Site; import com.azure.mgmtlitetest.mediaservices.MediaServicesManager; import com.azure.mgmtlitetest.mediaservices.models.MediaService; import com.azure.mgmtlitetest.mediaservices.models.StorageAccountType; @@ -148,6 +149,18 @@ public void testPom() throws ParserConfigurationException, IOException, SAXExcep Assertions.assertTrue(rootTags.get("name").contains("Azure SDK")); } + @Test + public void testBotservice() throws IOException { + String siteName = "testSiteName"; + Site site = new Site().withSiteName(siteName); + Assertions.assertEquals(siteName, site.siteName()); + + SerializerAdapter serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter(); + String json = serializerAdapter.serialize(site, SerializerEncoding.JSON); + Site siteFromJson = serializerAdapter.deserialize(json, Site.class, SerializerEncoding.JSON); + Assertions.assertEquals(siteName, siteFromJson.siteName()); + } + @Test @Disabled("live test") public void testStorage() { diff --git a/fluentgen/src/test/java/com/azure/autorest/fluent/TestUtils.java b/fluentgen/src/test/java/com/azure/autorest/fluent/TestUtils.java index 5896a570e4..3ab17fa22f 100644 --- a/fluentgen/src/test/java/com/azure/autorest/fluent/TestUtils.java +++ b/fluentgen/src/test/java/com/azure/autorest/fluent/TestUtils.java @@ -50,7 +50,7 @@ public static class MockFluentGen extends FluentGen { DEFAULT_SETTINGS.put("generate-client-interfaces", true); DEFAULT_SETTINGS.put("required-parameter-client-methods", true); DEFAULT_SETTINGS.put("generate-samples", true); - + DEFAULT_SETTINGS.put("model-override-setter-from-superclass", true); //DEFAULT_SETTINGS.put("client-flattened-annotation-target", "NONE"); } diff --git a/fluentgen/src/test/java/com/azure/autorest/fluent/template/ModelTemplateTests.java b/fluentgen/src/test/java/com/azure/autorest/fluent/template/ModelTemplateTests.java new file mode 100644 index 0000000000..61d330ef2f --- /dev/null +++ b/fluentgen/src/test/java/com/azure/autorest/fluent/template/ModelTemplateTests.java @@ -0,0 +1,69 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ + + +package com.azure.autorest.fluent.template; + +import com.azure.autorest.extension.base.model.codemodel.CodeModel; +import com.azure.autorest.extension.base.plugin.JavaSettings; +import com.azure.autorest.fluent.FluentGenAccessor; +import com.azure.autorest.fluent.TestUtils; +import com.azure.autorest.mapper.ClientMapper; +import com.azure.autorest.model.clientmodel.Client; +import com.azure.autorest.model.clientmodel.ClientModel; +import com.azure.autorest.model.clientmodel.ClientModelPropertyAccess; +import com.azure.autorest.model.clientmodel.ClientModelPropertyReference; +import com.azure.core.util.CoreUtils; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +import java.util.List; + +public class ModelTemplateTests { + + private final JavaSettings settings = JavaSettings.getInstance(); + private static FluentGenAccessor fluentGenAccessor; + + @BeforeAll + public static void init(){ + TestUtils.MockFluentGen fluentgen = new TestUtils.MockFluentGen(); + fluentGenAccessor = new FluentGenAccessor(fluentgen); + } + + /** + * Issue: https://github.com/Azure/autorest.java/issues/1320 + * Remove duplicate setter methods from child schema when parent schema contains same property + * mainly to test {@link com.azure.autorest.template.ModelTemplate#getParentSettersToOverride(ClientModel, JavaSettings, List)} + */ + @Test + public void deduplicateTest(){ + CodeModel codeModel = TestUtils.loadCodeModel(fluentGenAccessor, "code-model-fluentnamer-botservice.yaml"); + Client client = ClientMapper.getInstance().map(codeModel); + ClientModel model = client.getModels().stream().filter(clientModel -> clientModel.getName().equals("Site")).findAny().get(); + ModelTemplateAccessor templateAccessor = new ModelTemplateAccessor(); + List propertyReferences = templateAccessor.getClientModelPropertyReferences0(model); + if (!CoreUtils.isNullOrEmpty(model.getPropertyReferences())) { + propertyReferences.addAll(model.getPropertyReferences()); + } + // real test here + List toOverride = templateAccessor.getParentSettersToOverride(model, settings, propertyReferences); + Assertions.assertEquals(toOverride.size(), 1); + } + + private static class ModelTemplateAccessor extends FluentModelTemplate { + + public List getClientModelPropertyReferences0(ClientModel model) { + return super.getClientModelPropertyReferences(model); + } + + public List getParentSettersToOverride(ClientModel model, JavaSettings settings, List propertyReferences) { + return super.getParentSettersToOverride(model, settings, propertyReferences); + } + + } + + +} diff --git a/fluentgen/src/test/resources/code-model-fluentnamer-botservice.yaml b/fluentgen/src/test/resources/code-model-fluentnamer-botservice.yaml new file mode 100644 index 0000000000..63b3bae5f0 --- /dev/null +++ b/fluentgen/src/test/resources/code-model-fluentnamer-botservice.yaml @@ -0,0 +1,11797 @@ +&id001 !!com.azure.autorest.extension.base.model.codemodel.CodeModel +globalParameters: +- &id005 + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + flattened: false + implementation: CLIENT + language: + default: {description: Azure Subscription ID., name: SubscriptionId, serializedName: subscriptionId} + java: {description: Azure Subscription ID., name: subscriptionId, serializedName: subscriptionId} + nullable: false + operation: &id002 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Default error response, name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: &id014 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Bot Service error object., name: Error} + java: {description: Bot Service error object., name: ManagementError} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The error body., name: error} + java: {description: The error body., name: error} + nullable: false + protocol: {} + readOnly: false + required: false + schema: !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Bot Service error body., name: ErrorBody} + java: {description: Bot Service error body., name: ManagementError} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: error code, name: code} + java: {description: error code, name: code} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id337 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: error code, name: ErrorBodyCode} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: code + - apiVersions: [] + isDiscriminator: false + language: + default: {description: error message, name: message} + java: {description: error message, name: message} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id338 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: error message, name: ErrorBodyMessage} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: message + protocol: {} + type: OBJECT + serializedName: error + protocol: {} + type: OBJECT + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + List Private Link Resources: + parameters: {api-version: 2021-05-01-preview, resourceGroupName: res6977, + resourceName: sto2527, subscriptionId: '{subscription-id}'} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListPrivateLinkResources.json + responses: + '200': + body: + value: + - name: resource1 + type: Microsoft.BotService/botServices/privateLinkResources + id: /subscriptions/{subscription-id}/resourceGroups/res6977/providers/Microsoft.BotService/botServices/sto2527/privateLinkResources/resource1 + properties: + groupId: bot + requiredMembers: [bot] + requiredZoneNames: [privatelink.botframework.com] + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Gets the private link resources that need to be created + for a Bot., name: ListByBotResource} + java: {description: Gets the private link resources that need to be created + for a Bot., name: listByBotResource} + operationGroup: &id200 + $key: PrivateLinkResources + codeModel: *id001 + language: + default: {description: '', name: PrivateLinkResources} + java: {description: '', name: PrivateLinkResources} + operations: + - *id002 + protocol: {} + parameters: + - &id006 + apiVersions: [] + clientDefaultValue: https://management.azure.com + extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: true} + flattened: false + implementation: CLIENT + language: + default: {description: server parameter, name: endpoint, serializedName: $host} + java: {description: server parameter, name: endpoint, serializedName: $host} + nullable: false + operation: *id002 + origin: modelerfour:synthesized/host + protocol: + http: {explode: false, in: URI} + required: true + schema: &id004 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + language: + default: {description: simple string, name: String} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + - &id007 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id002 + protocol: + http: {explode: false, in: PATH} + required: true + schema: &id003 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: String} + maxLength: 64.0 + minLength: 2.0 + pattern: ^[a-zA-Z0-9][a-zA-Z0-9_.-]*$ + protocol: {} + type: STRING + - &id008 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id002 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id009 + apiVersions: [] + flattened: false + implementation: CLIENT + language: + default: {description: Api Version, name: apiVersion, serializedName: api-version} + java: {description: Api Version, name: apiVersion, serializedName: api-version} + nullable: false + operation: *id002 + origin: modelerfour:synthesized/api-version + protocol: + http: {explode: false, in: QUERY} + required: true + schema: &id254 !!com.azure.autorest.extension.base.model.codemodel.ConstantSchema + apiVersions: [] + language: + default: {description: Api Version (2021-05-01-preview), name: ApiVersion20210501Preview} + protocol: {} + type: CONSTANT + value: {value: 2021-05-01-preview} + valueType: *id004 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id007 + - *id008 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id002 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: &id051 !!com.azure.autorest.extension.base.model.codemodel.ConstantSchema + apiVersions: [] + language: + default: {description: 'Accept: application/json', name: Accept} + protocol: {} + type: CONSTANT + value: {value: application/json} + valueType: *id004 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateLinkResources', + uri: '{$host}'} + signatureParameters: + - *id007 + - *id008 + responses: + - language: + default: {description: Successfully retrieved private link resources., name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id284 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: A list of private link resources, name: PrivateLinkResourceListResult} + java: {description: A list of private link resources, name: PrivateLinkResourceListResult} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Array of private link resources, name: value} + java: {description: Array of private link resources, name: value} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id218 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id011 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: A private link resource, name: PrivateLinkResource} + java: {description: A private link resource, name: PrivateLinkResource} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - &id010 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + children: + all: + - &id012 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The Private Endpoint Connection resource., + name: PrivateEndpointConnection} + java: {description: The Private Endpoint Connection resource., + name: PrivateEndpointConnection} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id010 + - &id013 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: [] + extensions: {xmsAzureResource: true, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + java: {name: ProxyResource} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + java: {description: the fully qualified resource ID + for the resource, name: id} + nullable: false + readOnly: true + required: false + schema: !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + maxLength: 0.0 + minLength: 0.0 + serializedName: id + - apiVersions: [] + isDiscriminator: false + language: + java: {description: the name of the resource, name: name} + nullable: false + readOnly: true + required: false + schema: !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + maxLength: 0.0 + minLength: 0.0 + serializedName: name + - apiVersions: [] + isDiscriminator: false + language: + java: {description: the type of the resource, name: type} + nullable: false + readOnly: true + required: false + schema: !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + maxLength: 0.0 + minLength: 0.0 + serializedName: type + immediate: + - *id010 + properties: + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: true, + xmsFlattened: false, xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: Resource properties., name: properties} + java: {description: Resource properties., name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id260 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: true + language: + default: {description: Properties of the PrivateEndpointConnectProperties., + name: PrivateEndpointConnectionProperties} + java: {description: Properties of the PrivateEndpointConnectProperties., + name: PrivateEndpointConnectionProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The resource of private end point., + name: privateEndpoint} + java: {description: The resource of private end point., + name: privateEndpoint} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id261 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The Private Endpoint resource., + name: PrivateEndpoint} + java: {description: The Private Endpoint resource., + name: PrivateEndpoint} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The ARM identifier for Private + Endpoint, name: Id} + java: {description: The ARM identifier for Private + Endpoint, name: id} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id324 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The ARM identifier for + Private Endpoint, name: PrivateEndpointId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: id + protocol: {} + type: OBJECT + serializedName: privateEndpoint + - apiVersions: [] + isDiscriminator: false + language: + default: {description: A collection of information about + the state of the connection between service consumer + and provider., name: privateLinkServiceConnectionState} + java: {description: A collection of information about + the state of the connection between service consumer + and provider., name: privateLinkServiceConnectionState} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id262 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: A collection of information + about the state of the connection between service + consumer and provider., name: PrivateLinkServiceConnectionState} + java: {description: A collection of information about + the state of the connection between service consumer + and provider., name: PrivateLinkServiceConnectionState} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Indicates whether the connection + has been Approved/Rejected/Removed by the owner + of the service., name: status} + java: {description: Indicates whether the connection + has been Approved/Rejected/Removed by the owner + of the service., name: status} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id248 !!com.azure.autorest.extension.base.model.codemodel.ChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: PENDING} + value: Pending + - language: + default: {description: '', name: APPROVED} + value: Approved + - language: + default: {description: '', name: REJECTED} + value: Rejected + language: + default: {description: The private endpoint connection + status., name: PrivateEndpointServiceConnectionStatus} + java: {description: The private endpoint connection + status., name: PrivateEndpointServiceConnectionStatus} + protocol: {} + type: CHOICE + serializedName: status + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The reason for approval/rejection + of the connection., name: description} + java: {description: The reason for approval/rejection + of the connection., name: description} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id325 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The reason for approval/rejection + of the connection., name: PrivateLinkServiceConnectionStateDescription} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: description + - apiVersions: [] + isDiscriminator: false + language: + default: {description: A message indicating if changes + on the service provider require any updates + on the consumer., name: actionsRequired} + java: {description: A message indicating if changes + on the service provider require any updates + on the consumer., name: actionsRequired} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id326 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: A message indicating if + changes on the service provider require any + updates on the consumer., name: PrivateLinkServiceConnectionStateActionsRequired} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: actionsRequired + protocol: {} + type: OBJECT + serializedName: privateLinkServiceConnectionState + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The provisioning state of the + private endpoint connection resource., name: provisioningState} + java: {description: The provisioning state of the private + endpoint connection resource., name: provisioningState} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id249 !!com.azure.autorest.extension.base.model.codemodel.ChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: SUCCEEDED} + value: Succeeded + - language: + default: {description: '', name: CREATING} + value: Creating + - language: + default: {description: '', name: DELETING} + value: Deleting + - language: + default: {description: '', name: FAILED} + value: Failed + language: + default: {description: The current provisioning state., + name: PrivateEndpointConnectionProvisioningState} + java: {description: The current provisioning state., + name: PrivateEndpointConnectionProvisioningState} + protocol: {} + type: CHOICE + serializedName: provisioningState + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - *id011 + immediate: + - *id012 + - *id011 + extensions: {xmsAzureResource: true, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Common fields that are returned in the + response for all BotService Private Link Resources, name: PrivateLinkResourceBase} + java: {description: Common fields that are returned in the response + for all BotService Private Link Resources, name: PrivateLinkResourceBase} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id013 + immediate: + - *id013 + properties: [] + protocol: {} + summary: Private Link Resource Base + type: OBJECT + - *id013 + immediate: + - *id010 + properties: + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: true, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: Resource properties., name: properties} + java: {description: Resource properties., name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id285 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: true + language: + default: {description: Properties of a private link resource., + name: PrivateLinkResourceProperties} + java: {description: Properties of a private link resource., name: PrivateLinkResourceProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The private link resource group id., + name: groupId} + java: {description: The private link resource group id., name: groupId} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id408 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The private link resource group id., + name: PrivateLinkResourcePropertiesGroupId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: groupId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The private link resource required member + names., name: requiredMembers} + java: {description: The private link resource required member + names., name: requiredMembers} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id216 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id409 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: PrivateLinkResourcePropertiesRequiredMembersItem} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + language: + default: {description: The private link resource required + member names., name: PrivateLinkResourcePropertiesRequiredMembers} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: requiredMembers + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The private link resource Private link + DNS zone name., name: requiredZoneNames} + java: {description: The private link resource Private link DNS + zone name., name: requiredZoneNames} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id217 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id410 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: PrivateLinkResourcePropertiesRequiredZoneNamesItem} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + language: + default: {description: The private link resource Private link + DNS zone name., name: PrivateLinkResourcePropertiesRequiredZoneNames} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: requiredZoneNames + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + language: + default: {description: Array of private link resources, name: PrivateLinkResourceListResultValue} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: value + protocol: {} + type: OBJECT + signatureParameters: + - *id007 + - *id008 + protocol: + http: {explode: false, in: PATH} + required: true + schema: &id049 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: String} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING +- *id006 +- *id009 +info: {description: Azure Bot Service is a platform for creating smart conversational + agents., title: Azure Bot Service} +language: + default: {description: '', name: AzureBotService} + java: {description: '', name: AzureBotService} +operationGroups: +- &id015 + $key: Bots + codeModel: *id001 + language: + default: {description: '', name: Bots} + java: {description: '', name: Bots} + operations: + - &id016 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Create Bot: + parameters: + api-version: 2021-05-01-preview + parameters: + etag: etag1 + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + developerAppInsightKey: appinsightskey + developerAppInsightsApiKey: appinsightsapikey + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + endpoint: http://mybot.coffee + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + luisKey: luiskey + msaAppId: exampleappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: exampleapptenantid + msaAppType: UserAssignedMSI + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + sku: {name: S1} + tags: {tag1: value1, tag2: value2} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/CreateBot.json + responses: + '200': + body: + name: samplebotname + type: Microsoft.BotService/botServices + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + configuredChannels: [facebook, groupme] + developerAppInsightKey: appinsightskey + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + enabledChannels: [facebook] + endpoint: http://mybot.coffee + endpointVersion: version + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + msaAppId: msaappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: msaapptenantid + msaAppType: UserAssignedMSI + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + tags: {tag1: value1, tag2: value2} + '201': + body: + name: samplebotname + type: Microsoft.BotService/botServices + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + configuredChannels: [facebook, groupme] + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + enabledChannels: [facebook] + endpoint: http://mybot.coffee + endpointVersion: version + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + msaAppId: msaappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: msaapptenantid + msaAppType: UserAssignedMSI + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + tags: {tag1: value1, tag2: value2} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Creates a Bot Service. Bot Service is a resource group + wide resource type., name: Create} + java: {description: Creates a Bot Service. Bot Service is a resource group wide + resource type., name: create} + operationGroup: *id015 + parameters: + - *id006 + - &id017 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id016 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id018 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id016 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id017 + - *id018 + - *id009 + - *id005 + - &id052 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The parameters to provide for the created bot., name: parameters} + java: {description: The parameters to provide for the created bot., name: parameters} + nullable: false + operation: *id016 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: &id019 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Bot resource definition, name: Bot} + java: {description: Bot resource definition, name: Bot} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - &id021 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + children: + all: + - *id019 + - &id020 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + children: + all: + - &id043 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The ARM channel of list channel with + keys operation response., name: ListChannelWithKeysResponse} + java: {description: The ARM channel of list channel with keys + operation response., name: ListChannelWithKeysResponse} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id020 + - *id021 + immediate: + - *id020 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific to + bot channel resource, name: resource} + java: {description: The set of properties specific to bot + channel resource, name: resource} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id022 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + children: + all: + - &id029 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: AlexaChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Alexa channel definition, name: AlexaChannel} + java: {description: Alexa channel definition, name: AlexaChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Alexa channel resource, name: properties} + java: {description: The set of properties specific + to Alexa channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id286 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Alexa channel., name: AlexaChannelProperties} + java: {description: The parameters to provide + for the Alexa channel., name: AlexaChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Alexa skill Id, name: alexaSkillId} + java: {description: The Alexa skill Id, name: alexaSkillId} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id411 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Alexa skill Id, + name: AlexaChannelPropertiesAlexaSkillId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: alexaSkillId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Url fragment used in + part of the Uri configured in Alexa, name: urlFragment} + java: {description: Url fragment used in part + of the Uri configured in Alexa, name: urlFragment} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id412 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Url fragment used in + part of the Uri configured in Alexa, name: AlexaChannelPropertiesUrlFragment} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: urlFragment + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Full Uri used to configured + the skill in Alexa, name: serviceEndpointUri} + java: {description: Full Uri used to configured + the skill in Alexa, name: serviceEndpointUri} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id413 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Full Uri used to configured + the skill in Alexa, name: AlexaChannelPropertiesServiceEndpointUri} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: serviceEndpointUri + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id023 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether this channel + is enabled for the bot, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isEnabled + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id030 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: FacebookChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Facebook channel definition, + name: FacebookChannel} + java: {description: Facebook channel definition, name: FacebookChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to bot facebook channel, name: properties} + java: {description: The set of properties specific + to bot facebook channel, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id287 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Facebook channel., name: FacebookChannelProperties} + java: {description: The parameters to provide + for the Facebook channel., name: FacebookChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: 'Verify token. Value + only returned through POST to the action + Channel List API, otherwise empty.', name: verifyToken} + java: {description: 'Verify token. Value only + returned through POST to the action Channel + List API, otherwise empty.', name: verifyToken} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id414 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + language: + default: {description: 'Verify token. Value + only returned through POST to the action + Channel List API, otherwise empty.', name: FacebookChannelPropertiesVerifyToken} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: verifyToken + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The list of Facebook + pages, name: pages} + java: {description: The list of Facebook pages, + name: pages} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id219 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id288 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: A Facebook page for + Facebook channel registration, name: FacebookPage} + java: {description: A Facebook page for + Facebook channel registration, name: FacebookPage} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Page id, name: Id} + java: {description: Page id, name: id} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id415 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Page id, name: FacebookPageId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: id + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: 'Facebook application + access token. Value only returned + through POST to the action Channel + List API, otherwise empty.', name: accessToken} + java: {description: 'Facebook application + access token. Value only returned + through POST to the action Channel + List API, otherwise empty.', name: accessToken} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id416 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, + xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: 'Facebook application + access token. Value only returned + through POST to the action Channel + List API, otherwise empty.', name: FacebookPageAccessToken} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: accessToken + protocol: {} + type: OBJECT + language: + default: {description: The list of Facebook + pages, name: FacebookChannelPropertiesPages} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: pages + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Facebook application + id, name: appId} + java: {description: Facebook application id, + name: appId} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id417 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Facebook application + id, name: FacebookChannelPropertiesAppId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: appId + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: 'Facebook application + secret. Value only returned through POST + to the action Channel List API, otherwise + empty.', name: appSecret} + java: {description: 'Facebook application secret. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: appSecret} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id418 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + language: + default: {description: 'Facebook application + secret. Value only returned through POST + to the action Channel List API, otherwise + empty.', name: FacebookChannelPropertiesAppSecret} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: appSecret + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Callback Url, name: callbackUrl} + java: {description: Callback Url, name: callbackUrl} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id419 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Callback Url, name: FacebookChannelPropertiesCallbackUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: callbackUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id023 + serializedName: isEnabled + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id031 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: EmailChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Email channel definition, name: EmailChannel} + java: {description: Email channel definition, name: EmailChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to email channel resource, name: properties} + java: {description: The set of properties specific + to email channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id289 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Email channel., name: EmailChannelProperties} + java: {description: The parameters to provide + for the Email channel., name: EmailChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The email address, name: emailAddress} + java: {description: The email address, name: emailAddress} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id420 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The email address, + name: EmailChannelPropertiesEmailAddress} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: emailAddress + - apiVersions: [] + isDiscriminator: false + language: + default: {description: 'The password for the + email address. Value only returned through + POST to the action Channel List API, otherwise + empty.', name: password} + java: {description: 'The password for the email + address. Value only returned through POST + to the action Channel List API, otherwise + empty.', name: password} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id421 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: 'The password for the + email address. Value only returned through + POST to the action Channel List API, otherwise + empty.', name: EmailChannelPropertiesPassword} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: password + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id023 + serializedName: isEnabled + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id032 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: MsTeamsChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Microsoft Teams channel definition, + name: MsTeamsChannel} + java: {description: Microsoft Teams channel definition, + name: MsTeamsChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Microsoft Teams channel resource, name: properties} + java: {description: The set of properties specific + to Microsoft Teams channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id290 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Microsoft Teams channel., name: MsTeamsChannelProperties} + java: {description: The parameters to provide + for the Microsoft Teams channel., name: MsTeamsChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Enable calling for Microsoft + Teams channel, name: enableCalling} + java: {description: Enable calling for Microsoft + Teams channel, name: enableCalling} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id235 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Enable calling for + Microsoft Teams channel, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: enableCalling + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Webhook for Microsoft + Teams channel calls, name: callingWebhook} + java: {description: Webhook for Microsoft Teams + channel calls, name: callingWebhook} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id422 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Webhook for Microsoft + Teams channel calls, name: MsTeamsChannelPropertiesCallingWebHook} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: callingWebHook + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id023 + serializedName: isEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Webhook for Microsoft + Teams channel calls, name: incomingCallRoute} + java: {description: Webhook for Microsoft Teams + channel calls, name: incomingCallRoute} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id423 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Webhook for Microsoft + Teams channel calls, name: MsTeamsChannelPropertiesIncomingCallRoute} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: incomingCallRoute + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Deployment environment + for Microsoft Teams channel calls, name: deploymentEnvironment} + java: {description: Deployment environment for + Microsoft Teams channel calls, name: deploymentEnvironment} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id424 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Deployment environment + for Microsoft Teams channel calls, name: MsTeamsChannelPropertiesDeploymentEnvironment} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: deploymentEnvironment + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + accepted terms, name: acceptedTerms} + java: {description: Whether this channel accepted + terms, name: acceptedTerms} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id236 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether this channel + accepted terms, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: acceptedTerms + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id033 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: SkypeChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Skype channel definition, name: SkypeChannel} + java: {description: Skype channel definition, name: SkypeChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Skype channel resource, name: properties} + java: {description: The set of properties specific + to Skype channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id291 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Microsoft Teams channel., name: SkypeChannelProperties} + java: {description: The parameters to provide + for the Microsoft Teams channel., name: SkypeChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Enable messaging for + Skype channel, name: enableMessaging} + java: {description: Enable messaging for Skype + channel, name: enableMessaging} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id237 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Enable messaging for + Skype channel, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: enableMessaging + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Enable media cards for + Skype channel, name: enableMediaCards} + java: {description: Enable media cards for Skype + channel, name: enableMediaCards} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id238 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Enable media cards + for Skype channel, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: enableMediaCards + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Enable video for Skype + channel, name: enableVideo} + java: {description: Enable video for Skype channel, + name: enableVideo} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id239 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Enable video for Skype + channel, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: enableVideo + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Enable calling for Skype + channel, name: enableCalling} + java: {description: Enable calling for Skype + channel, name: enableCalling} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id240 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Enable calling for + Skype channel, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: enableCalling + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Enable screen sharing + for Skype channel, name: enableScreenSharing} + java: {description: Enable screen sharing for + Skype channel, name: enableScreenSharing} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id241 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Enable screen sharing + for Skype channel, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: enableScreenSharing + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Enable groups for Skype + channel, name: enableGroups} + java: {description: Enable groups for Skype + channel, name: enableGroups} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id242 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Enable groups for Skype + channel, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: enableGroups + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Group mode for Skype + channel, name: groupsMode} + java: {description: Group mode for Skype channel, + name: groupsMode} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id425 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Group mode for Skype + channel, name: SkypeChannelPropertiesGroupsMode} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: groupsMode + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Calling web hook for + Skype channel, name: callingWebhook} + java: {description: Calling web hook for Skype + channel, name: callingWebhook} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id426 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Calling web hook for + Skype channel, name: SkypeChannelPropertiesCallingWebHook} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: callingWebHook + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Incoming call route for + Skype channel, name: incomingCallRoute} + java: {description: Incoming call route for + Skype channel, name: incomingCallRoute} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id427 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Incoming call route + for Skype channel, name: SkypeChannelPropertiesIncomingCallRoute} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: incomingCallRoute + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id023 + serializedName: isEnabled + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id034 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: KikChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Kik channel definition, name: KikChannel} + java: {description: Kik channel definition, name: KikChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Kik channel resource, name: properties} + java: {description: The set of properties specific + to Kik channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id292 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Kik channel., name: KikChannelProperties} + java: {description: The parameters to provide + for the Kik channel., name: KikChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Kik user name, name: username} + java: {description: The Kik user name, name: username} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id428 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Kik user name, + name: KikChannelPropertiesUserName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: userName + - apiVersions: [] + isDiscriminator: false + language: + default: {description: 'Kik API key. Value only + returned through POST to the action Channel + List API, otherwise empty.', name: apiKey} + java: {description: 'Kik API key. Value only + returned through POST to the action Channel + List API, otherwise empty.', name: apiKey} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id429 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: 'Kik API key. Value + only returned through POST to the action + Channel List API, otherwise empty.', name: KikChannelPropertiesApiKey} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: apiKey + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is validated for the bot, name: isValidated} + java: {description: Whether this channel is + validated for the bot, name: isValidated} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id028 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether this channel + is validated for the bot, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isValidated + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id023 + serializedName: isEnabled + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id035 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: WebChatChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Web Chat channel definition, + name: WebChatChannel} + java: {description: Web Chat channel definition, name: WebChatChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Web Chat channel resource, name: properties} + java: {description: The set of properties specific + to Web Chat channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id293 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Web Chat channel., name: WebChatChannelProperties} + java: {description: The parameters to provide + for the Web Chat channel., name: WebChatChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + isDiscriminator: false + language: + default: {description: Web chat control embed + code, name: webChatEmbedCode} + java: {description: Web chat control embed code, + name: webChatEmbedCode} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id430 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + language: + default: {description: Web chat control embed + code, name: WebChatChannelPropertiesWebChatEmbedCode} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: webChatEmbedCode + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The list of Web Chat + sites, name: sites} + java: {description: The list of Web Chat sites, + name: sites} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id220 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id024 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + children: + all: + - &id025 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: A site for the + channel, name: Site} + java: {description: A site for the channel, + name: Site} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id024 + - &id027 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + children: + all: + - *id025 + immediate: + - *id025 + flattenedSchema: false + language: + default: {description: A site for + the Direct Line channel, name: DirectLineSite} + java: {description: A site for the + Direct Line channel, name: DirectLineSite} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + isDiscriminator: false + language: + default: {description: Site Id, + name: siteId} + java: {description: Site Id, name: siteId} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id351 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + language: + default: {description: Site + Id, name: DirectLineSiteId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: siteId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Site name, + name: siteName} + java: {description: Site name, + name: siteName} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id352 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Site + name, name: DirectLineSiteName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: siteName + - apiVersions: [] + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + isDiscriminator: false + language: + default: {description: 'Primary + key. Value only returned through + POST to the action Channel + List API, otherwise empty.', + name: key} + java: {description: 'Primary key. + Value only returned through + POST to the action Channel + List API, otherwise empty.', + name: key} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id353 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + language: + default: {description: 'Primary + key. Value only returned + through POST to the action + Channel List API, otherwise + empty.', name: DirectLineSiteKey} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: key + - apiVersions: [] + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + isDiscriminator: false + language: + default: {description: 'Secondary + key. Value only returned through + POST to the action Channel + List API, otherwise empty.', + name: key2} + java: {description: 'Secondary + key. Value only returned through + POST to the action Channel + List API, otherwise empty.', + name: key2} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id354 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + language: + default: {description: 'Secondary + key. Value only returned + through POST to the action + Channel List API, otherwise + empty.', name: DirectLineSiteKey2} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: key2 + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether + this site is enabled for DirectLine + channel., name: isEnabled} + java: {description: Whether this + site is enabled for DirectLine + channel., name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id229 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether + this site is enabled for + DirectLine channel., name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether + this site is enabled for Bot + Framework V1 protocol., name: isV1Enabled} + java: {description: Whether this + site is enabled for Bot Framework + V1 protocol., name: isV1Enabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id026 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether + this site is enabled for + Bot Framework V1 protocol., + name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isV1Enabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether + this site is enabled for Bot + Framework V1 protocol., name: isV3Enabled} + java: {description: Whether this + site is enabled for Bot Framework + V1 protocol., name: isV3Enabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id026 + serializedName: isV3Enabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether + this site is enabled for authentication + with Bot Framework., name: isSecureSiteEnabled} + java: {description: Whether this + site is enabled for authentication + with Bot Framework., name: isSecureSiteEnabled} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id230 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether + this site is enabled for + authentication with Bot + Framework., name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isSecureSiteEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether + this site is enabled for block + user upload., name: isBlockUserUploadEnabled} + java: {description: Whether this + site is enabled for block + user upload., name: isBlockUserUploadEnabled} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id231 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether + this site is enabled for + block user upload., name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isBlockUserUploadEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: List of + Trusted Origin URLs for this + site. This field is applicable + only if isSecureSiteEnabled + is True., name: trustedOrigins} + java: {description: List of Trusted + Origin URLs for this site. + This field is applicable only + if isSecureSiteEnabled is + True., name: trustedOrigins} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id207 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id355 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', + name: DirectLineSiteTrustedOriginsItem} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + language: + default: {description: List + of Trusted Origin URLs for + this site. This field is + applicable only if isSecureSiteEnabled + is True., name: DirectLineSiteTrustedOrigins} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: trustedOrigins + protocol: {} + type: OBJECT + immediate: + - *id024 + - *id027 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this + site is token enabled for channel, + name: isTokenEnabled} + java: {description: Whether this site + is token enabled for channel, + name: isTokenEnabled} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id226 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether this + site is token enabled for channel, + name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isTokenEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Entity Tag, + name: etag} + java: {description: Entity Tag, name: etag} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id346 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Entity Tag, + name: SiteETag} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: eTag + protocol: {} + type: OBJECT + immediate: + - *id025 + flattenedSchema: false + language: + default: {description: A site for the Webchat + channel, name: WebChatSite} + java: {description: A site for the Webchat + channel, name: WebChatSite} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + isDiscriminator: false + language: + default: {description: Site Id, name: siteId} + java: {description: Site Id, name: siteId} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id347 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + language: + default: {description: Site Id, name: WebChatSiteId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: siteId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Site name, name: siteName} + java: {description: Site name, name: siteName} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id348 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Site name, name: WebChatSiteName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: siteName + - apiVersions: [] + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + isDiscriminator: false + language: + default: {description: 'Primary key. Value + only returned through POST to the + action Channel List API, otherwise + empty.', name: key} + java: {description: 'Primary key. Value + only returned through POST to the + action Channel List API, otherwise + empty.', name: key} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id349 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + language: + default: {description: 'Primary key. + Value only returned through POST + to the action Channel List API, + otherwise empty.', name: WebChatSiteKey} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: key + - apiVersions: [] + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + isDiscriminator: false + language: + default: {description: 'Secondary key. + Value only returned through POST to + the action Channel List API, otherwise + empty.', name: key2} + java: {description: 'Secondary key. Value + only returned through POST to the + action Channel List API, otherwise + empty.', name: key2} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id350 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + language: + default: {description: 'Secondary key. + Value only returned through POST + to the action Channel List API, + otherwise empty.', name: WebChatSiteKey2} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: key2 + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this site + is enabled for DirectLine channel, + name: isEnabled} + java: {description: Whether this site + is enabled for DirectLine channel, + name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id227 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether this + site is enabled for DirectLine channel, + name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this site + is enabled for preview versions of + Webchat, name: isWebchatPreviewEnabled} + java: {description: Whether this site + is enabled for preview versions of + Webchat, name: isWebchatPreviewEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id228 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + defaultValue: false + language: + default: {description: Whether this + site is enabled for preview versions + of Webchat, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isWebchatPreviewEnabled + protocol: {} + type: OBJECT + language: + default: {description: The list of Web Chat + sites, name: WebChatChannelPropertiesSites} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: sites + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id036 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: DirectLineChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Direct Line channel definition, + name: DirectLineChannel} + java: {description: Direct Line channel definition, + name: DirectLineChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Direct Line channel resource, name: properties} + java: {description: The set of properties specific + to Direct Line channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id294 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Direct Line channel., name: DirectLineChannelProperties} + java: {description: The parameters to provide + for the Direct Line channel., name: DirectLineChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The list of Direct Line + sites, name: sites} + java: {description: The list of Direct Line + sites, name: sites} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id221 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: *id027 + language: + default: {description: The list of Direct + Line sites, name: DirectLineChannelPropertiesSites} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: sites + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Direct Line embed code + of the resource, name: directLineEmbedCode} + java: {description: Direct Line embed code of + the resource, name: directLineEmbedCode} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id431 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Direct Line embed code + of the resource, name: DirectLineChannelPropertiesDirectLineEmbedCode} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: DirectLineEmbedCode + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id037 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: TelegramChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Telegram channel definition, + name: TelegramChannel} + java: {description: Telegram channel definition, name: TelegramChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Telegram channel resource, name: properties} + java: {description: The set of properties specific + to Telegram channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id295 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Telegram channel., name: TelegramChannelProperties} + java: {description: The parameters to provide + for the Telegram channel., name: TelegramChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: 'The Telegram access + token. Value only returned through POST + to the action Channel List API, otherwise + empty.', name: accessToken} + java: {description: 'The Telegram access token. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: accessToken} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id432 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + language: + default: {description: 'The Telegram access + token. Value only returned through POST + to the action Channel List API, otherwise + empty.', name: TelegramChannelPropertiesAccessToken} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: accessToken + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is validated for the bot, name: isValidated} + java: {description: Whether this channel is + validated for the bot, name: isValidated} + nullable: false + protocol: {} + readOnly: false + required: false + schema: *id028 + serializedName: isValidated + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id023 + serializedName: isEnabled + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id038 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: SmsChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Sms channel definition, name: SmsChannel} + java: {description: Sms channel definition, name: SmsChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Sms channel resource, name: properties} + java: {description: The set of properties specific + to Sms channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id296 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Sms channel., name: SmsChannelProperties} + java: {description: The parameters to provide + for the Sms channel., name: SmsChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Sms phone, name: phone} + java: {description: The Sms phone, name: phone} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id433 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Sms phone, name: SmsChannelPropertiesPhone} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: phone + - apiVersions: [] + isDiscriminator: false + language: + default: {description: 'The Sms account SID. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: accountSid} + java: {description: 'The Sms account SID. Value + only returned through POST to the action + Channel List API, otherwise empty.', name: accountSid} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id434 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: 'The Sms account SID. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: SmsChannelPropertiesAccountSid} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: accountSID + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: 'The Sms auth token. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: authToken} + java: {description: 'The Sms auth token. Value + only returned through POST to the action + Channel List API, otherwise empty.', name: authToken} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id435 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + language: + default: {description: 'The Sms auth token. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: SmsChannelPropertiesAuthToken} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: authToken + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is validated for the bot, name: isValidated} + java: {description: Whether this channel is + validated for the bot, name: isValidated} + nullable: false + protocol: {} + readOnly: false + required: false + schema: *id028 + serializedName: isValidated + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id023 + serializedName: isEnabled + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id039 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: SlackChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Slack channel definition, name: SlackChannel} + java: {description: Slack channel definition, name: SlackChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to Slack channel resource, name: properties} + java: {description: The set of properties specific + to Slack channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id297 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Slack channel., name: SlackChannelProperties} + java: {description: The parameters to provide + for the Slack channel., name: SlackChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Slack client id, + name: clientId} + java: {description: The Slack client id, name: clientId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id436 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Slack client id, + name: SlackChannelPropertiesClientId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: clientId + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: 'The Slack client secret. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: clientSecret} + java: {description: 'The Slack client secret. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: clientSecret} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id437 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + language: + default: {description: 'The Slack client secret. + Value only returned through POST to the + action Channel List API, otherwise empty.', + name: SlackChannelPropertiesClientSecret} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: clientSecret + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: 'The Slack verification + token. Value only returned through POST + to the action Channel List API, otherwise + empty.', name: verificationToken} + java: {description: 'The Slack verification + token. Value only returned through POST + to the action Channel List API, otherwise + empty.', name: verificationToken} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id438 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + language: + default: {description: 'The Slack verification + token. Value only returned through POST + to the action Channel List API, otherwise + empty.', name: SlackChannelPropertiesVerificationToken} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: verificationToken + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Slack permission + scopes., name: scopes} + java: {description: The Slack permission scopes., + name: scopes} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id439 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Slack permission + scopes., name: SlackChannelPropertiesScopes} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: scopes + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Slack landing page + Url, name: landingPageUrl} + java: {description: The Slack landing page Url, + name: landingPageUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id440 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Slack landing page + Url, name: SlackChannelPropertiesLandingPageUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: landingPageUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Slack redirect action, + name: redirectAction} + java: {description: The Slack redirect action, + name: redirectAction} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id441 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Slack redirect + action, name: SlackChannelPropertiesRedirectAction} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: redirectAction + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Sms auth token, name: lastSubmissionId} + java: {description: The Sms auth token, name: lastSubmissionId} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id442 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Sms auth token, + name: SlackChannelPropertiesLastSubmissionId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: lastSubmissionId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether to register the + settings before OAuth validation is performed. + Recommended to True., name: registerBeforeOAuthFlow} + java: {description: Whether to register the + settings before OAuth validation is performed. + Recommended to True., name: registerBeforeOAuthFlow} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id243 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether to register + the settings before OAuth validation is + performed. Recommended to True., name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: registerBeforeOAuthFlow + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is validated for the bot, name: IsValidated} + java: {description: Whether this channel is + validated for the bot, name: isValidated} + nullable: false + protocol: {} + readOnly: true + required: false + schema: *id028 + serializedName: IsValidated + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: The Slack signing secret., + name: signingSecret} + java: {description: The Slack signing secret., + name: signingSecret} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id443 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + language: + default: {description: The Slack signing secret., + name: SlackChannelPropertiesSigningSecret} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: signingSecret + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled for the bot, name: isEnabled} + java: {description: Whether this channel is + enabled for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: true + schema: *id023 + serializedName: isEnabled + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id040 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: LineChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Line channel definition, name: LineChannel} + java: {description: Line channel definition, name: LineChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to line channel resource, name: properties} + java: {description: The set of properties specific + to line channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id298 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the Line channel., name: LineChannelProperties} + java: {description: The parameters to provide + for the Line channel., name: LineChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The list of line channel + registrations, name: lineRegistrations} + java: {description: The list of line channel + registrations, name: lineRegistrations} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id222 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id299 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The properties corresponding + to a line channel registration, name: LineRegistration} + java: {description: The properties corresponding + to a line channel registration, name: LineRegistration} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + isDiscriminator: false + language: + default: {description: Id generated for + the line channel registration, name: generatedId} + java: {description: Id generated for the + line channel registration, name: generatedId} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id444 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsLongRunningOperation: false + xmsMutability: [read] + xmsSkipUrlEncoding: false + language: + default: {description: Id generated + for the line channel registration, + name: LineRegistrationGeneratedId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: generatedId + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: Secret for the + line channel registration, name: channelSecret} + java: {description: Secret for the line + channel registration, name: channelSecret} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id445 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, + xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Secret for the + line channel registration, name: LineRegistrationChannelSecret} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: channelSecret + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: Access token for + the line channel registration, name: channelAccessToken} + java: {description: Access token for the + line channel registration, name: channelAccessToken} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id446 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, + xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Access token + for the line channel registration, + name: LineRegistrationChannelAccessToken} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: channelAccessToken + protocol: {} + type: OBJECT + language: + default: {description: The list of line channel + registrations, name: LineChannelPropertiesLineRegistrations} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: lineRegistrations + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Callback Url to enter + in line registration., name: callbackUrl} + java: {description: Callback Url to enter in + line registration., name: callbackUrl} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id447 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Callback Url to enter + in line registration., name: LineChannelPropertiesCallbackUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: callbackUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is validated for the bot, name: isValidated} + java: {description: Whether this channel is + validated for the bot, name: isValidated} + nullable: false + protocol: {} + readOnly: true + required: false + schema: *id028 + serializedName: isValidated + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + - &id041 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + discriminatorValue: DirectLineSpeechChannel + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: DirectLine Speech channel definition, + name: DirectLineSpeechChannel} + java: {description: DirectLine Speech channel definition, + name: DirectLineSpeechChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id022 + immediate: + - *id022 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific + to DirectLine Speech channel resource, name: properties} + java: {description: The set of properties specific + to DirectLine Speech channel resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id300 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide + for the DirectLine Speech channel., name: DirectLineSpeechChannelProperties} + java: {description: The parameters to provide + for the DirectLine Speech channel., name: DirectLineSpeechChannelProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The cognitive service + region with this channel registration., + name: cognitiveServiceRegion} + java: {description: The cognitive service region + with this channel registration., name: cognitiveServiceRegion} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id448 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The cognitive service + region with this channel registration., + name: DirectLineSpeechChannelPropertiesCognitiveServiceRegion} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: cognitiveServiceRegion + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: The cognitive service + subscription key to use with this channel + registration., name: cognitiveServiceSubscriptionKey} + java: {description: The cognitive service subscription + key to use with this channel registration., + name: cognitiveServiceSubscriptionKey} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id449 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, + xmsSkipUrlEncoding: false} + language: + default: {description: The cognitive service + subscription key to use with this channel + registration., name: DirectLineSpeechChannelPropertiesCognitiveServiceSubscriptionKey} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: cognitiveServiceSubscriptionKey + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel + is enabled or not., name: isEnabled} + java: {description: Whether this channel is + enabled or not., name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id244 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether this channel + is enabled or not., name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Custom speech model id + (optional)., name: customVoiceDeploymentId} + java: {description: Custom speech model id (optional)., + name: customVoiceDeploymentId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id450 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Custom speech model + id (optional)., name: DirectLineSpeechChannelPropertiesCustomVoiceDeploymentId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: customVoiceDeploymentId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Custom voice deployment + id (optional)., name: customSpeechModelId} + java: {description: Custom voice deployment + id (optional)., name: customSpeechModelId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id451 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Custom voice deployment + id (optional)., name: DirectLineSpeechChannelPropertiesCustomSpeechModelId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: customSpeechModelId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Make this a default bot + for chosen cognitive service account., name: isDefaultBotForCogSvcAccount} + java: {description: Make this a default bot + for chosen cognitive service account., name: isDefaultBotForCogSvcAccount} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id245 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Make this a default + bot for chosen cognitive service account., + name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isDefaultBotForCogSvcAccount + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + immediate: + - *id029 + - *id030 + - *id031 + - *id032 + - *id033 + - *id034 + - *id035 + - *id036 + - *id037 + - *id038 + - *id039 + - *id040 + - *id041 + discriminator: + all: + AlexaChannel: *id029 + DirectLineChannel: *id036 + DirectLineSpeechChannel: *id041 + EmailChannel: *id031 + FacebookChannel: *id030 + KikChannel: *id034 + LineChannel: *id040 + MsTeamsChannel: *id032 + SkypeChannel: *id033 + SlackChannel: *id039 + SmsChannel: *id038 + TelegramChannel: *id037 + WebChatChannel: *id035 + immediate: + AlexaChannel: *id029 + DirectLineChannel: *id036 + DirectLineSpeechChannel: *id041 + EmailChannel: *id031 + FacebookChannel: *id030 + KikChannel: *id034 + LineChannel: *id040 + MsTeamsChannel: *id032 + SkypeChannel: *id033 + SlackChannel: *id039 + SmsChannel: *id038 + TelegramChannel: *id037 + WebChatChannel: *id035 + property: &id042 + apiVersions: [] + isDiscriminator: true + language: + default: {description: The channel name, name: channelName} + java: {description: The channel name, name: channelName} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id340 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The channel name, name: ChannelName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: channelName + flattenedSchema: false + language: + default: {description: Channel definition, name: Channel} + java: {description: Channel definition, name: Channel} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - *id042 + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Entity Tag of the resource, name: etag} + java: {description: Entity Tag of the resource, name: etag} + nullable: true + protocol: {} + readOnly: false + required: false + schema: &id341 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Entity Tag of the resource, + name: ChannelEtag} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: etag + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Provisioning state of the resource, + name: provisioningState} + java: {description: Provisioning state of the resource, + name: provisioningState} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id342 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Provisioning state of the resource, + name: ChannelProvisioningState} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: provisioningState + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Specifies the location of the + resource., name: location} + java: {description: Specifies the location of the resource., + name: location} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id343 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + defaultValue: global + language: + default: {description: Specifies the location of the + resource., name: ChannelLocation} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: location + protocol: {} + type: OBJECT + serializedName: resource + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Channel settings, name: setting} + java: {description: Channel settings, name: setting} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id264 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Channel settings definition, name: ChannelSettings} + java: {description: Channel settings definition, name: ChannelSettings} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The extensionKey1, name: extensionKey1} + java: {description: The extensionKey1, name: extensionKey1} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id344 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The extensionKey1, name: ChannelSettingsExtensionKey1} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: extensionKey1 + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The extensionKey2, name: extensionKey2} + java: {description: The extensionKey2, name: extensionKey2} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id345 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The extensionKey2, name: ChannelSettingsExtensionKey2} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: extensionKey2 + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The list of sites, name: sites} + java: {description: The list of sites, name: sites} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id208 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: *id025 + language: + default: {description: The list of sites, name: ChannelSettingsSites} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: sites + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The channel id, name: channelId} + java: {description: The channel id, name: channelId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id356 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The channel id, name: ChannelSettingsChannelId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: channelId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The channel display name, name: channelDisplayName} + java: {description: The channel display name, name: channelDisplayName} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id357 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The channel display name, name: ChannelSettingsChannelDisplayName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: channelDisplayName + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The bot id, name: botId} + java: {description: The bot id, name: botId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id358 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The bot id, name: ChannelSettingsBotId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: botId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The bot icon url, name: botIconUrl} + java: {description: The bot icon url, name: botIconUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id359 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The bot icon url, name: ChannelSettingsBotIconUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: botIconUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether this channel is enabled + for the bot, name: isEnabled} + java: {description: Whether this channel is enabled + for the bot, name: isEnabled} + nullable: false + protocol: {} + readOnly: false + required: false + schema: *id023 + serializedName: isEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Opt-out of local authentication + and ensure only MSI and AAD can be used exclusively + for authentication., name: disableLocalAuth} + java: {description: Opt-out of local authentication + and ensure only MSI and AAD can be used exclusively + for authentication., name: disableLocalAuth} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id050 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Opt-out of local authentication + and ensure only MSI and AAD can be used exclusively + for authentication., name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: disableLocalAuth + protocol: {} + type: OBJECT + serializedName: setting + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Provisioning state of the resource, + name: provisioningState} + java: {description: Provisioning state of the resource, + name: provisioningState} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id360 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Provisioning state of the resource, + name: ListChannelWithKeysResponseProvisioningState} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: provisioningState + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Entity tag of the resource, name: entityTag} + java: {description: Entity tag of the resource, name: entityTag} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id361 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Entity tag of the resource, name: ListChannelWithKeysResponseEntityTag} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: entityTag + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Changed time of the resource, name: changedTime} + java: {description: Changed time of the resource, name: changedTime} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id362 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Changed time of the resource, name: ListChannelWithKeysResponseChangedTime} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: changedTime + protocol: {} + type: OBJECT + immediate: + - *id043 + flattenedSchema: false + language: + default: {description: Bot channel resource definition, name: BotChannel} + java: {description: Bot channel resource definition, name: BotChannel} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id021 + immediate: + - *id021 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific to bot + channel resource, name: properties} + java: {description: The set of properties specific to bot channel + resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: *id022 + serializedName: properties + - &id044 + apiVersions: [] + isDiscriminator: false + language: + default: {description: Gets or sets the SKU of the resource., + name: sku} + java: {description: Gets or sets the SKU of the resource., name: sku} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id263 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The SKU of the cognitive services account., + name: Sku} + java: {description: The SKU of the cognitive services account., + name: Sku} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The sku name, name: name} + java: {description: The sku name, name: name} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id250 !!com.azure.autorest.extension.base.model.codemodel.ChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: F0} + value: F0 + - language: + default: {description: '', name: S1} + value: S1 + language: + default: {description: The name of SKU., name: SkuName} + java: {description: The name of SKU., name: SkuName} + protocol: {} + type: CHOICE + serializedName: name + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Gets the sku tier. This is based + on the SKU name., name: tier} + java: {description: Gets the sku tier. This is based on + the SKU name., name: tier} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id251 !!com.azure.autorest.extension.base.model.codemodel.ChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: FREE} + value: Free + - language: + default: {description: '', name: STANDARD} + value: Standard + language: + default: {description: Gets the sku tier. This is based + on the SKU name., name: SkuTier} + java: {description: Gets the sku tier. This is based on + the SKU name., name: SkuTier} + protocol: {} + type: CHOICE + serializedName: tier + protocol: {} + type: OBJECT + serializedName: sku + - &id045 + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: Required. Gets or sets the Kind of the + resource., name: kind} + java: {description: Required. Gets or sets the Kind of the resource., + name: kind} + nullable: true + protocol: {} + readOnly: false + required: false + schema: &id252 !!com.azure.autorest.extension.base.model.codemodel.ChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: SDK} + value: sdk + - language: + default: {description: '', name: DESIGNER} + value: designer + - language: + default: {description: '', name: BOT} + value: bot + - language: + default: {description: '', name: FUNCTION} + value: function + - language: + default: {description: '', name: AZUREBOT} + value: azurebot + language: + default: {description: Indicates the type of bot service, + name: Kind} + java: {description: Indicates the type of bot service, name: Kind} + protocol: {} + type: CHOICE + serializedName: kind + - &id046 + apiVersions: [] + isDiscriminator: false + language: + default: {description: Entity Tag, name: etag} + java: {description: Entity Tag, name: etag} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id335 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Entity Tag, name: ResourceEtag} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: etag + - &id047 + apiVersions: [] + isDiscriminator: false + language: + default: {description: Entity zones, name: zones} + java: {description: Entity zones, name: zones} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id205 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id336 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: ResourceZonesItem} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + language: + default: {description: Entity zones, name: ResourceZones} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: zones + protocol: {} + type: OBJECT + - *id043 + - &id048 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Bot channel resource definition, name: ConnectionSetting} + java: {description: Bot channel resource definition, name: ConnectionSetting} + maxProperties: 0.0 + minProperties: 0.0 + parents: + all: + - *id021 + immediate: + - *id021 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific to bot + channel resource, name: properties} + java: {description: The set of properties specific to bot channel + resource, name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id278 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Properties for a Connection Setting + Item, name: ConnectionSettingProperties} + java: {description: Properties for a Connection Setting Item, + name: ConnectionSettingProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Id associated with the Connection + Setting., name: Id} + java: {description: Id associated with the Connection Setting., + name: id} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id387 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Id associated with the Connection + Setting., name: ConnectionSettingPropertiesId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: id + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Name associated with the Connection + Setting., name: name} + java: {description: Name associated with the Connection + Setting., name: name} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id388 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Name associated with the Connection + Setting., name: ConnectionSettingPropertiesName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: name + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Client Id associated with the Connection + Setting., name: clientId} + java: {description: Client Id associated with the Connection + Setting., name: clientId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id389 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Client Id associated with the Connection + Setting., name: ConnectionSettingPropertiesClientId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: clientId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Setting Id set by the service for + the Connection Setting., name: settingId} + java: {description: Setting Id set by the service for the + Connection Setting., name: settingId} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id390 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Setting Id set by the service for + the Connection Setting., name: ConnectionSettingPropertiesSettingId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: settingId + - apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + isDiscriminator: false + language: + default: {description: Client Secret associated with the + Connection Setting, name: clientSecret} + java: {description: Client Secret associated with the Connection + Setting, name: clientSecret} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id391 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: {xmsAzureResource: false, xmsClientFlatten: false, + xmsFlattened: false, xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Client Secret associated with the + Connection Setting, name: ConnectionSettingPropertiesClientSecret} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: clientSecret + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Scopes associated with the Connection + Setting, name: scopes} + java: {description: Scopes associated with the Connection + Setting, name: scopes} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id392 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Scopes associated with the Connection + Setting, name: ConnectionSettingPropertiesScopes} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: scopes + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Service Provider Id associated with + the Connection Setting, name: serviceProviderId} + java: {description: Service Provider Id associated with + the Connection Setting, name: serviceProviderId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id393 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Service Provider Id associated + with the Connection Setting, name: ConnectionSettingPropertiesServiceProviderId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: serviceProviderId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Service Provider Display Name associated + with the Connection Setting, name: serviceProviderDisplayName} + java: {description: Service Provider Display Name associated + with the Connection Setting, name: serviceProviderDisplayName} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id394 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Service Provider Display Name associated + with the Connection Setting, name: ConnectionSettingPropertiesServiceProviderDisplayName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: serviceProviderDisplayName + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Service Provider Parameters associated + with the Connection Setting, name: parameters} + java: {description: Service Provider Parameters associated + with the Connection Setting, name: parameters} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id213 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id279 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Extra Parameter in a Connection + Setting Properties to indicate service provider + specific properties, name: ConnectionSettingParameter} + java: {description: Extra Parameter in a Connection + Setting Properties to indicate service provider + specific properties, name: ConnectionSettingParameter} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Key for the Connection Setting + Parameter., name: key} + java: {description: Key for the Connection Setting + Parameter., name: key} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id395 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Key for the Connection Setting + Parameter., name: ConnectionSettingParameterKey} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: key + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Value associated with the Connection + Setting Parameter., name: value} + java: {description: Value associated with the Connection + Setting Parameter., name: value} + nullable: true + protocol: {} + readOnly: false + required: false + schema: &id396 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Value associated with the + Connection Setting Parameter., name: ConnectionSettingParameterValue} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: value + protocol: {} + type: OBJECT + language: + default: {description: Service Provider Parameters associated + with the Connection Setting, name: ConnectionSettingPropertiesParameters} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: parameters + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Provisioning state of the resource, + name: provisioningState} + java: {description: Provisioning state of the resource, + name: provisioningState} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id397 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Provisioning state of the resource, + name: ConnectionSettingPropertiesProvisioningState} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: provisioningState + protocol: {} + type: OBJECT + serializedName: properties + - *id044 + - *id045 + - *id046 + - *id047 + protocol: {} + type: OBJECT + immediate: + - *id019 + - *id020 + - *id048 + extensions: {xmsAzureResource: true, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + flattenedSchema: false + language: + default: {description: Azure resource, name: Resource} + java: {description: Azure resource, name: Resource} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Specifies the resource ID., name: Id} + java: {description: Specifies the resource ID., name: id} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id331 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Specifies the resource ID., name: ResourceId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: id + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Specifies the name of the resource., name: name} + java: {description: Specifies the name of the resource., name: name} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id332 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Specifies the name of the resource., name: ResourceName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: name + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Specifies the location of the resource., + name: location} + java: {description: Specifies the location of the resource., name: location} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id333 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Specifies the location of the resource., + name: ResourceLocation} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: location + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Specifies the type of the resource., name: type} + java: {description: Specifies the type of the resource., name: type} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id334 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Specifies the type of the resource., name: ResourceType} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: type + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Contains resource tags defined as key/value + pairs., name: tags} + java: {description: Contains resource tags defined as key/value + pairs., name: tags} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id258 !!com.azure.autorest.extension.base.model.codemodel.DictionarySchema + apiVersions: [] + elementType: *id049 + language: + default: {description: Contains resource tags defined as key/value + pairs., name: ResourceTags} + java: {description: Contains resource tags defined as key/value + pairs., name: ResourceTags} + protocol: {} + type: DICTIONARY + serializedName: tags + - *id044 + - *id045 + - *id046 + - *id047 + protocol: {} + type: OBJECT + immediate: + - *id021 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The set of properties specific to bot resource, + name: properties} + java: {description: The set of properties specific to bot resource, + name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id259 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The parameters to provide for the Bot., name: BotProperties} + java: {description: The parameters to provide for the Bot., name: BotProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Name of the bot, name: displayName} + java: {description: The Name of the bot, name: displayName} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id303 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Name of the bot, name: BotPropertiesDisplayName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: displayName + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The description of the bot, name: description} + java: {description: The description of the bot, name: description} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id304 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The description of the bot, name: BotPropertiesDescription} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: description + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Icon Url of the bot, name: iconUrl} + java: {description: The Icon Url of the bot, name: iconUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id305 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Icon Url of the bot, name: BotPropertiesIconUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: iconUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The bot's endpoint, name: endpoint} + java: {description: The bot's endpoint, name: endpoint} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id306 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The bot's endpoint, name: BotPropertiesEndpoint} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: endpoint + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The bot's endpoint version, name: endpointVersion} + java: {description: The bot's endpoint version, name: endpointVersion} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id307 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The bot's endpoint version, name: BotPropertiesEndpointVersion} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: endpointVersion + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Contains resource all settings defined as + key/value pairs., name: allSettings} + java: {description: Contains resource all settings defined as key/value + pairs., name: allSettings} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id256 !!com.azure.autorest.extension.base.model.codemodel.DictionarySchema + apiVersions: [] + elementType: *id049 + language: + default: {description: Contains resource all settings defined + as key/value pairs., name: BotPropertiesAllSettings} + java: {description: Contains resource all settings defined as + key/value pairs., name: BotPropertiesAllSettings} + protocol: {} + type: DICTIONARY + serializedName: allSettings + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Contains resource parameters defined as key/value + pairs., name: parameters} + java: {description: Contains resource parameters defined as key/value + pairs., name: parameters} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id257 !!com.azure.autorest.extension.base.model.codemodel.DictionarySchema + apiVersions: [] + elementType: *id049 + language: + default: {description: Contains resource parameters defined as + key/value pairs., name: BotPropertiesParameters} + java: {description: Contains resource parameters defined as key/value + pairs., name: BotPropertiesParameters} + protocol: {} + type: DICTIONARY + serializedName: parameters + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The bot's manifest url, name: manifestUrl} + java: {description: The bot's manifest url, name: manifestUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id308 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The bot's manifest url, name: BotPropertiesManifestUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: manifestUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Microsoft App Type for the bot, name: msaAppType} + java: {description: Microsoft App Type for the bot, name: msaAppType} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id246 !!com.azure.autorest.extension.base.model.codemodel.ChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: USER_ASSIGNED_MSI} + value: UserAssignedMSI + - language: + default: {description: '', name: SINGLE_TENANT} + value: SingleTenant + - language: + default: {description: '', name: MULTI_TENANT} + value: MultiTenant + language: + default: {description: Microsoft App Type for the bot, name: MsaAppType} + java: {description: Microsoft App Type for the bot, name: MsaAppType} + protocol: {} + type: CHOICE + serializedName: msaAppType + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Microsoft App Id for the bot, name: msaAppId} + java: {description: Microsoft App Id for the bot, name: msaAppId} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id309 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Microsoft App Id for the bot, name: BotPropertiesMsaAppId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: msaAppId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Microsoft App Tenant Id for the bot, name: msaAppTenantId} + java: {description: Microsoft App Tenant Id for the bot, name: msaAppTenantId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id310 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Microsoft App Tenant Id for the bot, name: BotPropertiesMsaAppTenantId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: msaAppTenantId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Microsoft App Managed Identity Resource Id + for the bot, name: msaAppMsiResourceId} + java: {description: Microsoft App Managed Identity Resource Id for + the bot, name: msaAppMsiResourceId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id311 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Microsoft App Managed Identity Resource + Id for the bot, name: BotPropertiesMsaAppMsiResourceId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: msaAppMSIResourceId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Collection of channels for which the bot + is configured, name: configuredChannels} + java: {description: Collection of channels for which the bot is + configured, name: configuredChannels} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id201 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id312 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: BotPropertiesConfiguredChannelsItem} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + language: + default: {description: Collection of channels for which the bot + is configured, name: BotPropertiesConfiguredChannels} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: configuredChannels + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Collection of channels for which the bot + is enabled, name: enabledChannels} + java: {description: Collection of channels for which the bot is + enabled, name: enabledChannels} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id202 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id313 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: BotPropertiesEnabledChannelsItem} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + language: + default: {description: Collection of channels for which the bot + is enabled, name: BotPropertiesEnabledChannels} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: enabledChannels + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Application Insights key, name: developerAppInsightKey} + java: {description: The Application Insights key, name: developerAppInsightKey} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id314 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Application Insights key, name: BotPropertiesDeveloperAppInsightKey} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: developerAppInsightKey + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Application Insights Api Key, name: developerAppInsightsApiKey} + java: {description: The Application Insights Api Key, name: developerAppInsightsApiKey} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id315 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Application Insights Api Key, name: BotPropertiesDeveloperAppInsightsApiKey} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: developerAppInsightsApiKey + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Application Insights App Id, name: developerAppInsightsApplicationId} + java: {description: The Application Insights App Id, name: developerAppInsightsApplicationId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id316 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The Application Insights App Id, name: BotPropertiesDeveloperAppInsightsApplicationId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: developerAppInsightsApplicationId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Collection of LUIS App Ids, name: luisAppIds} + java: {description: Collection of LUIS App Ids, name: luisAppIds} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id203 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id317 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: BotPropertiesLuisAppIdsItem} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + language: + default: {description: Collection of LUIS App Ids, name: BotPropertiesLuisAppIds} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: luisAppIds + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The LUIS Key, name: luisKey} + java: {description: The LUIS Key, name: luisKey} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id318 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The LUIS Key, name: BotPropertiesLuisKey} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: luisKey + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether Cmek is enabled, name: isCmekEnabled} + java: {description: Whether Cmek is enabled, name: isCmekEnabled} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id223 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether Cmek is enabled, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isCmekEnabled + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The CMK Url, name: cmekKeyVaultUrl} + java: {description: The CMK Url, name: cmekKeyVaultUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id319 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The CMK Url, name: BotPropertiesCmekKeyVaultUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: cmekKeyVaultUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The CMK encryption status, name: cmekEncryptionStatus} + java: {description: The CMK encryption status, name: cmekEncryptionStatus} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id320 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The CMK encryption status, name: BotPropertiesCmekEncryptionStatus} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: cmekEncryptionStatus + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether the bot is in an isolated network, + name: publicNetworkAccess} + java: {description: Whether the bot is in an isolated network, name: publicNetworkAccess} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id247 !!com.azure.autorest.extension.base.model.codemodel.ChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: ENABLED} + value: Enabled + - language: + default: {description: '', name: DISABLED} + value: Disabled + defaultValue: Enabled + language: + default: {description: Whether the bot is in an isolated network, + name: PublicNetworkAccess} + java: {description: Whether the bot is in an isolated network, + name: PublicNetworkAccess} + protocol: {} + type: CHOICE + serializedName: publicNetworkAccess + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether the bot is streaming supported, name: isStreamingSupported} + java: {description: Whether the bot is streaming supported, name: isStreamingSupported} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id224 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + defaultValue: false + language: + default: {description: Whether the bot is streaming supported, + name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isStreamingSupported + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether the bot is developerAppInsightsApiKey + set, name: isDeveloperAppInsightsApiKeySet} + java: {description: Whether the bot is developerAppInsightsApiKey + set, name: isDeveloperAppInsightsApiKeySet} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id225 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether the bot is developerAppInsightsApiKey + set, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: isDeveloperAppInsightsApiKeySet + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Token used to migrate non Azure bot to azure + subscription, name: migrationToken} + java: {description: Token used to migrate non Azure bot to azure + subscription, name: migrationToken} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id321 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Token used to migrate non Azure bot to + azure subscription, name: BotPropertiesMigrationToken} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: migrationToken + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Opt-out of local authentication and ensure + only MSI and AAD can be used exclusively for authentication., + name: disableLocalAuth} + java: {description: Opt-out of local authentication and ensure only + MSI and AAD can be used exclusively for authentication., name: disableLocalAuth} + nullable: false + protocol: {} + readOnly: false + required: false + schema: *id050 + serializedName: disableLocalAuth + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The channel schema transformation version + for the bot, name: schemaTransformationVersion} + java: {description: The channel schema transformation version for + the bot, name: schemaTransformationVersion} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id322 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The channel schema transformation version + for the bot, name: BotPropertiesSchemaTransformationVersion} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: schemaTransformationVersion + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The storage resourceId for the bot, name: storageResourceId} + java: {description: The storage resourceId for the bot, name: storageResourceId} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id323 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The storage resourceId for the bot, name: BotPropertiesStorageResourceId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: storageResourceId + - apiVersions: [] + isDiscriminator: false + language: + default: {description: List of Private Endpoint Connections configured + for the bot, name: privateEndpointConnections} + java: {description: List of Private Endpoint Connections configured + for the bot, name: privateEndpointConnections} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id204 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: *id012 + language: + default: {description: List of Private Endpoint Connections configured + for the bot, name: BotPropertiesPrivateEndpointConnections} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: privateEndpointConnections + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The hint to browser (e.g. protocol handler) + on how to open the bot for authoring, name: openWithHint} + java: {description: The hint to browser (e.g. protocol handler) + on how to open the bot for authoring, name: openWithHint} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id327 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The hint to browser (e.g. protocol handler) + on how to open the bot for authoring, name: BotPropertiesOpenWithHint} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: openWithHint + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The hint (e.g. keyVault secret resourceId) + on how to fetch the app secret, name: appPasswordHint} + java: {description: The hint (e.g. keyVault secret resourceId) on + how to fetch the app secret, name: appPasswordHint} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id328 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The hint (e.g. keyVault secret resourceId) + on how to fetch the app secret, name: BotPropertiesAppPasswordHint} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: appPasswordHint + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Provisioning state of the resource, name: provisioningState} + java: {description: Provisioning state of the resource, name: provisioningState} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id329 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Provisioning state of the resource, name: BotPropertiesProvisioningState} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: provisioningState + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Publishing credentials of the resource, name: publishingCredentials} + java: {description: Publishing credentials of the resource, name: publishingCredentials} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id330 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Publishing credentials of the resource, + name: BotPropertiesPublishingCredentials} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: publishingCredentials + protocol: {} + type: OBJECT + serializedName: properties + - *id044 + - *id045 + - *id046 + - *id047 + protocol: {} + type: OBJECT + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id016 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: put + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName} + uri: '{$host}' + signatureParameters: + - *id017 + - *id018 + - *id052 + responses: + - language: + default: {description: 'If resource is created successfully or already existed, + the service should return 200 (OK).', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id019 + - language: + default: {description: 'If resource is created successfully, the service should + return 201 (Created). Execution to continue asynchronously.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['201'] + schema: *id019 + signatureParameters: + - *id017 + - *id018 + - &id053 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group *or* resource does not exist, 404 (NotFound) should + be returned.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Update Bot: + parameters: + api-version: 2021-05-01-preview + parameters: + etag: etag1 + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + developerAppInsightKey: appinsightskey + developerAppInsightsApiKey: appinsightsapikey + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + endpoint: http://mybot.coffee + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + luisKey: luiskey + msaAppId: msaappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: msaapptenantid + msaAppType: UserAssignedMSI + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + sku: {name: S1} + tags: {tag1: value1, tag2: value2} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateBot.json + responses: + '200': + body: + name: samplebotname + type: Microsoft.BotService/botServices + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + configuredChannels: [facebook, groupme] + developerAppInsightKey: appinsightskey + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + enabledChannels: [facebook] + endpoint: http://mybot.coffee + endpointVersion: version + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + msaAppId: msaappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: msaapptenantid + msaAppType: UserAssignedMSI + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + tags: {tag1: value1, tag2: value2} + '201': + body: + name: samplebotname + type: Microsoft.BotService/botServices + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + configuredChannels: [facebook, groupme] + developerAppInsightKey: appinsightskey + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + enabledChannels: [facebook] + endpoint: http://mybot.coffee + endpointVersion: version + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + msaAppId: msaappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: msaapptenantid + msaAppType: UserAssignedMSI + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + tags: {tag1: value1, tag2: value2} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Updates a Bot Service, name: Update} + java: {description: Updates a Bot Service, name: update} + operationGroup: *id015 + parameters: + - *id006 + - &id054 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id053 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id055 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id053 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id054 + - *id055 + - *id009 + - *id005 + - &id056 + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: true, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + flattened: false + implementation: METHOD + language: + default: {description: The parameters to provide for the created bot., name: parameters} + java: {description: The parameters to provide for the created bot., name: parameters} + nullable: false + operation: *id053 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: *id019 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id053 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: patch + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName} + uri: '{$host}' + signatureParameters: + - *id054 + - *id055 + - *id056 + responses: + - language: + default: {description: 'The resource provider should return 200 (OK) to indicate + that the operation completed successfully. ', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id019 + - language: + default: {description: 'If resource is updated successfully, the service should + return 201 (Created). Execution to continue asynchronously.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['201'] + schema: *id019 + signatureParameters: + - *id054 + - *id055 + - &id057 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Delete Bot: + parameters: {api-version: 2021-05-01-preview, resourceGroupName: OneResourceGroupName, + resourceName: samplebotname, subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteBot.json + responses: + '200': {} + '204': {} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: 'Deletes a Bot Service from the resource group. ', name: Delete} + java: {description: 'Deletes a Bot Service from the resource group. ', name: delete} + operationGroup: *id015 + parameters: + - *id006 + - &id058 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id057 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id059 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id057 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id058 + - *id059 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id057 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: delete, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}', + uri: '{$host}'} + signatureParameters: + - *id058 + - *id059 + responses: + - language: + default: {description: A 200 (OK) should be returned if the object exists + and was deleted successfully;, name: ''} + protocol: + http: + explode: false + statusCodes: ['200'] + - language: + default: {description: a 204 (NoContent) should be used if the resource does + not exist and the request is well formed., name: ''} + protocol: + http: + explode: false + statusCodes: ['204'] + signatureParameters: + - *id058 + - *id059 + - &id060 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group *or* resource does not exist, 404 (NotFound) should + be returned.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Get Bot: + parameters: {api-version: 2021-05-01-preview, resourceGroupName: OneResourceGroupName, + resourceName: samplebotname, subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetBot.json + responses: + '200': + body: + name: samplebotname + type: Microsoft.BotService/botServices + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + configuredChannels: [facebook, groupme] + developerAppInsightKey: appinsightskey + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + enabledChannels: [facebook] + endpoint: http://mybot.coffee + endpointVersion: version + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + msaAppId: msaappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: msaapptenantid + msaAppType: UserAssignedMSI + privateEndpointConnections: + - id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/privateEndpointConnections/privatelink + properties: + privateEndpoint: {id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.Network/privateEndpoints/privatelink} + privateLinkServiceConnectionState: {description: Auto-Approved, + actionsRequired: None, status: Approved} + provisioningState: Succeeded + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + tags: {tag1: value1, tag2: value2} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Returns a BotService specified by the parameters., name: Get} + java: {description: Returns a BotService specified by the parameters., name: getByResourceGroup} + operationGroup: *id015 + parameters: + - *id006 + - &id061 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id060 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id062 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id060 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id061 + - *id062 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id060 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}', + uri: '{$host}'} + signatureParameters: + - *id061 + - *id062 + responses: + - language: + default: {description: 'The resource provider should return 200 (OK) to indicate + that the operation completed successfully. ', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id019 + signatureParameters: + - *id061 + - *id062 + - &id068 + apiVersions: &id063 + - {version: 2021-05-01-preview} + exceptions: &id064 + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group does not exist, 404 (NotFound) will be returned.', + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: &id065 + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + List Bots by Resource Group: + parameters: {api-version: 2021-05-01-preview, resourceGroupName: OneResourceGroupName, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListBotsByResourceGroup.json + responses: + '200': + body: + value: + - name: samplebotname + type: Microsoft.BotService/botServices + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + configuredChannels: [facebook, groupme] + developerAppInsightKey: appinsightskey + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + enabledChannels: [facebook] + endpoint: http://mybot.coffee + endpointVersion: version + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + msaAppId: msaappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: msaapptenantid + msaAppType: UserAssignedMSI + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + tags: {tag1: value1, tag2: value2} + xmsFlattened: false + xmsLongRunningOperation: false + xmsPageable: + itemName: value + nextLinkName: nextLink + nextOperation: &id067 + $key: listByResourceGroupNext + apiVersions: *id063 + exceptions: *id064 + extensions: *id065 + language: + java: {description: Get the next page of items, name: listByResourceGroupNext} + operationGroup: *id015 + parameters: [] + requests: + - language: &id070 + default: {description: Returns all the resources of a particular type + belonging to a resource group, name: ListByResourceGroup} + java: {description: Returns all the resources of a particular type belonging + to a resource group, name: listByResourceGroup} + parameters: + - &id069 + $key: nextLink + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: true} + flattened: false + implementation: METHOD + language: + default: &id066 {name: nextLink, serializedName: nextLink} + java: *id066 + nullable: false + operation: *id067 + protocol: + http: {explode: false, in: PATH} + required: true + schema: !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + maxLength: 0.0 + minLength: 0.0 + summary: The URL to get the next list of items + - *id006 + - &id072 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id068 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '{nextLink}', uri: '{$host}'} + signatureParameters: + - *id069 + responses: &id073 + - language: + default: + 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." + name: '' + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id081 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The list of bot service operation response., + name: BotResponseList} + java: {description: The list of bot service operation response., + name: BotResponseList} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The link used to get the next page of bot + service resources., name: nextLink} + java: {description: The link used to get the next page of bot service + resources., name: nextLink} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id339 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The link used to get the next page of bot + service resources., name: BotResponseListNextLink} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: nextLink + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Gets the list of bot service results and + their properties., name: value} + java: {description: Gets the list of bot service results and their + properties., name: value} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id206 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: *id019 + language: + default: {description: Gets the list of bot service results and + their properties., name: BotResponseListValue} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: value + protocol: {} + type: OBJECT + signatureParameters: [] + xmsSkipUrlEncoding: false + language: *id070 + operationGroup: *id015 + parameters: + - *id006 + - &id071 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id068 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id005 + - *id009 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id071 + - *id005 + - *id009 + - *id072 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices', + uri: '{$host}'} + signatureParameters: + - *id071 + responses: *id073 + signatureParameters: + - *id071 + - &id079 + apiVersions: &id074 + - {version: 2021-05-01-preview} + exceptions: &id075 + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: &id076 + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + List Bots by Subscription: + parameters: {api-version: 2021-05-01-preview, subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListBotsBySubscription.json + responses: + '200': + body: + value: + - name: samplebotname + type: Microsoft.BotService/botServices + etag: etag1 + id: /subscriptions/subscription-id/providers/Microsoft.BotService/botServices + kind: sdk + location: West US + properties: + description: The description of the bot + cmekKeyVaultUrl: https://myCmekKey + configuredChannels: [facebook, groupme] + developerAppInsightKey: appinsightskey + developerAppInsightsApplicationId: appinsightsappid + disableLocalAuth: true + displayName: The Name of the bot + enabledChannels: [facebook] + endpoint: http://mybot.coffee + endpointVersion: version + iconUrl: http://myicon + isCmekEnabled: true + luisAppIds: [luisappid1, luisappid2] + msaAppId: msaappid + msaAppMSIResourceId: /subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId + msaAppTenantId: msaapptenantid + msaAppType: UserAssignedMSI + publicNetworkAccess: Enabled + schemaTransformationVersion: '1.0' + tags: {tag1: value1, tag2: value2} + xmsFlattened: false + xmsLongRunningOperation: false + xmsPageable: + itemName: value + nextLinkName: nextLink + nextOperation: &id078 + $key: listNext + apiVersions: *id074 + exceptions: *id075 + extensions: *id076 + language: + java: {description: Get the next page of items, name: listNext} + operationGroup: *id015 + parameters: [] + requests: + - language: &id082 + default: {description: Returns all the resources of a particular type + belonging to a subscription., name: List} + java: {description: Returns all the resources of a particular type belonging + to a subscription., name: list} + parameters: + - &id080 + $key: nextLink + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: true} + flattened: false + implementation: METHOD + language: + default: &id077 {name: nextLink, serializedName: nextLink} + java: *id077 + nullable: false + operation: *id078 + protocol: + http: {explode: false, in: PATH} + required: true + schema: !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + maxLength: 0.0 + minLength: 0.0 + summary: The URL to get the next list of items + - *id006 + - &id083 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id079 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '{nextLink}', uri: '{$host}'} + signatureParameters: + - *id080 + responses: &id084 + - language: + default: + 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. " + name: '' + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id081 + signatureParameters: [] + xmsSkipUrlEncoding: false + language: *id082 + operationGroup: *id015 + parameters: + - *id006 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id009 + - *id005 + - *id083 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/providers/Microsoft.BotService/botServices', + uri: '{$host}'} + signatureParameters: [] + responses: *id084 + signatureParameters: [] + - &id085 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + check Name Availability: + parameters: + api-version: 2021-05-01-preview + parameters: {name: testbotname, type: string} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/CheckNameAvailability.json + responses: + '200': + body: {message: custom message from server, valid: true} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Check whether a bot name is available., name: GetCheckNameAvailability} + java: {description: Check whether a bot name is available., name: getCheckNameAvailability} + operationGroup: *id015 + parameters: + - *id006 + - *id009 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id009 + - &id086 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The request body parameters to provide for the check + name availability request, name: parameters} + java: {description: The request body parameters to provide for the check + name availability request, name: parameters} + nullable: false + operation: *id085 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: &id267 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The request body for a request to Bot Service Management + to check availability of a bot name., name: CheckNameAvailabilityRequestBody} + java: {description: The request body for a request to Bot Service Management + to check availability of a bot name., name: CheckNameAvailabilityRequestBody} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: the name of the bot for which availability needs + to be checked., name: name} + java: {description: the name of the bot for which availability needs + to be checked., name: name} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id365 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: the name of the bot for which availability + needs to be checked., name: CheckNameAvailabilityRequestBodyName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: name + - apiVersions: [] + isDiscriminator: false + language: + default: {description: the type of the bot for which availability needs + to be checked, name: type} + java: {description: the type of the bot for which availability needs + to be checked, name: type} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id366 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: the type of the bot for which availability + needs to be checked, name: CheckNameAvailabilityRequestBodyType} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: type + protocol: {} + type: OBJECT + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id085 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: post + path: /providers/Microsoft.BotService/checkNameAvailability + uri: '{$host}' + signatureParameters: + - *id086 + responses: + - language: + default: + 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.\n\ + For a detailed explanation of each field in the response body, please\ + \ refer to the request body description in the PUT resource section. " + name: '' + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id268 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The response body returned for a request to Bot Service + Management to check availability of a bot name., name: CheckNameAvailabilityResponseBody} + java: {description: The response body returned for a request to Bot Service + Management to check availability of a bot name., name: CheckNameAvailabilityResponseBody} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: indicates if the bot name is valid., name: valid} + java: {description: indicates if the bot name is valid., name: valid} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id232 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: indicates if the bot name is valid., name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: valid + - apiVersions: [] + isDiscriminator: false + language: + default: {description: additional message from the bot management api + showing why a bot name is not available, name: message} + java: {description: additional message from the bot management api showing + why a bot name is not available, name: message} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id367 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: additional message from the bot management api + showing why a bot name is not available, name: CheckNameAvailabilityResponseBodyMessage} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: message + protocol: {} + type: OBJECT + signatureParameters: [] + - *id067 + - *id078 + protocol: {} +- &id087 + $key: Channels + codeModel: *id001 + language: + default: {description: '', name: Channels} + java: {description: '', name: Channels} + operations: + - &id088 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Create DirectLine Speech Bot: + parameters: + api-version: 2021-05-01-preview + channelName: DirectLineSpeechChannel + parameters: + location: global + properties: + channelName: DirectLineSpeechChannel + properties: {cognitiveServiceRegion: XcognitiveServiceRegionX, cognitiveServiceSubscriptionKey: XcognitiveServiceSubscriptionKeyX, + isEnabled: true} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutDirectLineSpeechChannel.json + responses: + '200': + body: + location: global + properties: + channelName: DirectLineSpeechChannel + properties: {cognitiveServiceRegion: XcognitiveServiceRegionX, + isEnabled: true} + '201': + body: + location: global + properties: + channelName: DirectLineSpeechChannel + properties: {cognitiveServiceRegion: XcognitiveServiceRegionX, + isEnabled: true} + Create Bot: + parameters: + api-version: 2021-05-01-preview + channelName: EmailChannel + parameters: + location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutChannel.json + responses: + '200': + body: + location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + '201': + body: + location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + Create Alexa Bot: + parameters: + api-version: 2021-05-01-preview + channelName: AlexaChannel + parameters: + location: global + properties: + channelName: AlexaChannel + properties: {alexaSkillId: XAlexaSkillIdX, isEnabled: true} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutAlexaChannel.json + responses: + '200': + body: + location: global + properties: + channelName: AlexaChannel + properties: {alexaSkillId: alexa skill id, isEnabled: true, serviceEndpointUri: 'https://domain/XUrlFragmentX/botId', + urlFragment: XUrlFragmentX} + '201': + body: + location: global + properties: + channelName: AlexaChannel + properties: {alexaSkillId: alexa skill id, isEnabled: true, serviceEndpointUri: 'https://domain/XUrlFragmentX/botId', + urlFragment: XUrlFragmentX} + Create Line Bot: + parameters: + api-version: 2021-05-01-preview + channelName: LineChannel + parameters: + location: global + properties: + channelName: LineChannel + properties: + lineRegistrations: + - {channelAccessToken: channelAccessToken, channelSecret: channelSecret} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutLineChannel.json + responses: + '200': + body: + location: global + properties: + channelName: LineChannel + properties: + callbackUrl: http://callbackUrl + isValidated: true + lineRegistrations: + - {channelAccessToken: null, channelSecret: null, generatedId: id} + '201': + body: + location: global + properties: + channelName: LineChannel + properties: + callbackUrl: http://callbackUrl + isValidated: true + lineRegistrations: + - {channelAccessToken: null, channelSecret: null, generatedId: id} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Creates a Channel registration for a Bot Service, name: Create} + java: {description: Creates a Channel registration for a Bot Service, name: create} + operationGroup: *id087 + parameters: + - *id006 + - &id089 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id088 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id090 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id088 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id091 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Channel resource., name: channelName, + serializedName: channelName} + java: {description: The name of the Channel resource., name: channelName, + serializedName: channelName} + nullable: false + operation: *id088 + protocol: + http: {explode: false, in: PATH} + required: true + schema: &id094 !!com.azure.autorest.extension.base.model.codemodel.SealedChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: ALEXA_CHANNEL} + value: AlexaChannel + - language: + default: {description: '', name: FACEBOOK_CHANNEL} + value: FacebookChannel + - language: + default: {description: '', name: EMAIL_CHANNEL} + value: EmailChannel + - language: + default: {description: '', name: KIK_CHANNEL} + value: KikChannel + - language: + default: {description: '', name: TELEGRAM_CHANNEL} + value: TelegramChannel + - language: + default: {description: '', name: SLACK_CHANNEL} + value: SlackChannel + - language: + default: {description: '', name: MS_TEAMS_CHANNEL} + value: MsTeamsChannel + - language: + default: {description: '', name: SKYPE_CHANNEL} + value: SkypeChannel + - language: + default: {description: '', name: WEB_CHAT_CHANNEL} + value: WebChatChannel + - language: + default: {description: '', name: DIRECT_LINE_CHANNEL} + value: DirectLineChannel + - language: + default: {description: '', name: SMS_CHANNEL} + value: SmsChannel + - language: + default: {description: '', name: LINE_CHANNEL} + value: LineChannel + - language: + default: {description: '', name: DIRECT_LINE_SPEECH_CHANNEL} + value: DirectLineSpeechChannel + language: + default: {description: '', name: ChannelName} + java: {description: '', name: ChannelName} + protocol: {} + type: SEALED_CHOICE + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id089 + - *id090 + - *id091 + - *id009 + - *id005 + - &id092 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The parameters to provide for the created bot., name: parameters} + java: {description: The parameters to provide for the created bot., name: parameters} + nullable: false + operation: *id088 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: *id020 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id088 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: put + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName} + uri: '{$host}' + signatureParameters: + - *id089 + - *id090 + - *id091 + - *id092 + responses: + - language: + default: {description: 'If resource is created successfully or already existed, + the service should return 200 (OK).', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id020 + - language: + default: {description: 'If resource is created successfully, the service should + return 201 (Created). Execution to continue asynchronously.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['201'] + schema: *id020 + signatureParameters: + - *id089 + - *id090 + - *id091 + - &id093 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group *or* resource does not exist, 404 (NotFound) should + be returned.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Update DirectLine Speech: + parameters: + api-version: 2021-05-01-preview + channelName: DirectLineSpeechChannel + parameters: + location: global + properties: + channelName: DirectLineSpeechChannel + properties: {cognitiveServiceRegion: XcognitiveServiceRegionX, cognitiveServiceSubscriptionKey: XcognitiveServiceSubscriptionKeyX, + isEnabled: true} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateDirectLineSpeechChannel.json + responses: + '200': + body: + location: global + properties: + channelName: DirectLineSpeechChannel + properties: {cognitiveServiceRegion: XcognitiveServiceRegionX, + isEnabled: true} + '201': + body: + location: global + properties: + channelName: DirectLineSpeechChannel + properties: {cognitiveServiceRegion: XcognitiveServiceRegionX, + isEnabled: true} + Update Bot: + parameters: + api-version: 2021-05-01-preview + channelName: EmailChannel + parameters: + location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateChannel.json + responses: + '200': + body: + location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + '201': + body: + location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + Update Line: + parameters: + api-version: 2021-05-01-preview + channelName: LineChannel + parameters: + location: global + properties: + channelName: LineChannel + properties: + lineRegistrations: + - {channelAccessToken: channelAccessToken, channelSecret: channelSecret} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateLineChannel.json + responses: + '200': + body: + location: global + properties: + channelName: LineChannel + properties: + callbackUrl: http://callbackUrl + isValidated: true + lineRegistrations: + - {channelAccessToken: null, channelSecret: null, generatedId: id} + '201': + body: + location: global + properties: + channelName: LineChannel + properties: + callbackUrl: http://callbackUrl + isValidated: true + lineRegistrations: + - {channelAccessToken: null, channelSecret: null, generatedId: id} + Update Alexa: + parameters: + api-version: 2021-05-01-preview + channelName: AlexaChannel + parameters: + location: global + properties: + channelName: AlexaChannel + properties: {alexaSkillId: XAlexaSkillIdX, isEnabled: true} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateAlexaChannel.json + responses: + '200': + body: + location: global + properties: + channelName: AlexaChannel + properties: {alexaSkillId: XAlexaSkillIdX, isEnabled: true, serviceEndpointUri: 'https://domain/XUrlFragmentX/botId', + urlFragment: XUrlFragmentX} + '201': + body: + location: global + properties: + channelName: AlexaChannel + properties: {alexaSkillId: XAlexaSkillIdX, isEnabled: true, serviceEndpointUri: 'https://domain/XUrlFragmentX/botId', + urlFragment: XUrlFragmentX} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Updates a Channel registration for a Bot Service, name: Update} + java: {description: Updates a Channel registration for a Bot Service, name: update} + operationGroup: *id087 + parameters: + - *id006 + - &id095 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id093 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id096 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id093 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id097 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Channel resource., name: channelName, + serializedName: channelName} + java: {description: The name of the Channel resource., name: channelName, + serializedName: channelName} + nullable: false + operation: *id093 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id094 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id095 + - *id096 + - *id097 + - *id009 + - *id005 + - &id098 + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: true, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + flattened: false + implementation: METHOD + language: + default: {description: The parameters to provide for the created bot., name: parameters} + java: {description: The parameters to provide for the created bot., name: parameters} + nullable: false + operation: *id093 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: *id020 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id093 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: patch + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName} + uri: '{$host}' + signatureParameters: + - *id095 + - *id096 + - *id097 + - *id098 + responses: + - language: + default: {description: 'The resource provider should return 200 (OK) to indicate + that the operation completed successfully. ', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id020 + - language: + default: {description: 'If resource is updated successfully, the service should + return 201 (Created). Execution to continue asynchronously.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['201'] + schema: *id020 + signatureParameters: + - *id095 + - *id096 + - *id097 + - &id099 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Delete Bot: + parameters: {api-version: 2021-05-01-preview, channelName: EmailChannel, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteChannel.json + responses: + '200': {} + '204': {} + Delete DirectLine Speech Bot: + parameters: {api-version: 2021-05-01-preview, channelName: DirectLineSpeechChannel, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteDirectLineSpeechChannel.json + responses: + '200': {} + '204': {} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Deletes a Channel registration from a Bot Service, name: Delete} + java: {description: Deletes a Channel registration from a Bot Service, name: delete} + operationGroup: *id087 + parameters: + - *id006 + - &id100 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id099 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id101 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id099 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id102 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: channelName, serializedName: channelName} + java: {description: The name of the Bot resource., name: channelName, serializedName: channelName} + nullable: false + operation: *id099 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id100 + - *id101 + - *id102 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id099 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: delete, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}', + uri: '{$host}'} + signatureParameters: + - *id100 + - *id101 + - *id102 + responses: + - language: + default: {description: A 200 (OK) should be returned if the object exists + and was deleted successfully;, name: ''} + protocol: + http: + explode: false + statusCodes: ['200'] + - language: + default: {description: a 204 (NoContent) should be used if the resource does + not exist and the request is well formed., name: ''} + protocol: + http: + explode: false + statusCodes: ['204'] + signatureParameters: + - *id100 + - *id101 + - *id102 + - &id103 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group *or* resource does not exist, 404 (NotFound) should + be returned.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Get DirectLine Speech Bot: + parameters: {api-version: 2021-05-01-preview, channelName: DirectLineSpeechChannel, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetDirectLineSpeechChannel.json + responses: + '200': + body: + location: global + properties: + channelName: DirectLineSpeechChannel + properties: {cognitiveServiceRegion: Cognitive service region, + customSpeechModelId: Custom speech model ID, customVoiceDeploymentId: Custom + voice deployment ID, isDefaultBotForCogSvcAccount: true, isEnabled: true} + Get Line Bot: + parameters: {api-version: 2021-05-01-preview, channelName: LineChannel, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetLineChannel.json + responses: + '200': + body: + location: global + properties: + channelName: LineChannel + properties: + callbackUrl: http://callbackUrl + isValidated: true + lineRegistrations: + - {channelAccessToken: null, channelSecret: null, generatedId: id} + Get Bot: + parameters: {api-version: 2021-05-01-preview, channelName: EmailChannel, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetChannel.json + responses: + '200': + body: + location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + Get Alexa Bot: + parameters: {api-version: 2021-05-01-preview, channelName: AlexaChannel, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetAlexaChannel.json + responses: + '200': + body: + location: global + properties: + channelName: AlexaChannel + properties: {alexaSkillId: alexa skill id, isEnabled: true, serviceEndpointUri: 'https://domain/XUrlFragmentX/botId', + urlFragment: XUrlFragmentX} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Returns a BotService Channel registration specified by + the parameters., name: Get} + java: {description: Returns a BotService Channel registration specified by the + parameters., name: get} + operationGroup: *id087 + parameters: + - *id006 + - &id104 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id103 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id105 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id103 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id106 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: channelName, serializedName: channelName} + java: {description: The name of the Bot resource., name: channelName, serializedName: channelName} + nullable: false + operation: *id103 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id104 + - *id105 + - *id106 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id103 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}', + uri: '{$host}'} + signatureParameters: + - *id104 + - *id105 + - *id106 + responses: + - language: + default: {description: 'The resource provider should return 200 (OK) to indicate + that the operation completed successfully. ', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id020 + signatureParameters: + - *id104 + - *id105 + - *id106 + - &id107 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + List Channel: + parameters: + api-version: 2021-05-01-preview + channelName: EmailChannel + parameters: {location: global} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannel.json + responses: + '200': + body: + location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + resource: + channelName: DirectLineChannel + etag: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + location: aaaaaa + properties: + sites: + - isBlockUserUploadEnabled: false + isEnabled: true + isSecureSiteEnabled: false + isV1Enabled: true + isV3Enabled: true + key: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + key2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + siteId: aaaaaaaaaaa + siteName: aaaaaaaaaaaa + trustedOrigins: [aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] + setting: + botIconUrl: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + botId: aaaaaaaaaaaaaaaaaaaa + channelDisplayName: aaaaaaaaaaa + channelId: aaaaaaaaaa + disableLocalAuth: false + extensionKey1: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + extensionKey2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + isEnabled: true + sites: + - eTag: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + isBlockUserUploadEnabled: false + isEnabled: true + isSecureSiteEnabled: false + isTokenEnabled: false + isV1Enabled: true + isV3Enabled: true + isWebchatPreviewEnabled: false + key: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + key2: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + siteId: aaaaaaaaaaa + siteName: aaaaaaaaaaaa + trustedOrigins: [aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa] + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Lists a Channel registration for a Bot Service including + secrets, name: ListWithKeys} + java: {description: Lists a Channel registration for a Bot Service including + secrets, name: listWithKeys} + operationGroup: *id087 + parameters: + - *id006 + - &id108 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id107 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id109 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id107 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id110 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Channel resource., name: channelName, + serializedName: channelName} + java: {description: The name of the Channel resource., name: channelName, + serializedName: channelName} + nullable: false + operation: *id107 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id094 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id108 + - *id109 + - *id110 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id107 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: post, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/listChannelWithKeys', + uri: '{$host}'} + signatureParameters: + - *id108 + - *id109 + - *id110 + responses: + - language: + default: {description: 'If resource is retrieved successfully, the service + should return 200 (OK).', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id043 + signatureParameters: + - *id108 + - *id109 + - *id110 + - &id116 + apiVersions: &id111 + - {version: 2021-05-01-preview} + exceptions: &id112 + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group does not exist, 404 (NotFound) will be returned.', + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: &id113 + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + List Bots by Resource Group: + parameters: {api-version: 2021-05-01-preview, resourceGroupName: OneResourceGroupName, + resourceName: samplebotname, subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListChannelsByBotService.json + responses: + '200': + body: + value: + - location: global + properties: + channelName: EmailChannel + properties: {emailAddress: a@b.com, isEnabled: true, password: pwd} + - location: global + properties: + channelName: FacebookChannel + properties: + appId: id + callbackUrl: appid + isEnabled: true + pages: + - {accessToken: null, id: id} + xmsFlattened: false + xmsLongRunningOperation: false + xmsPageable: + itemName: value + nextLinkName: nextLink + nextOperation: &id115 + $key: listByResourceGroupNext + apiVersions: *id111 + exceptions: *id112 + extensions: *id113 + language: + java: {description: Get the next page of items, name: listByResourceGroupNext} + operationGroup: *id087 + parameters: [] + requests: + - language: &id118 + default: {description: Returns all the Channel registrations of a particular + BotService resource, name: ListByResourceGroup} + java: {description: Returns all the Channel registrations of a particular + BotService resource, name: listByResourceGroup} + parameters: + - &id117 + $key: nextLink + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: true} + flattened: false + implementation: METHOD + language: + default: &id114 {name: nextLink, serializedName: nextLink} + java: *id114 + nullable: false + operation: *id115 + protocol: + http: {explode: false, in: PATH} + required: true + schema: !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + maxLength: 0.0 + minLength: 0.0 + summary: The URL to get the next list of items + - *id006 + - &id121 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id116 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '{nextLink}', uri: '{$host}'} + signatureParameters: + - *id117 + responses: &id122 + - language: + default: + 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." + name: '' + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id265 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The list of bot service channel operation response., + name: ChannelResponseList} + java: {description: The list of bot service channel operation response., + name: ChannelResponseList} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The link used to get the next page of bot + service channel resources., name: nextLink} + java: {description: The link used to get the next page of bot service + channel resources., name: nextLink} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id363 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The link used to get the next page of bot + service channel resources., name: ChannelResponseListNextLink} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: nextLink + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Gets the list of bot service channel results + and their properties., name: value} + java: {description: Gets the list of bot service channel results + and their properties., name: value} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id209 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: *id020 + language: + default: {description: Gets the list of bot service channel results + and their properties., name: ChannelResponseListValue} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: value + protocol: {} + type: OBJECT + signatureParameters: [] + xmsSkipUrlEncoding: false + language: *id118 + operationGroup: *id087 + parameters: + - *id006 + - &id119 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id116 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id120 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id116 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id005 + - *id009 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id119 + - *id120 + - *id005 + - *id009 + - *id121 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels', + uri: '{$host}'} + signatureParameters: + - *id119 + - *id120 + responses: *id122 + signatureParameters: + - *id119 + - *id120 + - *id115 + protocol: {} +- &id123 + $key: DirectLine + codeModel: *id001 + language: + default: {description: '', name: DirectLine} + java: {description: '', name: DirectLine} + operations: + - &id124 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group does not exist, 404 (NotFound) will be returned.', + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Regenerate Keys for DirectLine Channel Site: + parameters: + api-version: 2021-05-01-preview + channelName: DirectLineChannel + parameters: {key: key1, siteName: testSiteName} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DirectlineRegenerateKeys.json + responses: + '200': + body: + location: global + properties: + channelName: DirectLineChannel + properties: + sites: + - {isEnabled: true, isV1Enabled: true, isV3Enabled: true, key: key1, + key2: key2, siteId: abcd, siteName: Default Site} + Regenerate Keys for WebChat Channel Site: + parameters: + api-version: 2021-05-01-preview + channelName: WebChatChannel + parameters: {key: key1, siteName: testSiteName} + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/WebChatRegenerateKeys.json + responses: + '200': + body: + location: global + properties: + channelName: WebChatChannel + properties: + sites: + - {isEnabled: true, isWebchatPreviewEnabled: true, key: key1, + key2: key2, siteId: abcd, siteName: Default Site} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Regenerates secret keys and returns them for the DirectLine + Channel of a particular BotService resource, name: RegenerateKeys} + java: {description: Regenerates secret keys and returns them for the DirectLine + Channel of a particular BotService resource, name: regenerateKeys} + operationGroup: *id123 + parameters: + - *id006 + - &id125 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id124 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id126 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id124 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id005 + - &id127 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Channel resource for which keys are + to be regenerated., name: channelName, serializedName: channelName} + java: {description: The name of the Channel resource for which keys are to + be regenerated., name: channelName, serializedName: channelName} + nullable: false + operation: *id124 + protocol: + http: {explode: false, in: PATH} + required: true + schema: &id301 !!com.azure.autorest.extension.base.model.codemodel.SealedChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: WEB_CHAT_CHANNEL} + value: WebChatChannel + - language: + default: {description: '', name: DIRECT_LINE_CHANNEL} + value: DirectLineChannel + language: + default: {description: '', name: RegenerateKeysChannelName} + java: {description: '', name: RegenerateKeysChannelName} + protocol: {} + type: SEALED_CHOICE + - *id009 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id125 + - *id126 + - *id005 + - *id127 + - *id009 + - &id128 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The parameters to provide for the created bot., name: parameters} + java: {description: The parameters to provide for the created bot., name: parameters} + nullable: false + operation: *id124 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: &id266 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Site information for WebChat or DirectLine Channels + to identify which site to regenerate keys for., name: SiteInfo} + java: {description: Site information for WebChat or DirectLine Channels + to identify which site to regenerate keys for., name: SiteInfo} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The site name, name: siteName} + java: {description: The site name, name: siteName} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id364 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The site name, name: SiteInfoSiteName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: siteName + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Determines which key is to be regenerated, name: key} + java: {description: Determines which key is to be regenerated, name: key} + nullable: false + protocol: {} + readOnly: false + required: true + schema: &id302 !!com.azure.autorest.extension.base.model.codemodel.SealedChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: KEY1} + value: key1 + - language: + default: {description: '', name: KEY2} + value: key2 + language: + default: {description: Determines which key is to be regenerated, + name: Key} + java: {description: Determines which key is to be regenerated, name: Key} + protocol: {} + type: SEALED_CHOICE + serializedName: key + protocol: {} + type: OBJECT + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id124 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: post + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}/regeneratekeys + uri: '{$host}' + signatureParameters: + - *id125 + - *id126 + - *id127 + - *id128 + responses: + - language: + default: + 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." + name: '' + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id020 + signatureParameters: + - *id125 + - *id126 + - *id127 + protocol: {} +- &id132 + $key: Operations + codeModel: *id001 + language: + default: {description: '', name: Operations} + java: {description: '', name: Operations} + operations: + - &id135 + apiVersions: &id129 + - {version: 2021-05-01-preview} + exceptions: &id130 + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: &id131 + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Get Operations: + parameters: {api-version: 2021-05-01-preview} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetOperations.json + responses: + '200': + body: + value: + - name: Microsoft.BotService/botService/read + display: {description: Read Bot Service, operation: Read Bot Service, + provider: Microsoft Bot Service, resource: Bot Service} + origin: user,system + - name: Microsoft.BotService/botService/write + display: {description: Writes Bot Service, operation: Write Bot + Service, provider: Microsoft Bot Service, resource: Bot Service} + origin: user,system + - name: Microsoft.BotService/botService/delete + display: {description: Deletes Bot Service, operation: Delete + Bot Service, provider: Microsoft Bot Service, resource: Bot + Service} + origin: user,system + - name: Microsoft.BotService/botService/botName/read + display: {description: Check bot name availability, operation: Check + bot name availability, provider: Microsoft Bot Service, resource: Bot + Service name availability} + origin: user,system + xmsFlattened: false + xmsLongRunningOperation: false + xmsPageable: + itemName: value + nextLinkName: nextLink + nextOperation: &id134 + $key: listNext + apiVersions: *id129 + exceptions: *id130 + extensions: *id131 + language: + java: {description: Get the next page of items, name: listNext} + operationGroup: *id132 + parameters: [] + requests: + - language: &id137 + default: {description: Lists all the available BotService operations., + name: List} + java: {description: Lists all the available BotService operations., + name: list} + parameters: + - &id136 + $key: nextLink + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: true} + flattened: false + implementation: METHOD + language: + default: &id133 {name: nextLink, serializedName: nextLink} + java: *id133 + nullable: false + operation: *id134 + protocol: + http: {explode: false, in: PATH} + required: true + schema: !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + maxLength: 0.0 + minLength: 0.0 + summary: The URL to get the next list of items + - *id006 + - &id138 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id135 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '{nextLink}', uri: '{$host}'} + signatureParameters: + - *id136 + responses: &id139 + - language: + default: {description: OK., name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id269 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The list of bot service operation response., + name: OperationEntityListResult} + java: {description: The list of bot service operation response., name: OperationEntityListResult} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The link used to get the next page of operations., + name: nextLink} + java: {description: The link used to get the next page of operations., + name: nextLink} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id368 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The link used to get the next page of operations., + name: OperationEntityListResultNextLink} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: nextLink + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The list of operations., name: value} + java: {description: The list of operations., name: value} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id210 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id270 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The operations supported by Bot Service + Management., name: OperationEntity} + java: {description: The operations supported by Bot Service + Management., name: OperationEntity} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: 'Operation name: {provider}/{resource}/{operation}.', + name: name} + java: {description: 'Operation name: {provider}/{resource}/{operation}.', + name: name} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id369 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: 'Operation name: {provider}/{resource}/{operation}.', + name: OperationEntityName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: name + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The operation supported by Bot Service + Management., name: display} + java: {description: The operation supported by Bot Service + Management., name: display} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id271 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The operation supported by Bot Service + Management., name: OperationDisplayInfo} + java: {description: The operation supported by Bot Service + Management., name: OperationDisplayInfo} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The description of the operation., + name: description} + java: {description: The description of the operation., + name: description} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id370 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The description of the operation., + name: OperationDisplayInfoDescription} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: description + - apiVersions: [] + isDiscriminator: false + language: + default: {description: 'The action that users can perform, + based on their permission level.', name: operation} + java: {description: 'The action that users can perform, + based on their permission level.', name: operation} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id371 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: 'The action that users can perform, + based on their permission level.', name: OperationDisplayInfoOperation} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: operation + - apiVersions: [] + isDiscriminator: false + language: + default: {description: 'Service provider: Microsoft Bot + Service.', name: provider} + java: {description: 'Service provider: Microsoft Bot Service.', + name: provider} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id372 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: 'Service provider: Microsoft + Bot Service.', name: OperationDisplayInfoProvider} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: provider + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Resource on which the operation + is performed., name: resource} + java: {description: Resource on which the operation is + performed., name: resource} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id373 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Resource on which the operation + is performed., name: OperationDisplayInfoResource} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: resource + protocol: {} + type: OBJECT + serializedName: display + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The origin of the operation., name: origin} + java: {description: The origin of the operation., name: origin} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id374 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The origin of the operation., name: OperationEntityOrigin} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: origin + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Additional properties., name: properties} + java: {description: Additional properties., name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: !!com.azure.autorest.extension.base.model.codemodel.AnySchema + apiVersions: [] + language: + default: {description: Any object, name: AnyObject} + protocol: {} + type: ANY_OBJECT + serializedName: properties + protocol: {} + type: OBJECT + language: + default: {description: The list of operations., name: OperationEntityListResultValue} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: value + protocol: {} + type: OBJECT + signatureParameters: [] + xmsSkipUrlEncoding: false + language: *id137 + operationGroup: *id132 + parameters: + - *id006 + - *id009 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id009 + - *id138 + protocol: + http: {explode: false, method: get, path: /providers/Microsoft.BotService/operations, + uri: '{$host}'} + signatureParameters: [] + responses: *id139 + signatureParameters: [] + - *id134 + protocol: {} +- &id140 + $key: BotConnection + codeModel: *id001 + language: + default: {description: '', name: BotConnection} + java: {description: '', name: BotConnection} + operations: + - &id141 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + List Auth Service Providers: + parameters: {api-version: 2021-05-01-preview, subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListServiceProviders.json + responses: + '200': + body: + value: + - properties: + devPortalUrl: sampleDevPortalUrl + displayName: sample service provider display name + iconUrl: sampleIconUrl + id: sampleServiceProviderId + parameters: + - {name: sampleParameterName, type: sampleParameterType, description: sampleDescription, + default: sampleDefaultValue, displayName: sampleDisplayName, + helpUrl: sampleHelpUrl} + serviceProviderName: sampleServiceProvider + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Lists the available Service Providers for creating Connection + Settings, name: ListServiceProviders} + java: {description: Lists the available Service Providers for creating Connection + Settings, name: listServiceProviders} + operationGroup: *id140 + parameters: + - *id006 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id141 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: post, path: '/subscriptions/{subscriptionId}/providers/Microsoft.BotService/listAuthServiceProviders', + uri: '{$host}'} + signatureParameters: [] + responses: + - language: + default: {description: 'If resource is retrieved successfully, the service + should return 200 (OK).', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id272 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The list of bot service providers response., name: ServiceProviderResponseList} + java: {description: The list of bot service providers response., name: ServiceProviderResponseList} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The link used to get the next page of bot service + providers., name: nextLink} + java: {description: The link used to get the next page of bot service + providers., name: nextLink} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id375 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The link used to get the next page of bot service + providers., name: ServiceProviderResponseListNextLink} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: nextLink + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Gets the list of bot service providers and their + properties., name: value} + java: {description: Gets the list of bot service providers and their properties., + name: value} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id212 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id273 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Service Provider Definition, name: ServiceProvider} + java: {description: Service Provider Definition, name: ServiceProvider} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The Properties of a Service Provider Object, + name: properties} + java: {description: The Properties of a Service Provider Object, + name: properties} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id274 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The Object used to describe a Service Provider + supported by Bot Service, name: ServiceProviderProperties} + java: {description: The Object used to describe a Service Provider + supported by Bot Service, name: ServiceProviderProperties} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Id for Service Provider, name: Id} + java: {description: Id for Service Provider, name: id} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id376 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Id for Service Provider, name: ServiceProviderPropertiesId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: id + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Display Name of the Service Provider, + name: displayName} + java: {description: Display Name of the Service Provider, name: displayName} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id377 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Display Name of the Service Provider, + name: ServiceProviderPropertiesDisplayName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: displayName + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Display Name of the Service Provider, + name: serviceProviderName} + java: {description: Display Name of the Service Provider, name: serviceProviderName} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id378 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Display Name of the Service Provider, + name: ServiceProviderPropertiesServiceProviderName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: serviceProviderName + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Display Name of the Service Provider, + name: devPortalUrl} + java: {description: Display Name of the Service Provider, name: devPortalUrl} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id379 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Display Name of the Service Provider, + name: ServiceProviderPropertiesDevPortalUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: devPortalUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Display Name of the Service Provider, + name: iconUrl} + java: {description: Display Name of the Service Provider, name: iconUrl} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id380 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Display Name of the Service Provider, + name: ServiceProviderPropertiesIconUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: iconUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The list of parameters for the Service + Provider, name: parameters} + java: {description: The list of parameters for the Service Provider, + name: parameters} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id211 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: &id275 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: Extra Parameters specific to each + Service Provider, name: ServiceProviderParameter} + java: {description: Extra Parameters specific to each Service + Provider, name: ServiceProviderParameter} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Name of the Service Provider, name: name} + java: {description: Name of the Service Provider, name: name} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id381 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Name of the Service Provider, + name: ServiceProviderParameterName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: name + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Type of the Service Provider, name: type} + java: {description: Type of the Service Provider, name: type} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id382 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Type of the Service Provider, + name: ServiceProviderParameterType} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: type + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Display Name of the Service Provider, + name: displayName} + java: {description: Display Name of the Service Provider, + name: displayName} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id383 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Display Name of the Service Provider, + name: ServiceProviderParameterDisplayName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: displayName + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Description of the Service Provider, + name: description} + java: {description: Description of the Service Provider, + name: description} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id384 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Description of the Service Provider, + name: ServiceProviderParameterDescription} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: description + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Help Url for the Service Provider, + name: helpUrl} + java: {description: Help Url for the Service Provider, + name: helpUrl} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id385 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Help Url for the Service Provider, + name: ServiceProviderParameterHelpUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: helpUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Default Name for the Service Provider, + name: default} + java: {description: Default Name for the Service Provider, + name: defaultProperty} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id386 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Default Name for the Service + Provider, name: ServiceProviderParameterDefault} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: default + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Meta data for the Service Provider, + name: metadata} + java: {description: Meta data for the Service Provider, + name: metadata} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id276 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsInternalAutorestAnonymousSchema: {anonymous: true} + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + flattenedSchema: false + language: + default: {description: Meta data for the Service Provider, + name: ServiceProviderParameterMetadata} + java: {description: Meta data for the Service Provider, + name: ServiceProviderParameterMetadata} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: the constraints of the bot + meta data., name: constraints} + java: {description: the constraints of the bot meta + data., name: constraints} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id277 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsFlattened: false + xmsInternalAutorestAnonymousSchema: {anonymous: true} + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + flattenedSchema: false + language: + default: {description: the constraints of the bot + meta data., name: ServiceProviderParameterMetadataConstraints} + java: {description: the constraints of the bot meta + data., name: ServiceProviderParameterMetadataConstraints} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Whether required the constraints + of the bot meta data., name: required} + java: {description: Whether required the constraints + of the bot meta data., name: required} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id233 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Whether required the + constraints of the bot meta data., name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: required + protocol: {} + type: OBJECT + serializedName: constraints + protocol: {} + type: OBJECT + serializedName: metadata + protocol: {} + type: OBJECT + language: + default: {description: The list of parameters for the Service + Provider, name: ServiceProviderPropertiesParameters} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: parameters + protocol: {} + type: OBJECT + serializedName: properties + protocol: {} + type: OBJECT + language: + default: {description: Gets the list of bot service providers and their + properties., name: ServiceProviderResponseListValue} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: value + protocol: {} + type: OBJECT + signatureParameters: [] + - &id142 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group *or* resource does not exist, 404 (NotFound) should + be returned.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Update Connection Setting: + parameters: {api-version: 2021-05-01-preview, connectionName: sampleConnection, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetConnection.json + responses: + '200': + body: + name: sampleConnection + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection + location: global + properties: + clientId: sampleclientid + clientSecret: null + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderDisplayName: serviceProviderDisplayName + serviceProviderId: serviceproviderid + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Get a Connection Setting registration for a Bot Service, + name: ListWithSecrets} + java: {description: Get a Connection Setting registration for a Bot Service, + name: listWithSecrets} + operationGroup: *id140 + parameters: + - *id006 + - &id143 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id142 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id144 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id142 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id145 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + java: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + nullable: false + operation: *id142 + protocol: + http: {explode: false, in: PATH} + required: true + schema: &id147 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: '', name: String} + maxLength: 64.0 + minLength: 2.0 + pattern: ^[a-zA-Z0-9][\sa-zA-Z0-9_.-]*$ + protocol: {} + type: STRING + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id143 + - *id144 + - *id145 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id142 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: post, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}/listWithSecrets', + uri: '{$host}'} + signatureParameters: + - *id143 + - *id144 + - *id145 + responses: + - language: + default: {description: 'The resource provider should return 200 (OK) to indicate + that the operation completed successfully. ', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id048 + signatureParameters: + - *id143 + - *id144 + - *id145 + - &id146 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Create Connection Setting: + parameters: + api-version: 2021-05-01-preview + connectionName: sampleConnection + parameters: + etag: etag1 + location: West US + properties: + clientId: sampleclientid + clientSecret: samplesecret + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderId: serviceproviderid + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutConnection.json + responses: + '200': + body: + name: sampleConnection + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection + location: global + properties: + clientId: sampleclientid + clientSecret: null + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderDisplayName: serviceProviderDisplayName + serviceProviderId: serviceproviderid + '201': + body: + name: sampleConnection + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection + location: global + properties: + clientId: sampleclientid + clientSecret: null + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderDisplayName: serviceProviderDisplayName + serviceProviderId: serviceproviderid + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Register a new Auth Connection for a Bot Service, name: Create} + java: {description: Register a new Auth Connection for a Bot Service, name: create} + operationGroup: *id140 + parameters: + - *id006 + - &id148 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id146 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id149 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id146 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id150 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + java: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + nullable: false + operation: *id146 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id147 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id148 + - *id149 + - *id150 + - *id009 + - *id005 + - &id151 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The parameters to provide for creating the Connection + Setting., name: parameters} + java: {description: The parameters to provide for creating the Connection + Setting., name: parameters} + nullable: false + operation: *id146 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: *id048 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id146 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: put + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName} + uri: '{$host}' + signatureParameters: + - *id148 + - *id149 + - *id150 + - *id151 + responses: + - language: + default: {description: 'If resource is created successfully or already existed, + the service should return 200 (OK).', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id048 + - language: + default: {description: 'If resource is created successfully, the service should + return 201 (Created). Execution to continue asynchronously.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['201'] + schema: *id048 + signatureParameters: + - *id148 + - *id149 + - *id150 + - &id152 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Update Connection Setting: + parameters: + api-version: 2021-05-01-preview + connectionName: sampleConnection + parameters: + etag: etag1 + location: global + properties: + clientId: sampleclientid + clientSecret: samplesecret + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderDisplayName: serviceProviderDisplayName + serviceProviderId: serviceproviderid + resourceGroupName: OneResourceGroupName + resourceName: samplebotname + subscriptionId: subscription-id + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/UpdateConnection.json + responses: + '200': + body: + name: sampleConnection + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection + location: global + properties: + clientId: sampleclientid + clientSecret: null + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderDisplayName: serviceProviderDisplayName + serviceProviderId: serviceproviderid + '201': + body: + name: sampleConnection + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection + location: global + properties: + clientId: sampleclientid + clientSecret: null + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderDisplayName: serviceProviderDisplayName + serviceProviderId: serviceproviderid + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Updates a Connection Setting registration for a Bot Service, + name: Update} + java: {description: Updates a Connection Setting registration for a Bot Service, + name: update} + operationGroup: *id140 + parameters: + - *id006 + - &id153 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id152 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id154 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id152 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id155 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + java: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + nullable: false + operation: *id152 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id147 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id153 + - *id154 + - *id155 + - *id009 + - *id005 + - &id156 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The parameters to provide for updating the Connection + Setting., name: parameters} + java: {description: The parameters to provide for updating the Connection + Setting., name: parameters} + nullable: false + operation: *id152 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: *id048 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id152 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: patch + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName} + uri: '{$host}' + signatureParameters: + - *id153 + - *id154 + - *id155 + - *id156 + responses: + - language: + default: {description: 'If resource is created successfully or already existed, + the service should return 200 (OK).', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id048 + - language: + default: {description: 'If resource is created successfully, the service should + return 201 (Created). Execution to continue asynchronously.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['201'] + schema: *id048 + signatureParameters: + - *id153 + - *id154 + - *id155 + - &id157 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group *or* resource does not exist, 404 (NotFound) should + be returned.', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Update Connection Setting: + parameters: {api-version: 2021-05-01-preview, connectionName: sampleConnection, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetConnection.json + responses: + '200': + body: + name: sampleConnection + etag: etag1 + id: /subscriptions/subscription-id/resourceGroups/OneResourceGroupName/providers/Microsoft.BotService/botServices/samplebotname/connections/sampleConnection + location: global + properties: + clientId: sampleclientid + clientSecret: null + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderDisplayName: serviceProviderDisplayName + serviceProviderId: serviceproviderid + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Get a Connection Setting registration for a Bot Service, + name: Get} + java: {description: Get a Connection Setting registration for a Bot Service, + name: get} + operationGroup: *id140 + parameters: + - *id006 + - &id158 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id157 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id159 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id157 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id160 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + java: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + nullable: false + operation: *id157 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id147 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id158 + - *id159 + - *id160 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id157 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}', + uri: '{$host}'} + signatureParameters: + - *id158 + - *id159 + - *id160 + responses: + - language: + default: {description: 'The resource provider should return 200 (OK) to indicate + that the operation completed successfully. ', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id048 + signatureParameters: + - *id158 + - *id159 + - *id160 + - &id161 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Update Connection Setting: + parameters: {api-version: 2021-05-01-preview, connectionName: sampleConnection, + resourceGroupName: OneResourceGroupName, resourceName: samplebotname, + subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeleteConnection.json + responses: + '200': {} + '204': {} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Deletes a Connection Setting registration for a Bot Service, + name: Delete} + java: {description: Deletes a Connection Setting registration for a Bot Service, + name: delete} + operationGroup: *id140 + parameters: + - *id006 + - &id162 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id161 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id163 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id161 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id164 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + java: {description: The name of the Bot Service Connection Setting resource., + name: connectionName, serializedName: connectionName} + nullable: false + operation: *id161 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id147 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id162 + - *id163 + - *id164 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id161 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: delete, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections/{connectionName}', + uri: '{$host}'} + signatureParameters: + - *id162 + - *id163 + - *id164 + responses: + - language: + default: {description: A 200 (OK) should be returned if the object exists + and was deleted successfully;, name: ''} + protocol: + http: + explode: false + statusCodes: ['200'] + - language: + default: {description: a 204 (NoContent) should be used if the resource does + not exist and the request is well formed., name: ''} + protocol: + http: + explode: false + statusCodes: ['204'] + signatureParameters: + - *id162 + - *id163 + - *id164 + - &id170 + apiVersions: &id165 + - {version: 2021-05-01-preview} + exceptions: &id166 + - language: + default: {description: 'Error response describing why the operation failed. + If the resource group does not exist, 404 (NotFound) will be returned.', + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: &id167 + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + List Connection Settings: + parameters: {api-version: 2021-05-01-preview, resourceGroupName: OneResourceGroupName, + resourceName: samplebotname, subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListConnectionsByBotService.json + responses: + '200': + body: + value: + - name: sampleConnection + properties: + clientId: sampleclientid + clientSecret: null + parameters: + - {key: key1, value: value1} + - {key: key2, value: value2} + scopes: samplescope + serviceProviderId: serviceproviderid + xmsFlattened: false + xmsLongRunningOperation: false + xmsPageable: + itemName: value + nextLinkName: nextLink + nextOperation: &id169 + $key: listByBotServiceNext + apiVersions: *id165 + exceptions: *id166 + extensions: *id167 + language: + java: {description: Get the next page of items, name: listByBotServiceNext} + operationGroup: *id140 + parameters: [] + requests: + - language: &id172 + default: {description: Returns all the Connection Settings registered + to a particular BotService resource, name: ListByBotService} + java: {description: Returns all the Connection Settings registered to + a particular BotService resource, name: listByBotService} + parameters: + - &id171 + $key: nextLink + apiVersions: [] + extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: true} + flattened: false + implementation: METHOD + language: + default: &id168 {name: nextLink, serializedName: nextLink} + java: *id168 + nullable: false + operation: *id169 + protocol: + http: {explode: false, in: PATH} + required: true + schema: !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: [] + maxLength: 0.0 + minLength: 0.0 + summary: The URL to get the next list of items + - *id006 + - &id175 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id170 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '{nextLink}', uri: '{$host}'} + signatureParameters: + - *id171 + responses: &id176 + - language: + default: + 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." + name: '' + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id280 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The list of bot service connection settings + response., name: ConnectionSettingResponseList} + java: {description: The list of bot service connection settings response., + name: ConnectionSettingResponseList} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The link used to get the next page of bot + service connection setting resources., name: nextLink} + java: {description: The link used to get the next page of bot service + connection setting resources., name: nextLink} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id398 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The link used to get the next page of bot + service connection setting resources., name: ConnectionSettingResponseListNextLink} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: nextLink + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Gets the list of bot service connection settings + and their properties., name: value} + java: {description: Gets the list of bot service connection settings + and their properties., name: value} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id214 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: *id048 + language: + default: {description: Gets the list of bot service connection + settings and their properties., name: ConnectionSettingResponseListValue} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: value + protocol: {} + type: OBJECT + signatureParameters: [] + xmsSkipUrlEncoding: false + language: *id172 + operationGroup: *id140 + parameters: + - *id006 + - &id173 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id170 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id174 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id170 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id005 + - *id009 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id173 + - *id174 + - *id005 + - *id009 + - *id175 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/connections', + uri: '{$host}'} + signatureParameters: + - *id173 + - *id174 + responses: *id176 + signatureParameters: + - *id173 + - *id174 + - *id169 + protocol: {} +- &id177 + $key: HostSettings + codeModel: *id001 + language: + default: {description: '', name: HostSettings} + java: {description: '', name: HostSettings} + operations: + - &id178 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - language: + default: {description: Error response describing why the operation failed, + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Get Bot Host Settings: + parameters: {api-version: 2021-05-01-preview, subscriptionId: subscription-id} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetHostSettings.json + 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} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Get per subscription settings needed to host bot in compute + resource such as Azure App Service, name: Get} + java: {description: Get per subscription settings needed to host bot in compute + resource such as Azure App Service, name: get} + operationGroup: *id177 + parameters: + - *id006 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id178 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/providers/Microsoft.BotService/hostSettings', + uri: '{$host}'} + signatureParameters: [] + responses: + - language: + default: {description: 'If resource is retrieved successfully, the service + should return 200 (OK).', name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id281 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The response body returned for a request to Bot Service + Management to check per subscription hostSettings, name: HostSettingsResponse} + java: {description: The response body returned for a request to Bot Service + Management to check per subscription hostSettings, name: HostSettingsResponse} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: For in-conversation bot user authentication, name: oAuthUrl} + java: {description: For in-conversation bot user authentication, name: oAuthUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id399 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: For in-conversation bot user authentication, + name: HostSettingsResponseOAuthUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: OAuthUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: For verifying incoming tokens from the channels, + name: toBotFromChannelOpenIdMetadataUrl} + java: {description: For verifying incoming tokens from the channels, name: toBotFromChannelOpenIdMetadataUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id400 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: For verifying incoming tokens from the channels, + name: HostSettingsResponseToBotFromChannelOpenIdMetadataUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: ToBotFromChannelOpenIdMetadataUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: For verifying incoming tokens from the channels, + name: toBotFromChannelTokenIssuer} + java: {description: For verifying incoming tokens from the channels, name: toBotFromChannelTokenIssuer} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id401 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: For verifying incoming tokens from the channels, + name: HostSettingsResponseToBotFromChannelTokenIssuer} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: ToBotFromChannelTokenIssuer + - apiVersions: [] + isDiscriminator: false + language: + default: {description: For verifying incoming tokens from bot emulator, + name: toBotFromEmulatorOpenIdMetadataUrl} + java: {description: For verifying incoming tokens from bot emulator, name: toBotFromEmulatorOpenIdMetadataUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id402 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: For verifying incoming tokens from bot emulator, + name: HostSettingsResponseToBotFromEmulatorOpenIdMetadataUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: ToBotFromEmulatorOpenIdMetadataUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: For getting access token to channels from bot host, + name: toChannelFromBotLoginUrl} + java: {description: For getting access token to channels from bot host, + name: toChannelFromBotLoginUrl} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id403 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: For getting access token to channels from bot + host, name: HostSettingsResponseToChannelFromBotLoginUrl} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: ToChannelFromBotLoginUrl + - apiVersions: [] + isDiscriminator: false + language: + default: {description: For getting access token to channels from bot host, + name: toChannelFromBotOAuthScope} + java: {description: For getting access token to channels from bot host, + name: toChannelFromBotOAuthScope} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id404 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: For getting access token to channels from bot + host, name: HostSettingsResponseToChannelFromBotOAuthScope} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: ToChannelFromBotOAuthScope + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Per cloud OAuth setting on whether authority is + validated, name: validateAuthority} + java: {description: Per cloud OAuth setting on whether authority is validated, + name: validateAuthority} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id234 !!com.azure.autorest.extension.base.model.codemodel.BooleanSchema + apiVersions: [] + language: + default: {description: Per cloud OAuth setting on whether authority + is validated, name: Boolean} + protocol: {} + type: BOOLEAN + serializedName: ValidateAuthority + - apiVersions: [] + isDiscriminator: false + language: + default: {description: 'Same as toBotFromChannelOpenIdMetadataUrl, used + by SDK < v4.12', name: botOpenIdMetadata} + java: {description: 'Same as toBotFromChannelOpenIdMetadataUrl, used by + SDK < v4.12', name: botOpenIdMetadata} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id405 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: 'Same as toBotFromChannelOpenIdMetadataUrl, used + by SDK < v4.12', name: HostSettingsResponseBotOpenIdMetadata} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: BotOpenIdMetadata + protocol: {} + type: OBJECT + signatureParameters: [] + protocol: {} +- &id179 + $key: OperationResults + codeModel: *id001 + language: + default: {description: '', name: OperationResults} + java: {description: '', name: OperationResults} + operations: + - &id180 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Default error response, name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Get operation result: + parameters: {api-version: 2021-05-01-preview, operationResultId: exampleid, + subscriptionId: subid} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/OperationResultsGet.json + responses: + '200': + body: {name: servicename, id: /subscriptions/subid/providers/Microsoft.BotService/locations/westus/operationresults/exampleid, + startTime: '2019-01-21T06:03:30.2716301Z', status: Requested} + '202': {} + xmsFlattened: false + xmsLongRunningOperation: true + xmsSkipUrlEncoding: false + language: + default: {description: Get the operation result for a long running operation., + name: Get} + java: {description: Get the operation result for a long running operation., + name: get} + operationGroup: *id179 + parameters: + - *id006 + - *id009 + - *id005 + - &id181 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The ID of the operation result to get., name: operationResultId, + serializedName: operationResultId} + java: {description: The ID of the operation result to get., name: operationResultId, + serializedName: operationResultId} + nullable: false + operation: *id180 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id049 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id009 + - *id005 + - *id181 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id180 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/providers/Microsoft.BotService/operationresults/{operationResultId}', + uri: '{$host}'} + signatureParameters: + - *id181 + responses: + - language: + default: {description: The body contains all of the properties of the operation + result., name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id282 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: The properties indicating the operation result of + an operation on a service., name: OperationResultsDescription} + java: {description: The properties indicating the operation result of an + operation on a service., name: OperationResultsDescription} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The ID of the operation returned., name: Id} + java: {description: The ID of the operation returned., name: id} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id406 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The ID of the operation returned., name: OperationResultsDescriptionId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: id + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The name of the operation result., name: name} + java: {description: The name of the operation result., name: name} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id407 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The name of the operation result., name: OperationResultsDescriptionName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + serializedName: name + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The status of the operation being performed., name: status} + java: {description: The status of the operation being performed., name: status} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id253 !!com.azure.autorest.extension.base.model.codemodel.ChoiceSchema + apiVersions: + - {version: 2021-05-01-preview} + choiceType: *id004 + choices: + - language: + default: {description: '', name: CANCELED} + value: Canceled + - language: + default: {description: '', name: SUCCEEDED} + value: Succeeded + - language: + default: {description: '', name: FAILED} + value: Failed + - language: + default: {description: '', name: REQUESTED} + value: Requested + - language: + default: {description: '', name: RUNNING} + value: Running + language: + default: {description: The status of the operation being performed., + name: OperationResultStatus} + java: {description: The status of the operation being performed., name: OperationResultStatus} + protocol: {} + type: CHOICE + serializedName: status + - apiVersions: [] + isDiscriminator: false + language: + default: {description: The time that the operation was started., name: startTime} + java: {description: The time that the operation was started., name: startTime} + nullable: false + protocol: {} + readOnly: true + required: false + schema: &id255 !!com.azure.autorest.extension.base.model.codemodel.DateTimeSchema + apiVersions: + - {version: 2021-05-01-preview} + format: DATE_TIME + language: + default: {description: The time that the operation was started., name: OperationResultsDescriptionStartTime} + protocol: {} + type: DATE_TIME + serializedName: startTime + protocol: {} + type: OBJECT + - language: + default: {description: Accepted - Get request accepted; the operation will + complete asynchronously., name: ''} + protocol: + http: + explode: false + statusCodes: ['202'] + signatureParameters: + - *id181 + protocol: {} +- &id182 + $key: PrivateEndpointConnections + codeModel: *id001 + language: + default: {description: '', name: PrivateEndpointConnections} + java: {description: '', name: PrivateEndpointConnections} + operations: + - &id183 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Default error response, name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + List Private Endpoint Connections: + parameters: {api-version: 2021-05-01-preview, resourceGroupName: res6977, + resourceName: sto2527, subscriptionId: '{subscription-id}'} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/ListPrivateEndpointConnections.json + responses: + '200': + body: + value: + - name: '{privateEndpointConnectionName}' + type: Microsoft.BotService/botServices/privateEndpointConnections + id: /subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.BotService/botServices/sto288/privateEndpointConnections/{privateEndpointConnectionName} + properties: + privateEndpoint: {id: '/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01'} + privateLinkServiceConnectionState: {description: Auto-Approved, + actionsRequired: None, status: Approved} + provisioningState: Succeeded + - name: '{privateEndpointConnectionName}' + type: Microsoft.BotService/botServices/privateEndpointConnections + id: /subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.BotService/botServices/sto288/privateEndpointConnections/{privateEndpointConnectionName} + properties: + privateEndpoint: {id: '/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest02'} + privateLinkServiceConnectionState: {description: Auto-Approved, + actionsRequired: None, status: Approved} + provisioningState: Succeeded + xmsFlattened: false + xmsLongRunningOperation: false + xmsPageable: {itemName: value} + xmsSkipUrlEncoding: false + language: + default: {description: List all the private endpoint connections associated + with the Bot., name: List} + java: {description: List all the private endpoint connections associated with + the Bot., name: list} + operationGroup: *id182 + parameters: + - *id006 + - &id184 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id183 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id185 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id183 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id184 + - *id185 + - *id009 + - *id005 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id183 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections', + uri: '{$host}'} + signatureParameters: + - *id184 + - *id185 + responses: + - language: + default: {description: OK -- Successfully retrieved private endpoint connections., + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: &id283 !!com.azure.autorest.extension.base.model.codemodel.ObjectSchema + apiVersions: + - {version: 2021-05-01-preview} + flattenedSchema: false + language: + default: {description: List of private endpoint connection associated with + the specified storage account, name: PrivateEndpointConnectionListResult} + java: {description: List of private endpoint connection associated with + the specified storage account, name: PrivateEndpointConnectionListResult} + maxProperties: 0.0 + minProperties: 0.0 + properties: + - apiVersions: [] + isDiscriminator: false + language: + default: {description: Array of private endpoint connections, name: value} + java: {description: Array of private endpoint connections, name: value} + nullable: false + protocol: {} + readOnly: false + required: false + schema: &id215 !!com.azure.autorest.extension.base.model.codemodel.ArraySchema + apiVersions: + - {version: 2021-05-01-preview} + elementType: *id012 + language: + default: {description: Array of private endpoint connections, name: PrivateEndpointConnectionListResultValue} + maxItems: 0.0 + minItems: 0.0 + protocol: {} + type: ARRAY + uniqueItems: false + serializedName: value + protocol: {} + type: OBJECT + signatureParameters: + - *id184 + - *id185 + - &id186 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Error response describing why the operation failed., + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Get Private Endpoint Connection: + parameters: {api-version: 2021-05-01-preview, privateEndpointConnectionName: '{privateEndpointConnectionName}', + resourceGroupName: res6977, resourceName: sto2527, subscriptionId: '{subscription-id}'} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/GetPrivateEndpointConnection.json + responses: + '200': + body: + name: '{privateEndpointConnectionName}' + type: Microsoft.BotService/botServices/privateEndpointConnections + id: /subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.BotService/botServices/sto288/privateEndpointConnections/{privateEndpointConnectionName} + properties: + privateEndpoint: {id: '/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01'} + privateLinkServiceConnectionState: {description: Auto-Approved, + actionsRequired: None, status: Approved} + provisioningState: Succeeded + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Gets the specified private endpoint connection associated + with the Bot., name: Get} + java: {description: Gets the specified private endpoint connection associated + with the Bot., name: get} + operationGroup: *id182 + parameters: + - *id006 + - &id187 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id186 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id188 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id186 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + - &id189 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the private endpoint connection associated + with the Azure resource, name: privateEndpointConnectionName, serializedName: privateEndpointConnectionName} + java: {description: The name of the private endpoint connection associated + with the Azure resource, name: privateEndpointConnectionName, serializedName: privateEndpointConnectionName} + nullable: false + operation: *id186 + protocol: + http: {explode: false, in: PATH} + required: true + schema: &id191 !!com.azure.autorest.extension.base.model.codemodel.StringSchema + apiVersions: + - {version: '1.0'} + language: + default: {description: '', name: String} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id187 + - *id188 + - *id009 + - *id005 + - *id189 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id186 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: get, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}', + uri: '{$host}'} + signatureParameters: + - *id187 + - *id188 + - *id189 + responses: + - language: + default: {description: OK -- Get the private endpoint connection properties + successfully., name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id012 + signatureParameters: + - *id187 + - *id188 + - *id189 + - &id190 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Error response describing why the operation failed., + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Put Private Endpoint Connection: + parameters: + api-version: 2021-05-01-preview + privateEndpointConnectionName: '{privateEndpointConnectionName}' + properties: + properties: + privateLinkServiceConnectionState: {description: Auto-Approved, + status: Approved} + resourceGroupName: res7687 + resourceName: sto9699 + subscriptionId: '{subscription-id}' + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/PutPrivateEndpointConnection.json + responses: + '200': + body: + name: '{privateEndpointConnectionName}' + type: Microsoft.BotService/botServices/privateEndpointConnections + id: /subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.BotService/botServices/sto288/privateEndpointConnections/{privateEndpointConnectionName} + properties: + privateEndpoint: {id: '/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01'} + privateLinkServiceConnectionState: {description: Auto-Approved, + actionsRequired: None, status: Approved} + provisioningState: Succeeded + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Update the state of specified private endpoint connection + associated with the Bot., name: Create} + java: {description: Update the state of specified private endpoint connection + associated with the Bot., name: create} + operationGroup: *id182 + parameters: + - *id006 + - &id192 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id190 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id193 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id190 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + - &id194 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the private endpoint connection associated + with the Azure resource, name: privateEndpointConnectionName, serializedName: privateEndpointConnectionName} + java: {description: The name of the private endpoint connection associated + with the Azure resource, name: privateEndpointConnectionName, serializedName: privateEndpointConnectionName} + nullable: false + operation: *id190 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id191 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id192 + - *id193 + - *id009 + - *id005 + - *id194 + - &id195 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The private endpoint connection properties., name: properties} + java: {description: The private endpoint connection properties., name: properties} + nullable: false + operation: *id190 + protocol: + http: {explode: false, in: BODY, style: JSON} + required: true + schema: *id012 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id190 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + method: put + path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName} + uri: '{$host}' + signatureParameters: + - *id192 + - *id193 + - *id194 + - *id195 + responses: + - language: + default: {description: OK -- Update the private endpoint connection properties + successfully., name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: ['200'] + schema: *id012 + signatureParameters: + - *id192 + - *id193 + - *id194 + - &id196 + apiVersions: + - {version: 2021-05-01-preview} + exceptions: + - extensions: {xmsAzureResource: false, xmsClientFlatten: false, xmsFlattened: false, + xmsLongRunningOperation: false, xmsSkipUrlEncoding: false} + language: + default: {description: Error response describing why the operation failed., + name: ''} + protocol: + http: + explode: false + knownMediaType: JSON + mediaTypes: [application/json] + statusCodes: [default] + schema: *id014 + extensions: + xmsAzureResource: false + xmsClientFlatten: false + xmsExamples: + examples: + Delete Private Endpoint Connection: + parameters: {api-version: 2021-05-01-preview, privateEndpointConnectionName: '{privateEndpointConnectionName}', + resourceGroupName: res6977, resourceName: sto2527, subscriptionId: '{subscription-id}'} + x-ms-original-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/botservice/resource-manager/Microsoft.BotService/preview/2021-05-01-preview/examples/DeletePrivateEndpointConnection.json + responses: + '200': {} + '204': {} + xmsFlattened: false + xmsLongRunningOperation: false + xmsSkipUrlEncoding: false + language: + default: {description: Deletes the specified private endpoint connection associated + with the Bot., name: Delete} + java: {description: Deletes the specified private endpoint connection associated + with the Bot., name: delete} + operationGroup: *id182 + parameters: + - *id006 + - &id197 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + java: {description: The name of the Bot resource group in the user subscription., + name: resourceGroupName, serializedName: resourceGroupName} + nullable: false + operation: *id196 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - &id198 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the Bot resource., name: resourceName, + serializedName: resourceName} + java: {description: The name of the Bot resource., name: resourceName, serializedName: resourceName} + nullable: false + operation: *id196 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id003 + - *id009 + - *id005 + - &id199 + apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: The name of the private endpoint connection associated + with the Azure resource, name: privateEndpointConnectionName, serializedName: privateEndpointConnectionName} + java: {description: The name of the private endpoint connection associated + with the Azure resource, name: privateEndpointConnectionName, serializedName: privateEndpointConnectionName} + nullable: false + operation: *id196 + protocol: + http: {explode: false, in: PATH} + required: true + schema: *id191 + protocol: {} + requests: + - language: + default: {description: '', name: ''} + parameters: + - *id006 + - *id197 + - *id198 + - *id009 + - *id005 + - *id199 + - apiVersions: [] + flattened: false + implementation: METHOD + language: + default: {description: Accept header, name: accept, serializedName: Accept} + java: {description: Accept header, name: accept, serializedName: Accept} + nullable: false + operation: *id196 + origin: modelerfour:synthesized/accept + protocol: + http: {explode: false, in: HEADER} + required: true + schema: *id051 + protocol: + http: {explode: false, method: delete, path: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}', + uri: '{$host}'} + signatureParameters: + - *id197 + - *id198 + - *id199 + responses: + - language: + default: {description: OK -- Delete the private endpoint connection successfully., + name: ''} + protocol: + http: + explode: false + statusCodes: ['200'] + - language: + default: {description: No Content -- The private endpoint connection does + not exist., name: ''} + protocol: + http: + explode: false + statusCodes: ['204'] + signatureParameters: + - *id197 + - *id198 + - *id199 + protocol: {} +- *id200 +protocol: + http: {explode: false} +schemas: + ands: [] + arrays: + - *id201 + - *id202 + - *id203 + - *id204 + - *id205 + - *id206 + - *id207 + - *id208 + - *id209 + - *id210 + - *id211 + - *id212 + - *id213 + - *id214 + - *id215 + - *id216 + - *id217 + - *id218 + - *id219 + - *id220 + - *id221 + - *id222 + binaries: [] + booleans: + - *id223 + - *id224 + - *id225 + - *id050 + - *id226 + - *id227 + - *id228 + - *id229 + - *id026 + - *id230 + - *id231 + - *id023 + - *id232 + - *id233 + - *id234 + - *id235 + - *id236 + - *id237 + - *id238 + - *id239 + - *id240 + - *id241 + - *id242 + - *id028 + - *id243 + - *id244 + - *id245 + byteArrays: [] + chars: [] + choices: + - *id246 + - *id247 + - *id248 + - *id249 + - *id250 + - *id251 + - *id252 + - *id253 + constants: + - *id254 + - *id051 + credentials: [] + dateTimes: + - *id255 + dates: [] + dictionaries: + - *id256 + - *id257 + - *id258 + durations: [] + flags: [] + groups: [] + numbers: [] + objects: + - *id019 + - *id259 + - *id012 + - *id260 + - *id261 + - *id262 + - *id010 + - *id021 + - *id263 + - *id014 + - *id081 + - *id020 + - *id022 + - *id043 + - *id264 + - *id025 + - *id024 + - *id027 + - *id265 + - *id266 + - *id267 + - *id268 + - *id269 + - *id270 + - *id271 + - *id272 + - *id273 + - *id274 + - *id275 + - *id276 + - *id277 + - *id048 + - *id278 + - *id279 + - *id280 + - *id281 + - *id282 + - *id283 + - *id284 + - *id011 + - *id285 + - *id029 + - *id286 + - *id030 + - *id287 + - *id288 + - *id031 + - *id289 + - *id032 + - *id290 + - *id033 + - *id291 + - *id034 + - *id292 + - *id035 + - *id293 + - *id036 + - *id294 + - *id037 + - *id295 + - *id038 + - *id296 + - *id039 + - *id297 + - *id040 + - *id298 + - *id299 + - *id041 + - *id300 + odataQueries: [] + ors: [] + parameterGroups: [] + sealedChoices: + - *id094 + - *id301 + - *id302 + streams: [] + strings: + - *id004 + - *id003 + - *id049 + - *id303 + - *id304 + - *id305 + - *id306 + - *id307 + - *id308 + - *id309 + - *id310 + - *id311 + - *id312 + - *id313 + - *id314 + - *id315 + - *id316 + - *id317 + - *id318 + - *id319 + - *id320 + - *id321 + - *id322 + - *id323 + - *id324 + - *id325 + - *id326 + - apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: 'Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}', + name: PrivateLinkResourceBaseId} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + - apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The name of the resource, name: PrivateLinkResourceBaseName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + - apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" + or "Microsoft.Storage/storageAccounts", name: PrivateLinkResourceBaseType} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + - *id327 + - *id328 + - *id329 + - *id330 + - *id331 + - *id332 + - *id333 + - *id334 + - *id335 + - *id336 + - *id337 + - *id338 + - *id339 + - *id340 + - *id341 + - *id342 + - *id343 + - *id344 + - *id345 + - *id346 + - *id347 + - *id348 + - *id349 + - *id350 + - *id351 + - *id352 + - *id353 + - *id354 + - *id355 + - *id356 + - *id357 + - *id358 + - *id359 + - *id360 + - *id361 + - *id362 + - *id363 + - *id364 + - *id365 + - *id366 + - *id367 + - *id368 + - *id369 + - *id370 + - *id371 + - *id372 + - *id373 + - *id374 + - *id375 + - *id376 + - *id377 + - *id378 + - *id379 + - *id380 + - *id381 + - *id382 + - *id383 + - *id384 + - *id385 + - *id386 + - *id147 + - *id387 + - *id388 + - *id389 + - *id390 + - *id391 + - *id392 + - *id393 + - *id394 + - *id395 + - *id396 + - *id397 + - *id398 + - *id399 + - *id400 + - *id401 + - *id402 + - *id403 + - *id404 + - *id405 + - *id406 + - *id407 + - *id191 + - *id408 + - *id409 + - *id410 + - *id411 + - *id412 + - *id413 + - *id414 + - *id415 + - *id416 + - *id417 + - *id418 + - *id419 + - *id420 + - *id421 + - *id422 + - *id423 + - *id424 + - *id425 + - *id426 + - *id427 + - *id428 + - *id429 + - *id430 + - *id431 + - *id432 + - *id433 + - *id434 + - *id435 + - *id436 + - *id437 + - *id438 + - *id439 + - *id440 + - *id441 + - *id442 + - *id443 + - *id444 + - *id445 + - *id446 + - *id447 + - *id448 + - *id449 + - *id450 + - *id451 + - apiVersions: + - {version: 2021-05-01-preview} + language: + default: {description: Connection Item name that has been added in the API, + name: ConnectionItemName} + maxLength: 0.0 + minLength: 0.0 + protocol: {} + type: STRING + unixtimes: [] + unknowns: [] + uris: [] + uuids: [] + xors: [] diff --git a/javagen/src/main/java/com/azure/autorest/template/ModelTemplate.java b/javagen/src/main/java/com/azure/autorest/template/ModelTemplate.java index 512c06bba1..09a97f6e16 100644 --- a/javagen/src/main/java/com/azure/autorest/template/ModelTemplate.java +++ b/javagen/src/main/java/com/azure/autorest/template/ModelTemplate.java @@ -387,22 +387,19 @@ public final void write(ClientModel model, JavaFile javaFile) { } if (settings.isOverrideSetterFromSuperclass()) { - // reference to properties from parent model - for (ClientModelPropertyReference propertyReference : propertyReferences.stream().filter(ClientModelPropertyReference::isFromParentModel).collect(Collectors.toList())) { - ClientModelPropertyAccess parentProperty = propertyReference.getReferenceProperty(); - if (!parentProperty.getIsReadOnly() && !(settings.isRequiredFieldsAsConstructorArgs() && parentProperty.isRequired())) { - classBlock.javadocComment(JavaJavadocComment::inheritDoc); - classBlock.annotation("Override"); - classBlock.publicMethod(String.format("%s %s(%s %s)", - model.getName(), - parentProperty.getSetterName(), - parentProperty.getClientType(), - parentProperty.getName()), - methodBlock -> { - methodBlock.line(String.format("super.%1$s(%2$s);", parentProperty.getSetterName(), parentProperty.getName())); - methodBlock.methodReturn("this"); - }); - } + List settersToOverride = getParentSettersToOverride(model, settings, propertyReferences); + for (ClientModelPropertyAccess parentProperty : settersToOverride) { + classBlock.javadocComment(JavaJavadocComment::inheritDoc); + classBlock.annotation("Override"); + classBlock.publicMethod(String.format("%s %s(%s %s)", + model.getName(), + parentProperty.getSetterName(), + parentProperty.getClientType(), + parentProperty.getName()), + methodBlock -> { + methodBlock.line(String.format("super.%1$s(%2$s);", parentProperty.getSetterName(), parentProperty.getName())); + methodBlock.methodReturn("this"); + }); } } @@ -449,6 +446,29 @@ public final void write(ClientModel model, JavaFile javaFile) { }); } + /** + * Override parent setters if: + * 1. parent property is not readOnly or required + * 2. child does not contain property that shadow this parent property, otherwise overridden parent setter methods will collide with child setter methods + * @see Issue 1320 + */ + protected List getParentSettersToOverride(ClientModel model, JavaSettings settings, List propertyReferences) { + Set modelPropertyNames = model.getProperties().stream().map(ClientModelProperty::getName).collect(Collectors.toSet()); + return propertyReferences.stream() + .filter(ClientModelPropertyReference::isFromParentModel) + .map(ClientModelPropertyReference::getReferenceProperty) + .filter(parentProperty -> { + // parent property is not readOnly or required + if (parentProperty.getIsReadOnly() || + (settings.isRequiredFieldsAsConstructorArgs() && parentProperty.isRequired())) { + return false; + } + // child does not contain property that shadow this parent property + return !modelPropertyNames.contains(parentProperty.getName()); + } + ).collect(Collectors.toList()); + } + private void addModelConstructor(ClientModel model, JavaSettings settings, JavaClass classBlock, List constantProperties, List allRequiredProperties) {