From b0c2eaa5436b610753cc73078224905e548fb608 Mon Sep 17 00:00:00 2001 From: adxsdknet <39844661+adxsdknet@users.noreply.github.com> Date: Thu, 21 Mar 2019 16:31:05 -0700 Subject: [PATCH] .NET SDK Resource Provider:'Authoring' (#5511) REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5416' REST Spec PR Author 'diberry' REST Spec PR Last commit --- .../Language/LUIS/Authoring/Generated/Apps.cs | 578 ++-- .../Authoring/Generated/AppsExtensions.cs | 350 ++- .../LUIS/Authoring/Generated/AzureAccounts.cs | 130 +- .../Generated/AzureAccountsExtensions.cs | 76 +- .../LUIS/Authoring/Generated/Examples.cs | 98 +- .../Authoring/Generated/ExamplesExtensions.cs | 70 +- .../LUIS/Authoring/Generated/Features.cs | 342 ++- .../Authoring/Generated/FeaturesExtensions.cs | 139 +- .../LUIS/Authoring/Generated/IApps.cs | 367 ++- .../Authoring/Generated/IAzureAccounts.cs | 84 +- .../LUIS/Authoring/Generated/IExamples.cs | 67 +- .../LUIS/Authoring/Generated/IFeatures.cs | 137 +- .../Generated/ILUISAuthoringClient.cs | 6 - .../LUIS/Authoring/Generated/IModel.cs | 1720 +++++++++-- .../LUIS/Authoring/Generated/IPattern.cs | 122 +- .../LUIS/Authoring/Generated/IPermissions.cs | 59 +- .../LUIS/Authoring/Generated/ISettings.cs | 30 +- .../LUIS/Authoring/Generated/ITrain.cs | 26 +- .../LUIS/Authoring/Generated/IVersions.cs | 118 +- .../Generated/LUISAuthoringClient.cs | 8 +- .../LUIS/Authoring/Generated/Model.cs | 2559 ++++++++++++----- .../Authoring/Generated/ModelExtensions.cs | 1789 +++++++++--- .../Models/ApplicationInfoResponse.cs | 16 +- .../Models/ApplicationSettingUpdateObject.cs | 12 +- .../Generated/Models/ApplicationSettings.cs | 5 +- .../Models/AzureAccountInfoObject.cs | 14 +- .../Authoring/Generated/Models/AzureClouds.cs | 60 + .../Generated/Models/AzureRegions.cs | 126 + .../Generated/Models/BatchLabelExample.cs | 2 +- .../Authoring/Generated/Models/ClosedList.cs | 10 +- .../Models/ClosedListEntityExtractor.cs | 18 +- .../Models/ClosedListModelCreateObject.cs | 6 +- .../Models/ClosedListModelPatchObject.cs | 2 +- .../Models/ClosedListModelUpdateObject.cs | 6 +- .../Models/CompositeEntityExtractor.cs | 12 +- .../Generated/Models/CompositeEntityModel.cs | 2 +- .../Generated/Models/CustomPrebuiltModel.cs | 12 +- .../Models/EntitiesSuggestionExample.cs | 8 +- .../Generated/Models/EntityExtractor.cs | 12 +- .../Generated/Models/EntityModelInfo.cs | 6 +- .../Generated/Models/ExampleLabelObject.cs | 15 +- .../Generated/Models/ExplicitListItem.cs | 2 +- .../Models/ExplicitListItemCreateObject.cs | 2 +- .../Models/ExplicitListItemUpdateObject.cs | 2 +- .../Models/HierarchicalChildEntity.cs | 12 +- .../Models/HierarchicalEntityExtractor.cs | 12 +- .../Models/HierarchicalEntityModel.cs | 2 +- .../Generated/Models/IntentClassifier.cs | 6 +- .../Models/IntentsSuggestionExample.cs | 12 +- .../Generated/Models/JSONModelFeature.cs | 42 +- .../Generated/Models/LabelExampleResponse.cs | 6 +- .../Generated/Models/LabelTextObject.cs | 2 +- .../Generated/Models/LabeledUtterance.cs | 8 +- .../Authoring/Generated/Models/LuisApp.cs | 8 +- .../Authoring/Generated/Models/ModelInfo.cs | 12 +- .../Generated/Models/ModelInfoResponse.cs | 21 +- .../Models/PatternAnyEntityExtractor.cs | 12 +- .../Models/PhraselistCreateObject.cs | 43 +- .../Models/PrebuiltEntityExtractor.cs | 12 +- .../Generated/Models/PublishSettings.cs | 18 +- .../Generated/Models/RegexEntityExtractor.cs | 19 +- .../Models/RegexModelCreateObject.cs | 7 +- .../Models/RegexModelUpdateObject.cs | 7 +- .../Generated/Models/SubClosedList.cs | 2 +- .../Generated/Models/SubClosedListResponse.cs | 2 +- .../Models/WordListBaseUpdateObject.cs | 2 +- .../Generated/Models/WordListObject.cs | 2 +- .../LUIS/Authoring/Generated/Pattern.cs | 189 +- .../Authoring/Generated/PatternExtensions.cs | 129 +- .../LUIS/Authoring/Generated/Permissions.cs | 96 +- .../Generated/PermissionsExtensions.cs | 62 +- .../Generated/SdkInfo_LUISAuthoringClient.cs | 11 - .../LUIS/Authoring/Generated/Settings.cs | 46 +- .../Authoring/Generated/SettingsExtensions.cs | 32 +- .../LUIS/Authoring/Generated/Train.cs | 42 +- .../Authoring/Generated/TrainExtensions.cs | 28 +- .../LUIS/Authoring/Generated/Versions.cs | 189 +- .../Authoring/Generated/VersionsExtensions.cs | 123 +- 78 files changed, 7953 insertions(+), 2488 deletions(-) create mode 100644 src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureClouds.cs create mode 100644 src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureRegions.cs diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs index cb1fb705c87ca..7da07a9d4295c 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs @@ -53,11 +53,21 @@ public Apps(LUISAuthoringClient client) /// /// Creates a new LUIS app. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// - /// A model containing Name, Description (optional), Culture, Usage Scenario - /// (optional), Domain (optional) and initial version ID (optional) of the - /// application. Default value for the version ID is 0.1. Note: the culture - /// cannot be changed after the app is created. + /// An application containing Name, Description (optional), Culture, Usage + /// Scenario (optional), Domain (optional) and initial version ID (optional) of + /// the application. Default value for the version ID is "0.1". Note: the + /// culture cannot be changed after the app is created. /// /// /// Headers that will be added to request. @@ -80,12 +90,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddWithHttpMessagesAsync(ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (applicationCreateObject == null) { throw new ValidationException(ValidationRules.CannotBeNull, "applicationCreateObject"); @@ -101,6 +107,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("applicationCreateObject", applicationCreateObject); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Add", tracingParameters); @@ -108,7 +116,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -216,8 +225,18 @@ public Apps(LUISAuthoringClient client) } /// - /// Lists all of the user applications. + /// Lists all of the user's applications. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The number of entries to skip. Default value is 0. /// @@ -236,21 +255,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (skip < 0) { throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); @@ -270,6 +279,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("skip", skip); tracingParameters.Add("take", take); tracingParameters.Add("cancellationToken", cancellationToken); @@ -278,7 +289,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); List _queryParameters = new List(); if (skip != null) { @@ -393,15 +405,26 @@ public Apps(LUISAuthoringClient client) } /// - /// Imports an application to LUIS, the application's structure should be - /// included in the request body. + /// Imports an application to LUIS, the application's structure is included in + /// the request body. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// A LUIS application structure. /// /// /// The application name to create. If not specified, the application name will - /// be read from the imported object. + /// be read from the imported object. If the application name already exists, + /// an error is returned. /// /// /// Headers that will be added to request. @@ -424,12 +447,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ImportWithHttpMessagesAsync(LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (luisApp == null) { throw new ValidationException(ValidationRules.CannotBeNull, "luisApp"); @@ -441,6 +460,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appName", appName); tracingParameters.Add("luisApp", luisApp); tracingParameters.Add("cancellationToken", cancellationToken); @@ -449,7 +470,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/import"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); List _queryParameters = new List(); if (appName != null) { @@ -568,6 +590,16 @@ public Apps(LUISAuthoringClient client) /// /// Gets the endpoint URLs for the prebuilt Cortana applications. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// Headers that will be added to request. /// @@ -580,21 +612,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> ListCortanaEndpointsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListCortanaEndpointsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -602,13 +624,16 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListCortanaEndpoints", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/assistants"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -712,6 +737,16 @@ public Apps(LUISAuthoringClient client) /// /// Gets the available application domains. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// Headers that will be added to request. /// @@ -724,21 +759,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> ListDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListDomainsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -746,13 +771,16 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListDomains", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/domains"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -856,6 +884,16 @@ public Apps(LUISAuthoringClient client) /// /// Gets the application available usage scenarios. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// Headers that will be added to request. /// @@ -868,21 +906,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> ListUsageScenariosWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListUsageScenariosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -890,13 +918,16 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListUsageScenarios", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/usagescenarios"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -998,8 +1029,20 @@ public Apps(LUISAuthoringClient client) } /// - /// Gets the supported application cultures. + /// Gets a list of supported cultures. Cultures are equivalent to the written + /// language and locale. For example,"en-us" represents the U.S. variation of + /// English. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// Headers that will be added to request. /// @@ -1012,21 +1055,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> ListSupportedCulturesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSupportedCulturesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1034,13 +1067,16 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListSupportedCultures", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/cultures"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -1142,8 +1178,18 @@ public Apps(LUISAuthoringClient client) } /// - /// Gets the query logs of the past month for the application. + /// Gets the logs of the past month's endpoint queries for the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1159,21 +1205,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> DownloadQueryLogsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DownloadQueryLogsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1181,6 +1217,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "DownloadQueryLogs", tracingParameters); @@ -1188,7 +1226,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/querylogs"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -1273,6 +1312,16 @@ public Apps(LUISAuthoringClient client) /// /// Gets the application info. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1288,21 +1337,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1310,6 +1349,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); @@ -1317,7 +1358,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -1422,6 +1464,16 @@ public Apps(LUISAuthoringClient client) /// /// Updates the name or description of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1449,12 +1501,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (applicationUpdateObject == null) { throw new ValidationException(ValidationRules.CannotBeNull, "applicationUpdateObject"); @@ -1466,6 +1514,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("applicationUpdateObject", applicationUpdateObject); tracingParameters.Add("cancellationToken", cancellationToken); @@ -1474,7 +1524,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -1585,6 +1636,16 @@ public Apps(LUISAuthoringClient client) /// /// Deletes an application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1603,21 +1664,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, bool? force = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, bool? force = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1625,6 +1676,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("force", force); tracingParameters.Add("cancellationToken", cancellationToken); @@ -1633,7 +1686,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); List _queryParameters = new List(); if (force != null) @@ -1747,6 +1801,16 @@ public Apps(LUISAuthoringClient client) /// /// Publishes a specific version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1775,12 +1839,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PublishWithHttpMessagesAsync(System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PublishWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (applicationPublishObject == null) { throw new ValidationException(ValidationRules.CannotBeNull, "applicationPublishObject"); @@ -1792,6 +1852,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("applicationPublishObject", applicationPublishObject); tracingParameters.Add("cancellationToken", cancellationToken); @@ -1800,7 +1862,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publish"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -1927,8 +1990,18 @@ public Apps(LUISAuthoringClient client) } /// - /// Get the application settings. + /// Get the application settings including 'UseAllTrainingData'. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1944,21 +2017,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -1966,6 +2029,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "GetSettings", tracingParameters); @@ -1973,7 +2038,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/settings"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2076,8 +2142,18 @@ public Apps(LUISAuthoringClient client) } /// - /// Updates the application settings. + /// Updates the application settings including 'UseAllTrainingData'. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2105,12 +2181,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateSettingsWithHttpMessagesAsync(System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (applicationSettingUpdateObject == null) { throw new ValidationException(ValidationRules.CannotBeNull, "applicationSettingUpdateObject"); @@ -2122,6 +2194,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("applicationSettingUpdateObject", applicationSettingUpdateObject); tracingParameters.Add("cancellationToken", cancellationToken); @@ -2130,7 +2204,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/settings"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2239,8 +2314,18 @@ public Apps(LUISAuthoringClient client) } /// - /// Get the application publish settings. + /// Get the application publish settings including 'UseAllTrainingData'. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2256,21 +2341,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> GetPublishSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2278,6 +2353,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "GetPublishSettings", tracingParameters); @@ -2285,7 +2362,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publishsettings"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2388,8 +2466,18 @@ public Apps(LUISAuthoringClient client) } /// - /// Updates the application publish settings. + /// Updates the application publish settings including 'UseAllTrainingData'. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2417,12 +2505,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdatePublishSettingsWithHttpMessagesAsync(System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdatePublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (publishSettingUpdateObject == null) { throw new ValidationException(ValidationRules.CannotBeNull, "publishSettingUpdateObject"); @@ -2434,6 +2518,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("publishSettingUpdateObject", publishSettingUpdateObject); tracingParameters.Add("cancellationToken", cancellationToken); @@ -2442,7 +2528,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publishsettings"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2553,6 +2640,16 @@ public Apps(LUISAuthoringClient client) /// /// Returns the available endpoint deployment regions and URLs. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2568,21 +2665,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> ListEndpointsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListEndpointsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2590,6 +2677,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListEndpoints", tracingParameters); @@ -2597,7 +2686,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/endpoints"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2702,6 +2792,16 @@ public Apps(LUISAuthoringClient client) /// /// Gets all the available custom prebuilt domains for all cultures. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// Headers that will be added to request. /// @@ -2714,21 +2814,11 @@ public Apps(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2736,13 +2826,16 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListAvailableCustomPrebuiltDomains", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -2844,8 +2937,19 @@ public Apps(LUISAuthoringClient client) } /// - /// Adds a prebuilt domain along with its models as a new application. + /// Adds a prebuilt domain along with its intent and entity models as a new + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// A prebuilt domain create object containing the name and culture of the /// domain. @@ -2871,12 +2975,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (prebuiltDomainCreateObject == null) { throw new ValidationException(ValidationRules.CannotBeNull, "prebuiltDomainCreateObject"); @@ -2888,6 +2988,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("prebuiltDomainCreateObject", prebuiltDomainCreateObject); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "AddCustomPrebuiltDomain", tracingParameters); @@ -2895,7 +2997,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -3003,8 +3106,18 @@ public Apps(LUISAuthoringClient client) } /// - /// Gets all the available custom prebuilt domains for a specific culture. + /// Gets all the available prebuilt domains for a specific culture. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// Culture. /// @@ -3029,12 +3142,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (culture == null) { throw new ValidationException(ValidationRules.CannotBeNull, "culture"); @@ -3046,6 +3155,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("culture", culture); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "ListAvailableCustomPrebuiltDomainsForCulture", tracingParameters); @@ -3053,7 +3164,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains/{culture}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{culture}", System.Uri.EscapeDataString(culture)); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -3160,8 +3272,19 @@ public Apps(LUISAuthoringClient client) /// format /// /// - /// Packages published LUIS application as GZip. + /// Packages a published LUIS application as a GZip file to be used in the LUIS + /// container. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3189,11 +3312,11 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(System.Guid appId, System.Guid slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) + if (slotName == null) { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); + throw new ValidationException(ValidationRules.CannotBeNull, "slotName"); } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; @@ -3202,6 +3325,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("slotName", slotName); tracingParameters.Add("cancellationToken", cancellationToken); @@ -3210,9 +3335,10 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "package/{appId}/slot/{slotName}/gzip"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); - _url = _url.Replace("{slotName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(slotName, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{slotName}", System.Uri.EscapeDataString(slotName)); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -3305,8 +3431,19 @@ public Apps(LUISAuthoringClient client) /// format /// /// - /// Packages trained LUIS application as GZip. + /// Packages trained LUIS application as GZip file to be used in the LUIS + /// container. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3334,12 +3471,8 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -3351,6 +3484,8 @@ public Apps(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -3359,7 +3494,8 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "package/{appId}/versions/{versionId}/gzip"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs index 56dfc98f62ab7..915b7011a491b 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs @@ -28,29 +28,49 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// - /// A model containing Name, Description (optional), Culture, Usage Scenario - /// (optional), Domain (optional) and initial version ID (optional) of the - /// application. Default value for the version ID is 0.1. Note: the culture - /// cannot be changed after the app is created. + /// An application containing Name, Description (optional), Culture, Usage + /// Scenario (optional), Domain (optional) and initial version ID (optional) of + /// the application. Default value for the version ID is "0.1". Note: the + /// culture cannot be changed after the app is created. /// /// /// The cancellation token. /// - public static async Task AddAsync(this IApps operations, ApplicationCreateObject applicationCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, ApplicationCreateObject applicationCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddWithHttpMessagesAsync(applicationCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddWithHttpMessagesAsync(azureRegion, azureCloud, applicationCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Lists all of the user applications. + /// Lists all of the user's applications. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The number of entries to skip. Default value is 0. /// @@ -60,34 +80,45 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this IApps operations, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Imports an application to LUIS, the application's structure should be - /// included in the request body. + /// Imports an application to LUIS, the application's structure is included in + /// the request body. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// A LUIS application structure. /// /// /// The application name to create. If not specified, the application name will - /// be read from the imported object. + /// be read from the imported object. If the application name already exists, + /// an error is returned. /// /// /// The cancellation token. /// - public static async Task ImportAsync(this IApps operations, LuisApp luisApp, string appName = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ImportAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, LuisApp luisApp, string appName = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ImportWithHttpMessagesAsync(luisApp, appName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ImportWithHttpMessagesAsync(azureRegion, azureCloud, luisApp, appName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -99,12 +130,22 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The cancellation token. /// - public static async Task ListCortanaEndpointsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListCortanaEndpointsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCortanaEndpointsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCortanaEndpointsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -116,12 +157,22 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The cancellation token. /// - public static async Task> ListDomainsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListDomainsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListDomainsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListDomainsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -133,49 +184,81 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The cancellation token. /// - public static async Task> ListUsageScenariosAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListUsageScenariosAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListUsageScenariosWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListUsageScenariosWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the supported application cultures. + /// Gets a list of supported cultures. Cultures are equivalent to the written + /// language and locale. For example,"en-us" represents the U.S. variation of + /// English. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The cancellation token. /// - public static async Task> ListSupportedCulturesAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSupportedCulturesAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSupportedCulturesWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSupportedCulturesWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the query logs of the past month for the application. + /// Gets the logs of the past month's endpoint queries for the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// /// The cancellation token. /// - public static async Task DownloadQueryLogsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DownloadQueryLogsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.DownloadQueryLogsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.DownloadQueryLogsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -186,15 +269,25 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// /// The cancellation token. /// - public static async Task GetAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -206,6 +299,16 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -215,9 +318,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task UpdateAsync(this IApps operations, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, applicationUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -229,6 +332,16 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -238,9 +351,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task DeleteAsync(this IApps operations, System.Guid appId, bool? force = false, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, bool? force = false, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, force, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, force, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -252,6 +365,16 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -262,40 +385,60 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task PublishAsync(this IApps operations, System.Guid appId, ApplicationPublishObject applicationPublishObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PublishAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationPublishObject applicationPublishObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.PublishWithHttpMessagesAsync(appId, applicationPublishObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.PublishWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationPublishObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get the application settings. + /// Get the application settings including 'UseAllTrainingData'. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// /// The cancellation token. /// - public static async Task GetSettingsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetSettingsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the application settings. + /// Updates the application settings including 'UseAllTrainingData'. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -305,40 +448,60 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task UpdateSettingsAsync(this IApps operations, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateSettingsWithHttpMessagesAsync(appId, applicationSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get the application publish settings. + /// Get the application publish settings including 'UseAllTrainingData'. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// /// The cancellation token. /// - public static async Task GetPublishSettingsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPublishSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPublishSettingsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPublishSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the application publish settings. + /// Updates the application publish settings including 'UseAllTrainingData'. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -348,9 +511,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task UpdatePublishSettingsAsync(this IApps operations, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdatePublishSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePublishSettingsWithHttpMessagesAsync(appId, publishSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePublishSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, publishSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -362,15 +525,25 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// /// The cancellation token. /// - public static async Task> ListEndpointsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListEndpointsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListEndpointsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListEndpointsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -382,23 +555,44 @@ public static partial class AppsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The cancellation token. /// - public static async Task> ListAvailableCustomPrebuiltDomainsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAvailableCustomPrebuiltDomainsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a prebuilt domain along with its models as a new application. + /// Adds a prebuilt domain along with its intent and entity models as a new + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// A prebuilt domain create object containing the name and culture of the /// domain. @@ -406,29 +600,39 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task AddCustomPrebuiltDomainAsync(this IApps operations, PrebuiltDomainCreateObject prebuiltDomainCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCustomPrebuiltDomainAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, PrebuiltDomainCreateObject prebuiltDomainCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(azureRegion, azureCloud, prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets all the available custom prebuilt domains for a specific culture. + /// Gets all the available prebuilt domains for a specific culture. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// Culture. /// /// /// The cancellation token. /// - public static async Task> ListAvailableCustomPrebuiltDomainsForCultureAsync(this IApps operations, string culture, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAvailableCustomPrebuiltDomainsForCultureAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, string culture, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(culture, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(azureRegion, azureCloud, culture, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -439,11 +643,22 @@ public static partial class AppsExtensions /// format /// /// - /// Packages published LUIS application as GZip. + /// Packages a published LUIS application as a GZip file to be used in the LUIS + /// container. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -453,9 +668,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task PackagePublishedApplicationAsGzipAsync(this IApps operations, System.Guid appId, System.Guid slotName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PackagePublishedApplicationAsGzipAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.PackagePublishedApplicationAsGzipWithHttpMessagesAsync(appId, slotName, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.PackagePublishedApplicationAsGzipWithHttpMessagesAsync(azureRegion, azureCloud, appId, slotName, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -465,11 +680,22 @@ public static partial class AppsExtensions /// format /// /// - /// Packages trained LUIS application as GZip. + /// Packages trained LUIS application as GZip file to be used in the LUIS + /// container. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -479,9 +705,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task PackageTrainedApplicationAsGzipAsync(this IApps operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PackageTrainedApplicationAsGzipAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.PackageTrainedApplicationAsGzipWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.PackageTrainedApplicationAsGzipWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs index 304bbb57ac2ae..2e55d0e557e3f 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs @@ -51,16 +51,26 @@ public AzureAccounts(LUISAuthoringClient client) public LUISAuthoringClient Client { get; private set; } /// - /// apps - Assign a LUIS azure account to an application + /// apps - Assign a LUIS Azure account to an application /// /// - /// Assigns an azure account to the application. + /// Assigns an Azure account to the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// - /// The azure account information object. + /// The Azure account information object. /// /// /// Headers that will be added to request. @@ -74,21 +84,11 @@ public AzureAccounts(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> AssignToAppWithHttpMessagesAsync(System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AssignToAppWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (azureAccountInfoObject != null) { azureAccountInfoObject.Validate(); @@ -100,6 +100,8 @@ public AzureAccounts(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("azureAccountInfoObject", azureAccountInfoObject); tracingParameters.Add("cancellationToken", cancellationToken); @@ -108,7 +110,8 @@ public AzureAccounts(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -217,12 +220,22 @@ public AzureAccounts(LUISAuthoringClient client) } /// - /// apps - Get LUIS azure accounts assigned to the application + /// apps - Get LUIS Azure accounts assigned to the application /// /// - /// Gets the LUIS azure accounts assigned to the application for the user using + /// Gets the LUIS Azure accounts assigned to the application for the user using /// his ARM token. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -238,21 +251,11 @@ public AzureAccounts(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetAssignedWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetAssignedWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -260,6 +263,8 @@ public AzureAccounts(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "GetAssigned", tracingParameters); @@ -267,7 +272,8 @@ public AzureAccounts(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -370,16 +376,26 @@ public AzureAccounts(LUISAuthoringClient client) } /// - /// apps - Removes an assigned LUIS azure account from an application + /// apps - Removes an assigned LUIS Azure account from an application /// /// - /// Removes assigned azure account from the application. + /// Removes assigned Azure account from the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// - /// The azure account information object. + /// The Azure account information object. /// /// /// Headers that will be added to request. @@ -393,21 +409,11 @@ public AzureAccounts(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> RemoveFromAppWithHttpMessagesAsync(System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> RemoveFromAppWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (azureAccountInfoObject != null) { azureAccountInfoObject.Validate(); @@ -419,6 +425,8 @@ public AzureAccounts(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("azureAccountInfoObject", azureAccountInfoObject); tracingParameters.Add("cancellationToken", cancellationToken); @@ -427,7 +435,8 @@ public AzureAccounts(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -536,11 +545,21 @@ public AzureAccounts(LUISAuthoringClient client) } /// - /// user - Get LUIS azure accounts + /// user - Get LUIS Azure accounts /// /// - /// Gets the LUIS azure accounts for the user using his ARM token. + /// Gets the LUIS Azure accounts for the user using his ARM token. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// Headers that will be added to request. /// @@ -553,21 +572,11 @@ public AzureAccounts(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> GetUserLUISAccountsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListUserLUISAccountsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -575,13 +584,16 @@ public AzureAccounts(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetUserLUISAccounts", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListUserLUISAccounts", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "azureaccounts"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs index df0a34a2e1dea..f73fec068e66f 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs @@ -22,96 +22,136 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public static partial class AzureAccountsExtensions { /// - /// apps - Assign a LUIS azure account to an application + /// apps - Assign a LUIS Azure account to an application /// /// - /// Assigns an azure account to the application. + /// Assigns an Azure account to the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// - /// The azure account information object. + /// The Azure account information object. /// /// /// The cancellation token. /// - public static async Task AssignToAppAsync(this IAzureAccounts operations, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AssignToAppAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AssignToAppWithHttpMessagesAsync(appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AssignToAppWithHttpMessagesAsync(azureRegion, azureCloud, appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// apps - Get LUIS azure accounts assigned to the application + /// apps - Get LUIS Azure accounts assigned to the application /// /// - /// Gets the LUIS azure accounts assigned to the application for the user using + /// Gets the LUIS Azure accounts assigned to the application for the user using /// his ARM token. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// /// The cancellation token. /// - public static async Task> GetAssignedAsync(this IAzureAccounts operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> GetAssignedAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetAssignedWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetAssignedWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// apps - Removes an assigned LUIS azure account from an application + /// apps - Removes an assigned LUIS Azure account from an application /// /// - /// Removes assigned azure account from the application. + /// Removes assigned Azure account from the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// - /// The azure account information object. + /// The Azure account information object. /// /// /// The cancellation token. /// - public static async Task RemoveFromAppAsync(this IAzureAccounts operations, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RemoveFromAppAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RemoveFromAppWithHttpMessagesAsync(appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.RemoveFromAppWithHttpMessagesAsync(azureRegion, azureCloud, appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// user - Get LUIS azure accounts + /// user - Get LUIS Azure accounts /// /// - /// Gets the LUIS azure accounts for the user using his ARM token. + /// Gets the LUIS Azure accounts for the user using his ARM token. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The cancellation token. /// - public static async Task> GetUserLUISAccountsAsync(this IAzureAccounts operations, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListUserLUISAccountsAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetUserLUISAccountsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListUserLUISAccountsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs index bd8987bbc6be5..33e64fab30213 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs @@ -51,8 +51,18 @@ public Examples(LUISAuthoringClient client) public LUISAuthoringClient Client { get; private set; } /// - /// Adds a labeled example to the application. + /// Adds a labeled example utterance in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -60,7 +70,7 @@ public Examples(LUISAuthoringClient client) /// The version ID. /// /// - /// An example label with the expected intent and entities. + /// A labeled example utterance with the expected intent and entities. /// /// /// Headers that will be added to request. @@ -83,12 +93,8 @@ public Examples(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddWithHttpMessagesAsync(System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -104,6 +110,8 @@ public Examples(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("exampleLabelObject", exampleLabelObject); @@ -113,7 +121,8 @@ public Examples(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/example"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -223,8 +232,18 @@ public Examples(LUISAuthoringClient client) } /// - /// Adds a batch of labeled examples to the application. + /// Adds a batch of labeled example utterances to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -232,7 +251,7 @@ public Examples(LUISAuthoringClient client) /// The version ID. /// /// - /// Array of examples. + /// Array of example utterances. /// /// /// Headers that will be added to request. @@ -255,12 +274,8 @@ public Examples(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> BatchWithHttpMessagesAsync(System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> BatchWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -276,6 +291,8 @@ public Examples(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("exampleLabelObjectArray", exampleLabelObjectArray); @@ -285,7 +302,8 @@ public Examples(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -413,8 +431,19 @@ public Examples(LUISAuthoringClient client) } /// - /// Returns examples to be reviewed. + /// Returns example utterances to be reviewed from a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -448,12 +477,8 @@ public Examples(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -477,6 +502,8 @@ public Examples(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -487,7 +514,8 @@ public Examples(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -604,8 +632,19 @@ public Examples(LUISAuthoringClient client) } /// - /// Deletes the labeled example with the specified ID. + /// Deletes the labeled example utterances with the specified ID from a version + /// of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -636,12 +675,8 @@ public Examples(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -653,6 +688,8 @@ public Examples(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("exampleId", exampleId); @@ -662,7 +699,8 @@ public Examples(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples/{exampleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{exampleId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(exampleId, Client.SerializationSettings).Trim('"'))); diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs index db740839ca1c1..850a1d1083649 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs @@ -22,11 +22,21 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public static partial class ExamplesExtensions { /// - /// Adds a labeled example to the application. + /// Adds a labeled example utterance in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -34,25 +44,35 @@ public static partial class ExamplesExtensions /// The version ID. /// /// - /// An example label with the expected intent and entities. + /// A labeled example utterance with the expected intent and entities. /// /// /// The cancellation token. /// - public static async Task AddAsync(this IExamples operations, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddWithHttpMessagesAsync(appId, versionId, exampleLabelObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleLabelObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a batch of labeled examples to the application. + /// Adds a batch of labeled example utterances to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -60,25 +80,36 @@ public static partial class ExamplesExtensions /// The version ID. /// /// - /// Array of examples. + /// Array of example utterances. /// /// /// The cancellation token. /// - public static async Task> BatchAsync(this IExamples operations, System.Guid appId, string versionId, IList exampleLabelObjectArray, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> BatchAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList exampleLabelObjectArray, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BatchWithHttpMessagesAsync(appId, versionId, exampleLabelObjectArray, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BatchWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleLabelObjectArray, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Returns examples to be reviewed. + /// Returns example utterances to be reviewed from a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -94,20 +125,31 @@ public static partial class ExamplesExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this IExamples operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes the labeled example with the specified ID. + /// Deletes the labeled example utterances with the specified ID from a version + /// of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -120,9 +162,9 @@ public static partial class ExamplesExtensions /// /// The cancellation token. /// - public static async Task DeleteAsync(this IExamples operations, System.Guid appId, string versionId, int exampleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int exampleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, versionId, exampleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs index 3fb962522fba7..1081068760e3e 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs @@ -51,8 +51,220 @@ public Features(LUISAuthoringClient client) public LUISAuthoringClient Client { get; private set; } /// - /// Creates a new phraselist feature. + /// [DEPRECATED NOTICE: This operation will soon be removed] Gets all the + /// pattern features. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + [System.Obsolete("This operation is deprecated. Please do not use it any longer.")] + public async Task>> ListApplicationVersionPatternFeaturesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (versionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); + } + if (skip < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); + } + if (take > 500) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500); + } + if (take < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); + tracingParameters.Add("appId", appId); + tracingParameters.Add("versionId", versionId); + tracingParameters.Add("skip", skip); + tracingParameters.Add("take", take); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListApplicationVersionPatternFeatures", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri; + var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patterns"; + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); + _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); + List _queryParameters = new List(); + if (skip != null) + { + _queryParameters.Add(string.Format("skip={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skip, Client.SerializationSettings).Trim('"')))); + } + if (take != null) + { + _queryParameters.Add(string.Format("take={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(take, Client.SerializationSettings).Trim('"')))); + } + if (_queryParameters.Count > 0) + { + _url += "?" + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + var _result = new HttpOperationResponse>(); + _result.Request = _httpRequest; + _result.Response = _httpResponse; + // Deserialize Response + if ((int)_statusCode == 200) + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings); + } + catch (JsonException ex) + { + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw new SerializationException("Unable to deserialize the response.", _responseContent, ex); + } + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Creates a new phraselist feature in a version of the application. + /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -84,12 +296,8 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddPhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -105,6 +313,8 @@ public Features(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("phraselistCreateObject", phraselistCreateObject); @@ -114,7 +324,8 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -224,8 +435,18 @@ public Features(LUISAuthoringClient client) } /// - /// Gets all the phraselist features. + /// Gets all the phraselist features in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -259,12 +480,8 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListPhraseListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPhraseListsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -288,6 +505,8 @@ public Features(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -298,7 +517,8 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -415,8 +635,19 @@ public Features(LUISAuthoringClient client) } /// - /// Gets all the extraction features for the specified application version. + /// Gets all the extraction phraselist and pattern features in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -450,12 +681,8 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -479,6 +706,8 @@ public Features(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -489,7 +718,8 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/features"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -606,8 +836,18 @@ public Features(LUISAuthoringClient client) } /// - /// Gets phraselist feature info. + /// Gets phraselist feature info in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -638,12 +878,8 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -655,6 +891,8 @@ public Features(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("phraselistId", phraselistId); @@ -664,7 +902,8 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{phraselistId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(phraselistId, Client.SerializationSettings).Trim('"'))); @@ -769,8 +1008,19 @@ public Features(LUISAuthoringClient client) } /// - /// Updates the phrases, the state and the name of the phraselist feature. + /// Updates the phrases, the state and the name of the phraselist feature in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -806,12 +1056,8 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdatePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdatePhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -823,6 +1069,8 @@ public Features(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("phraselistId", phraselistId); @@ -833,7 +1081,8 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{phraselistId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(phraselistId, Client.SerializationSettings).Trim('"'))); @@ -944,8 +1193,18 @@ public Features(LUISAuthoringClient client) } /// - /// Deletes a phraselist feature. + /// Deletes a phraselist feature from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -976,12 +1235,8 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -993,6 +1248,8 @@ public Features(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("phraselistId", phraselistId); @@ -1002,7 +1259,8 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{phraselistId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(phraselistId, Client.SerializationSettings).Trim('"'))); diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/FeaturesExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/FeaturesExtensions.cs index 2bbd6cf48f161..d7025879124f8 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/FeaturesExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/FeaturesExtensions.cs @@ -22,11 +22,62 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public static partial class FeaturesExtensions { /// - /// Creates a new phraselist feature. + /// [DEPRECATED NOTICE: This operation will soon be removed] Gets all the + /// pattern features. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default is 100. + /// + /// + /// The cancellation token. + /// + [System.Obsolete("This operation is deprecated. Please do not use it any longer.")] + public static async Task> ListApplicationVersionPatternFeaturesAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListApplicationVersionPatternFeaturesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a new phraselist feature in a version of the application. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -40,20 +91,30 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task AddPhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddPhraseListAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddPhraseListWithHttpMessagesAsync(appId, versionId, phraselistCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddPhraseListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, phraselistCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets all the phraselist features. + /// Gets all the phraselist features in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -69,20 +130,31 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task> ListPhraseListsAsync(this IFeatures operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPhraseListsAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPhraseListsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPhraseListsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets all the extraction features for the specified application version. + /// Gets all the extraction phraselist and pattern features in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -98,20 +170,30 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task ListAsync(this IFeatures operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets phraselist feature info. + /// Gets phraselist feature info in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -124,20 +206,31 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task GetPhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPhraseListAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPhraseListWithHttpMessagesAsync(appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPhraseListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the phrases, the state and the name of the phraselist feature. + /// Updates the phrases, the state and the name of the phraselist feature in a + /// version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -155,20 +248,30 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task UpdatePhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdatePhraseListAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePhraseListWithHttpMessagesAsync(appId, versionId, phraselistId, phraselistUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePhraseListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, phraselistId, phraselistUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a phraselist feature. + /// Deletes a phraselist feature from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -181,9 +284,9 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task DeletePhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePhraseListAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePhraseListWithHttpMessagesAsync(appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePhraseListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IApps.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IApps.cs index 61e0a3f755310..0921e778f57d4 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IApps.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IApps.cs @@ -26,11 +26,23 @@ public partial interface IApps /// /// Creates a new LUIS app. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// - /// A model containing Name, Description (optional), Culture, Usage - /// Scenario (optional), Domain (optional) and initial version ID + /// An application containing Name, Description (optional), Culture, + /// Usage Scenario (optional), Domain (optional) and initial version ID /// (optional) of the application. Default value for the version ID is - /// 0.1. Note: the culture cannot be changed after the app is created. + /// "0.1". Note: the culture cannot be changed after the app is + /// created. /// /// /// The headers that will be added to request. @@ -47,10 +59,21 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> AddWithHttpMessagesAsync(ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Lists all of the user applications. + /// Lists all of the user's applications. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The number of entries to skip. Default value is 0. /// @@ -70,20 +93,29 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListWithHttpMessagesAsync(int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Imports an application to LUIS, the application's structure should - /// be included in the request body. + /// Imports an application to LUIS, the application's structure is + /// included in the request body. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// A LUIS application structure. /// /// /// The application name to create. If not specified, the application - /// name will be read from the imported object. + /// name will be read from the imported object. If the application name + /// already exists, an error is returned. /// /// /// The headers that will be added to request. @@ -100,10 +132,21 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> ImportWithHttpMessagesAsync(LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the endpoint URLs for the prebuilt Cortana applications. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The headers that will be added to request. /// @@ -116,13 +159,21 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> ListCortanaEndpointsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListCortanaEndpointsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the available application domains. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The headers that will be added to request. /// @@ -135,13 +186,21 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListDomainsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the application available usage scenarios. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The headers that will be added to request. /// @@ -154,13 +213,23 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListUsageScenariosWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListUsageScenariosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the supported application cultures. + /// Gets a list of supported cultures. Cultures are equivalent to the + /// written language and locale. For example,"en-us" represents the + /// U.S. variation of English. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The headers that will be added to request. /// @@ -173,13 +242,22 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListSupportedCulturesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListSupportedCulturesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the query logs of the past month for the application. + /// Gets the logs of the past month's endpoint queries for the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -195,13 +273,21 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> DownloadQueryLogsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DownloadQueryLogsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the application info. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -217,13 +303,21 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> GetWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the name or description of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -245,10 +339,21 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes an application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -267,13 +372,21 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> DeleteWithHttpMessagesAsync(System.Guid appId, bool? force = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, bool? force = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Publishes a specific version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -296,10 +409,21 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> PublishWithHttpMessagesAsync(System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PublishWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the application settings. + /// Get the application settings including 'UseAllTrainingData'. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -315,13 +439,21 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> GetSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the application settings. + /// Updates the application settings including 'UseAllTrainingData'. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -343,10 +475,22 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> UpdateSettingsWithHttpMessagesAsync(System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the application publish settings. + /// Get the application publish settings including + /// 'UseAllTrainingData'. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -362,13 +506,22 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> GetPublishSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the application publish settings. + /// Updates the application publish settings including + /// 'UseAllTrainingData'. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -390,10 +543,21 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> UpdatePublishSettingsWithHttpMessagesAsync(System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Returns the available endpoint deployment regions and URLs. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -409,13 +573,21 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListEndpointsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListEndpointsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets all the available custom prebuilt domains for all cultures. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The headers that will be added to request. /// @@ -428,13 +600,22 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a prebuilt domain along with its models as a new application. + /// Adds a prebuilt domain along with its intent and entity models as a + /// new application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// A prebuilt domain create object containing the name and culture of /// the domain. @@ -454,11 +635,21 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all the available custom prebuilt domains for a specific - /// culture. + /// Gets all the available prebuilt domains for a specific culture. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// Culture. /// @@ -477,14 +668,26 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// package - Gets published LUIS application package in binary stream /// GZip format /// /// - /// Packages published LUIS application as GZip. + /// Packages a published LUIS application as a GZip file to be used in + /// the LUIS container. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -506,14 +709,26 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(System.Guid appId, System.Guid slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// package - Gets trained LUIS application package in binary stream /// GZip format /// /// - /// Packages trained LUIS application as GZip. + /// Packages trained LUIS application as GZip file to be used in the + /// LUIS container. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -535,6 +750,6 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IAzureAccounts.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IAzureAccounts.cs index f2b6780f42696..70cd8ead0b521 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IAzureAccounts.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IAzureAccounts.cs @@ -23,16 +23,27 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public partial interface IAzureAccounts { /// - /// apps - Assign a LUIS azure account to an application + /// apps - Assign a LUIS Azure account to an application /// /// - /// Assigns an azure account to the application. + /// Assigns an Azure account to the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// /// - /// The azure account information object. + /// The Azure account information object. /// /// /// The headers that will be added to request. @@ -46,17 +57,25 @@ public partial interface IAzureAccounts /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> AssignToAppWithHttpMessagesAsync(System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AssignToAppWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// apps - Get LUIS azure accounts assigned to the application + /// apps - Get LUIS Azure accounts assigned to the application /// /// - /// Gets the LUIS azure accounts assigned to the application for the + /// Gets the LUIS Azure accounts assigned to the application for the /// user using his ARM token. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -72,21 +91,29 @@ public partial interface IAzureAccounts /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> GetAssignedWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> GetAssignedWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// apps - Removes an assigned LUIS azure account from an application + /// apps - Removes an assigned LUIS Azure account from an application /// /// - /// Removes assigned azure account from the application. + /// Removes assigned Azure account from the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// /// - /// The azure account information object. + /// The Azure account information object. /// /// /// The headers that will be added to request. @@ -100,16 +127,24 @@ public partial interface IAzureAccounts /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> RemoveFromAppWithHttpMessagesAsync(System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> RemoveFromAppWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// user - Get LUIS azure accounts + /// user - Get LUIS Azure accounts /// /// - /// Gets the LUIS azure accounts for the user using his ARM token. + /// Gets the LUIS Azure accounts for the user using his ARM token. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The headers that will be added to request. /// @@ -122,9 +157,6 @@ public partial interface IAzureAccounts /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> GetUserLUISAccountsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListUserLUISAccountsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IExamples.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IExamples.cs index 7f26755ba8df8..913a99262c2d0 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IExamples.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IExamples.cs @@ -23,8 +23,19 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public partial interface IExamples { /// - /// Adds a labeled example to the application. + /// Adds a labeled example utterance in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -32,7 +43,7 @@ public partial interface IExamples /// The version ID. /// /// - /// An example label with the expected intent and entities. + /// A labeled example utterance with the expected intent and entities. /// /// /// The headers that will be added to request. @@ -49,10 +60,22 @@ public partial interface IExamples /// /// Thrown when a required parameter is null /// - Task> AddWithHttpMessagesAsync(System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a batch of labeled examples to the application. + /// Adds a batch of labeled example utterances to a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -60,7 +83,7 @@ public partial interface IExamples /// The version ID. /// /// - /// Array of examples. + /// Array of example utterances. /// /// /// The headers that will be added to request. @@ -77,10 +100,22 @@ public partial interface IExamples /// /// Thrown when a required parameter is null /// - Task>> BatchWithHttpMessagesAsync(System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> BatchWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Returns examples to be reviewed. + /// Returns example utterances to be reviewed from a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -109,10 +144,22 @@ public partial interface IExamples /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the labeled example with the specified ID. + /// Deletes the labeled example utterances with the specified ID from a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -137,6 +184,6 @@ public partial interface IExamples /// /// Thrown when a required parameter is null /// - Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IFeatures.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IFeatures.cs index 387cd35a9e392..c625b6a076793 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IFeatures.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IFeatures.cs @@ -23,8 +23,64 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public partial interface IFeatures { /// - /// Creates a new phraselist feature. + /// [DEPRECATED NOTICE: This operation will soon be removed] Gets all + /// the pattern features. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// + /// + /// The application ID. + /// + /// + /// The version ID. + /// + /// + /// The number of entries to skip. Default value is 0. + /// + /// + /// The number of entries to return. Maximum page size is 500. Default + /// is 100. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + [System.Obsolete("This operation is deprecated. Please do not use it any longer.")] + Task>> ListApplicationVersionPatternFeaturesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a new phraselist feature in a version of the application. + /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -51,10 +107,21 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> AddPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddPhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all the phraselist features. + /// Gets all the phraselist features in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -83,11 +150,22 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task>> ListPhraseListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPhraseListsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all the extraction features for the specified application - /// version. + /// Gets all the extraction phraselist and pattern features in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -116,10 +194,21 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets phraselist feature info. + /// Gets phraselist feature info in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -144,11 +233,22 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> GetPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the phrases, the state and the name of the phraselist - /// feature. + /// feature in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -178,10 +278,21 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> UpdatePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a phraselist feature. + /// Deletes a phraselist feature from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -206,6 +317,6 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> DeletePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ILUISAuthoringClient.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ILUISAuthoringClient.cs index 90be37394c64d..fec8c6fa30e5e 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ILUISAuthoringClient.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ILUISAuthoringClient.cs @@ -32,12 +32,6 @@ public partial interface ILUISAuthoringClient : System.IDisposable /// JsonSerializerSettings DeserializationSettings { get; } - /// - /// Supported Cognitive Services endpoints (protocol and hostname, for - /// example: https://westus.api.cognitive.microsoft.com). - /// - string Endpoint { get; set; } - /// /// Subscription credentials which uniquely identify client /// subscription. diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IModel.cs index 06d3bee6393ae..5f1e4c7f20c0a 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IModel.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IModel.cs @@ -23,8 +23,19 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public partial interface IModel { /// - /// Adds an intent classifier to the application. + /// Adds an intent to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -32,7 +43,7 @@ public partial interface IModel /// The version ID. /// /// - /// A model object containing the name of the new intent classifier. + /// A model object containing the name of the new intent. /// /// /// The headers that will be added to request. @@ -49,10 +60,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddIntentWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the intent models. + /// Gets information about the intent models in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -81,10 +104,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListIntentsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds an entity extractor to the application. + /// Adds a simple entity extractor to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -92,7 +126,8 @@ public partial interface IModel /// The version ID. /// /// - /// A model object containing the name for the new entity extractor. + /// A model object containing the name for the new simple entity + /// extractor. /// /// /// The headers that will be added to request. @@ -109,10 +144,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddEntityWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the entity models. + /// Gets information about all the simple entity models in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -141,10 +188,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a hierarchical entity extractor to the application version. + /// Adds a hierarchical entity extractor to a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -170,10 +229,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the hierarchical entity models. + /// Gets information about all the hierarchical entity models in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -202,10 +273,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a composite entity extractor to the application. + /// Adds a composite entity extractor to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -231,10 +313,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the composite entity models. + /// Gets information about all the composite entity models in a version + /// of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -263,10 +357,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCompositeEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCompositeEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the closedlist models. + /// Gets information about all the list entity models in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -295,10 +401,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListClosedListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListClosedListsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a closed list model to the application. + /// Adds a list entity model to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -306,8 +423,8 @@ public partial interface IModel /// The version ID. /// /// - /// A model containing the name and words for the new closed list - /// entity extractor. + /// A model containing the name and words for the new list entity + /// extractor. /// /// /// The headers that will be added to request. @@ -324,10 +441,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a list of prebuilt entity extractors to the application. + /// Adds a list of prebuilt entities to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -352,10 +480,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> AddPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> AddPrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the prebuilt entity models. + /// Gets information about all the prebuilt entities in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -384,11 +524,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListPrebuiltsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPrebuiltsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all the available prebuilt entity extractors for the + /// Gets all the available prebuilt entities in a version of the /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -410,10 +561,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the application version models. + /// Gets information about all the intent and entity models in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -442,10 +605,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListModelsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListModelsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the utterances for the given model in the given app version. + /// Gets the example utterances for the given intent or entity model in + /// a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -477,10 +652,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ExamplesMethodWithHttpMessagesAsync(System.Guid appId, string versionId, string modelId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ExamplesMethodWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string modelId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the intent model. + /// Gets information about the intent model in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -505,10 +692,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the name of an intent classifier. + /// Updates the name of an intent in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -519,7 +717,7 @@ public partial interface IModel /// The intent classifier ID. /// /// - /// A model object containing the new intent classifier name. + /// A model object containing the new intent name. /// /// /// The headers that will be added to request. @@ -536,10 +734,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes an intent classifier from the application. + /// Deletes an intent from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -550,8 +759,9 @@ public partial interface IModel /// The intent classifier ID. /// /// - /// Also delete the intent's utterances (true). Or move the utterances - /// to the None intent (false - the default value). + /// If true, deletes the intent's example utterances. If false, moves + /// the example utterances to the None intent. The default value is + /// false. /// /// /// The headers that will be added to request. @@ -568,10 +778,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the entity model. + /// Gets information about an entity model in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -596,10 +818,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the name of an entity extractor. + /// Updates the name of an entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -627,10 +860,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes an entity extractor from the application. + /// Deletes an entity from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -655,10 +899,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the hierarchical entity model. + /// Gets information about a hierarchical entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -683,10 +939,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the name and children of a hierarchical entity model. + /// Updates the name and children of a hierarchical entity model in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -714,11 +982,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a hierarchical entity extractor from the application - /// version. + /// Deletes a hierarchical entity from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -743,10 +1021,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the composite entity model. + /// Gets information about a composite entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -771,10 +1061,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the composite entity extractor. + /// Updates a composite entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -803,10 +1104,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a composite entity extractor from the application. + /// Deletes a composite entity from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -831,10 +1143,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information of a closed list model. + /// Gets information about a list entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -842,7 +1166,7 @@ public partial interface IModel /// The version ID. /// /// - /// The closed list model ID. + /// The list model ID. /// /// /// The headers that will be added to request. @@ -859,10 +1183,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the closed list model. + /// Updates the list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -870,10 +1205,10 @@ public partial interface IModel /// The version ID. /// /// - /// The closed list model ID. + /// The list model ID. /// /// - /// The new entity name and words list. + /// The new list entity name and words list. /// /// /// The headers that will be added to request. @@ -890,10 +1225,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a batch of sublists to an existing closedlist. + /// Adds a batch of sublists to an existing list entity in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -901,7 +1248,7 @@ public partial interface IModel /// The version ID. /// /// - /// The closed list model ID. + /// The list entity model ID. /// /// /// A words list batch. @@ -921,10 +1268,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> PatchClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PatchClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a closed list model from the application. + /// Deletes a list entity model from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -932,7 +1290,7 @@ public partial interface IModel /// The version ID. /// /// - /// The closed list model ID. + /// The list entity model ID. /// /// /// The headers that will be added to request. @@ -949,10 +1307,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the prebuilt entity model. + /// Gets information about a prebuilt entity model in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -977,10 +1347,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a prebuilt entity extractor from the application. + /// Deletes a prebuilt entity extractor from a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1005,10 +1387,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeletePrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a sublist of a specific closed list model. + /// Deletes a sublist of a specific list entity model from a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1016,7 +1410,7 @@ public partial interface IModel /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// The sublist ID. @@ -1036,10 +1430,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, int subListId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteSubListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates one of the closed list's sublists. + /// Updates one of the list entity's sublists in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1047,7 +1453,7 @@ public partial interface IModel /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// The sublist ID. @@ -1071,11 +1477,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateSubListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Suggests examples that would improve the accuracy of the intent - /// model. + /// Suggests example utterances that would improve the accuracy of the + /// intent model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1104,11 +1521,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetIntentSuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListIntentSuggestionsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get suggestion examples that would improve the accuracy of the - /// entity model. + /// Get suggested example utterances that would improve the accuracy of + /// the entity model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1137,10 +1565,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetEntitySuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListEntitySuggestionsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a list to an existing closed list. + /// Adds a sublist to an existing list entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1148,7 +1588,7 @@ public partial interface IModel /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// Words list. @@ -1168,11 +1608,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddSubListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a customizable prebuilt domain along with all of its models to - /// this application. + /// Adds a customizable prebuilt domain along with all of its intent + /// and entity models in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1197,10 +1648,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a custom prebuilt intent model to the application. + /// Adds a customizable prebuilt intent model to a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1208,8 +1671,8 @@ public partial interface IModel /// The version ID. /// /// - /// A model object containing the name of the custom prebuilt intent - /// and the name of the domain to which this model belongs. + /// A model object containing the name of the customizable prebuilt + /// intent and the name of the domain to which this model belongs. /// /// /// The headers that will be added to request. @@ -1226,10 +1689,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets custom prebuilt intents information of this application. + /// Gets information about customizable prebuilt intents added to a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1251,10 +1726,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a custom prebuilt entity model to the application. + /// Adds a prebuilt entity model to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1262,8 +1748,8 @@ public partial interface IModel /// The version ID. /// /// - /// A model object containing the name of the custom prebuilt entity - /// and the name of the domain to which this model belongs. + /// A model object containing the name of the prebuilt entity and the + /// name of the domain to which this model belongs. /// /// /// The headers that will be added to request. @@ -1280,10 +1766,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all custom prebuilt entities information of this application. + /// Gets all prebuilt entities used in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1305,10 +1802,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets all custom prebuilt models information of this application. + /// Gets all prebuilt intent and entity model information used in a + /// version of this application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1330,10 +1839,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a prebuilt domain's models from the application. + /// Deletes a prebuilt domain's models in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1358,10 +1878,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the hierarchical entity child model. + /// Gets information about the child's model contained in an + /// hierarchical entity child model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1389,10 +1921,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Renames a single child in an existing hierarchical entity model. + /// Renames a single child in an existing hierarchical entity model in + /// a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1423,10 +1967,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a hierarchical entity extractor child from the application. + /// Deletes a hierarchical entity extractor child in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1454,10 +2010,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a single child in an existing hierarchical entity model. + /// Creates a single child in an existing hierarchical entity model in + /// a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1486,10 +2054,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Creates a single child in an existing composite entity model. + /// Creates a single child in an existing composite entity model in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1518,10 +2098,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCompositeEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a composite entity extractor child from the application. + /// Deletes a composite entity extractor child from a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1549,10 +2141,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCompositeEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the regex entity models. + /// Gets information about the regular expression entity models in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1581,10 +2185,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetRegexEntityInfosWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListRegexEntityInfosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a regex entity model to the application version. + /// Adds a regular expression entity model to a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1593,7 +2209,7 @@ public partial interface IModel /// /// /// A model object containing the name and regex pattern for the new - /// regex entity extractor. + /// regular expression entity extractor. /// /// /// The headers that will be added to request. @@ -1610,10 +2226,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get information about the Pattern.Any entity models. + /// Get information about the Pattern.Any entity models in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1642,10 +2270,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetPatternAnyEntityInfosWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPatternAnyEntityInfosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a pattern.any entity extractor to the application. + /// Adds a pattern.any entity extractor to a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1671,10 +2311,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreatePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreatePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get All Entity Roles for a given entity + /// Get all roles for an entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1699,10 +2350,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create an entity role for an entity in the application. + /// Create an entity role in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1730,10 +2392,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get All Entity Roles for a given entity + /// Get a prebuilt entity's roles in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1758,10 +2431,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetPrebuiltEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPrebuiltEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create an entity role for an entity in the application. + /// Create a role for a prebuilt entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1789,10 +2474,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreatePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreatePrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get All Entity Roles for a given entity + /// Get all roles for a list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1817,10 +2513,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetClosedListEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListClosedListEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create an entity role for an entity in the application. + /// Create a role for a list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1848,10 +2555,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get All Entity Roles for a given entity + /// Get all roles for a regular expression entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1876,10 +2595,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetRegexEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListRegexEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create an entity role for an entity in the application. + /// Create a role for an regular expression entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1907,10 +2638,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get All Entity Roles for a given entity + /// Get all roles for a composite entity in a version of the + /// application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1935,10 +2678,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetCompositeEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCompositeEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create an entity role for an entity in the application. + /// Create a role for a composite entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1966,10 +2721,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get All Entity Roles for a given entity + /// Get all roles for a Pattern.any entity in a version of the + /// application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -1994,10 +2761,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetPatternAnyEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPatternAnyEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create an entity role for an entity in the application. + /// Create a role for an Pattern.any entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2025,10 +2804,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreatePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreatePatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get All Entity Roles for a given entity + /// Get all roles for a hierarchical entity in a version of the + /// application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2053,10 +2844,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetHierarchicalEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListHierarchicalEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create an entity role for an entity in the application. + /// Create a role for an hierarchical entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2084,10 +2887,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get All Entity Roles for a given entity + /// Get all roles for a prebuilt entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2112,10 +2926,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetCustomPrebuiltEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Create an entity role for an entity in the application. + /// Create a role for a prebuilt entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2143,10 +2969,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the explicit list of the pattern.any entity. + /// Get the explicit (exception) list of the pattern.any entity in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2171,10 +3009,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetExplicitListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> GetExplicitListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Add a new item to the explicit list for the Pattern.Any entity. + /// Add a new exception to the explicit list for the Pattern.Any entity + /// in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2202,10 +3052,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information of a regex entity model. + /// Gets information about a regular expression entity in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2213,7 +3075,7 @@ public partial interface IModel /// The version ID. /// /// - /// The regex entity model ID. + /// The regular expression entity model ID. /// /// /// The headers that will be added to request. @@ -2230,10 +3092,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetRegexEntityEntityInfoWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetRegexEntityEntityInfoWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the regex entity model . + /// Updates the regular expression entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2241,7 +3115,7 @@ public partial interface IModel /// The version ID. /// /// - /// The regex entity extractor ID. + /// The regular expression entity extractor ID. /// /// /// An object containing the new entity name and regex pattern. @@ -2261,10 +3135,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a regex entity model from the application. + /// Deletes a regular expression entity from a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2272,7 +3158,7 @@ public partial interface IModel /// The version ID. /// /// - /// The regex entity extractor ID. + /// The regular expression entity extractor ID. /// /// /// The headers that will be added to request. @@ -2289,10 +3175,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets information about the application version's Pattern.Any model. + /// Gets information about the Pattern.Any model in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2317,10 +3215,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetPatternAnyEntityInfoWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPatternAnyEntityInfoWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the name and explicit list of a Pattern.Any entity model. + /// Updates the name and explicit (exception) list of a Pattern.Any + /// entity model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2348,10 +3258,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdatePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes a Pattern.Any entity extractor from the application. + /// Deletes a Pattern.Any entity extractor from a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2376,10 +3298,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeletePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get one entity role for a given entity + /// Get one role for a given entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2407,10 +3340,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update an entity role for a given entity + /// Update a role for a given entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2441,10 +3385,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete an entity role. + /// Delete an entity role in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2472,10 +3427,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get one entity role for a given entity + /// Get one role for a given prebuilt entity in a version of the + /// application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2503,10 +3470,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update an entity role for a given entity + /// Update a role for a given prebuilt entity in a version of the + /// application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2537,10 +3516,21 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdatePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete an entity role. + /// Delete a role in a prebuilt entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2568,10 +3558,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeletePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get one entity role for a given entity + /// Get one role for a given list entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2599,10 +3601,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update an entity role for a given entity + /// Update a role for a given list entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2633,10 +3647,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete an entity role. + /// Delete a role for a given list entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2664,10 +3690,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get one entity role for a given entity + /// Get one role for a given regular expression entity in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2695,10 +3733,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update an entity role for a given entity + /// Update a role for a given regular expression entity in a version of + /// the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2729,10 +3779,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete an entity role. + /// Delete a role for a given regular expression in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2760,10 +3822,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get one entity role for a given entity + /// Get one role for a given composite entity in a version of the + /// application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2791,10 +3865,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update an entity role for a given entity + /// Update a role for a given composite entity in a version of the + /// application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2825,10 +3911,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete an entity role. + /// Delete a role for a given composite entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2856,10 +3954,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get one entity role for a given entity + /// Get one role for a given Pattern.any entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2887,10 +3997,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetPatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update an entity role for a given entity + /// Update a role for a given Pattern.any entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2921,10 +4043,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdatePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete an entity role. + /// Delete a role for a given Pattern.any entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2952,10 +4086,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeletePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get one entity role for a given entity + /// Get one role for a given hierarchical entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -2983,10 +4129,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update an entity role for a given entity + /// Update a role for a given hierarchical entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -3017,10 +4175,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete an entity role. + /// Delete a role for a given hierarchical role in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -3048,10 +4218,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get one entity role for a given entity + /// Get one role for a given prebuilt entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -3079,10 +4261,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetCustomEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetCustomEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Update an entity role for a given entity + /// Update a role for a given prebuilt entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -3113,10 +4307,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete an entity role. + /// Delete a role for a given prebuilt entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -3144,10 +4350,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCustomEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCustomEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Get the explicit list of the pattern.any entity. + /// Get the explicit (exception) list of the pattern.any entity in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -3175,10 +4393,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates an explicit list item for a Pattern.Any entity. + /// Updates an explicit (exception) list item for a Pattern.Any entity + /// in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -3209,10 +4439,22 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, long itemId, ExplicitListItemUpdateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, ExplicitListItemUpdateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Delete the explicit list item from the Pattern.any explicit list. + /// Delete an item from the explicit (exception) list for a Pattern.any + /// entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -3240,6 +4482,6 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPattern.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPattern.cs index 87a5b591ca25d..2c13bec072b2e 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPattern.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPattern.cs @@ -23,8 +23,19 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public partial interface IPattern { /// - /// Adds one pattern to the specified application. + /// Adds a pattern to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -49,10 +60,21 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task> AddPatternWithHttpMessagesAsync(System.Guid appId, string versionId, PatternRuleCreateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddPatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternRuleCreateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Returns an application version's patterns. + /// Gets patterns in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -81,10 +103,21 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task>> GetPatternsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates patterns + /// Updates patterns in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -109,10 +142,21 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task>> UpdatePatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> UpdatePatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Adds a batch of patterns to the specified application. + /// Adds a batch of patterns in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -137,10 +181,21 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task>> BatchAddPatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> BatchAddPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the patterns with the specified IDs. + /// Deletes a list of patterns in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -165,10 +220,21 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task> DeletePatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patternIds, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patternIds, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates a pattern + /// Updates a pattern in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -196,10 +262,22 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task> UpdatePatternWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deletes the pattern with the specified ID. + /// Deletes the pattern with the specified ID from a version of the + /// application.. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -224,10 +302,22 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task> DeletePatternWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid patternId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Returns patterns to be retrieved for the specific intent. + /// Returns patterns for the specific intent in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -259,6 +349,6 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task>> GetIntentPatternsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListIntentPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPermissions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPermissions.cs index e078bc0eedbb7..53b2cc49b1083 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPermissions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPermissions.cs @@ -26,6 +26,17 @@ public partial interface IPermissions /// Gets the list of user emails that have permissions to access your /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -41,14 +52,22 @@ public partial interface IPermissions /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task> ListWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Adds a user to the allowed list of users to access this LUIS /// application. Users are added using their email address. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -70,11 +89,22 @@ public partial interface IPermissions /// /// Thrown when a required parameter is null /// - Task> AddWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Removes a user from the allowed list of users to access this LUIS /// application. Users are removed using their email address. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -96,17 +126,28 @@ public partial interface IPermissions /// /// Thrown when a required parameter is null /// - Task> DeleteWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Replaces the current users access list with the one sent in the + /// Replaces the current user access list with the new list sent in the /// body. If an empty list is sent, all access to other users will be /// removed. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// /// - /// A model containing a list of user's email addresses. + /// A model containing a list of user email addresses. /// /// /// The headers that will be added to request. @@ -123,6 +164,6 @@ public partial interface IPermissions /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(System.Guid appId, CollaboratorsArray collaborators, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CollaboratorsArray collaborators, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ISettings.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ISettings.cs index 1c5eea8a82c58..1b6906a83de9a 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ISettings.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ISettings.cs @@ -23,8 +23,19 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public partial interface ISettings { /// - /// Gets the application version settings. + /// Gets the settings in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -46,10 +57,21 @@ public partial interface ISettings /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Updates the application version settings. + /// Updates the settings in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -74,6 +96,6 @@ public partial interface ISettings /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(System.Guid appId, string versionId, AppVersionSettingObject listOfAppVersionSettingObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList listOfAppVersionSettingObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ITrain.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ITrain.cs index 3985ed9dd8baa..b39bfa41188e3 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ITrain.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ITrain.cs @@ -31,6 +31,17 @@ public partial interface ITrain /// successfully or are up to date. To verify training success, get the /// training status at least once after training is complete. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -52,7 +63,7 @@ public partial interface ITrain /// /// Thrown when a required parameter is null /// - Task> TrainVersionWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> TrainVersionWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets the training status of all models (intents and entities) for /// the specified LUIS app. You must call the train API to train the @@ -60,6 +71,17 @@ public partial interface ITrain /// specifies the LUIS app ID. "versionId" specifies the version number /// of the LUIS app. For example, "0.1". /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -81,6 +103,6 @@ public partial interface ITrain /// /// Thrown when a required parameter is null /// - Task>> GetStatusWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> GetStatusWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IVersions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IVersions.cs index ace0840fee2c5..0d921bc0378ad 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IVersions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IVersions.cs @@ -23,9 +23,19 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public partial interface IVersions { /// - /// Creates a new version using the current snapshot of the selected - /// application version. + /// Creates a new version from the selected version. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -50,10 +60,21 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> CloneWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionCloneObject = default(TaskUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CloneWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the application versions info. + /// Gets a list of versions for this application ID. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -76,13 +97,23 @@ public partial interface IVersions /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - Task>> ListWithHttpMessagesAsync(System.Guid appId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Gets the version info. + /// Gets the version information such as date created, last modified + /// date, endpoint URL, count of intents and entities, training and + /// publishing status. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -104,10 +135,21 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Updates the name or description of the application version. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -132,10 +174,21 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Deletes an application version. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -157,10 +210,21 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Exports a LUIS application to JSON format. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -182,10 +246,21 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> ExportWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ExportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Imports a new version into a LUIS application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -211,10 +286,21 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> ImportWithHttpMessagesAsync(System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// - /// Deleted an unlabelled utterance. + /// Deleted an unlabelled utterance in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible + /// values include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', + /// 'northeurope', 'eastasia', 'australiaeast', 'brazilsouth', + /// 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible + /// values include: 'com', 'us' + /// /// /// The application ID. /// @@ -239,6 +325,6 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(System.Guid appId, string versionId, string utterance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string utterance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/LUISAuthoringClient.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/LUISAuthoringClient.cs index 3688c4eb7f473..f404bbcf186d6 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/LUISAuthoringClient.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/LUISAuthoringClient.cs @@ -36,12 +36,6 @@ public partial class LUISAuthoringClient : ServiceClient, I /// public JsonSerializerSettings DeserializationSettings { get; private set; } - /// - /// Supported Cognitive Services endpoints (protocol and hostname, for example: - /// https://westus.api.cognitive.microsoft.com). - /// - public string Endpoint { get; set; } - /// /// Subscription credentials which uniquely identify client subscription. /// @@ -234,7 +228,7 @@ private void Initialize() Pattern = new Pattern(this); Settings = new Settings(this); AzureAccounts = new AzureAccounts(this); - BaseUri = "{Endpoint}/luis/api/v2.0"; + BaseUri = "http://{AzureRegion}.api.cognitive.microsoft.{AzureCloud}/luis/api/v2.0"; SerializationSettings = new JsonSerializerSettings { Formatting = Newtonsoft.Json.Formatting.Indented, diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Model.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Model.cs index b1036d4491492..d9243502402ac 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Model.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Model.cs @@ -51,8 +51,18 @@ public Model(LUISAuthoringClient client) public LUISAuthoringClient Client { get; private set; } /// - /// Adds an intent classifier to the application. + /// Adds an intent to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -60,7 +70,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// A model object containing the name of the new intent classifier. + /// A model object containing the name of the new intent. /// /// /// Headers that will be added to request. @@ -83,12 +93,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddIntentWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -104,6 +110,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("intentCreateObject", intentCreateObject); @@ -113,7 +121,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -216,8 +225,18 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the intent models. + /// Gets information about the intent models in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -251,12 +270,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListIntentsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -280,6 +295,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -290,7 +307,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -407,8 +425,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds an entity extractor to the application. + /// Adds a simple entity extractor to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -416,7 +444,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// A model object containing the name for the new entity extractor. + /// A model object containing the name for the new simple entity extractor. /// /// /// Headers that will be added to request. @@ -439,12 +467,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddEntityWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -460,6 +484,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("modelCreateObject", modelCreateObject); @@ -469,7 +495,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -579,8 +606,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the entity models. + /// Gets information about all the simple entity models in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -614,12 +652,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -643,6 +677,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -653,7 +689,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -770,8 +807,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a hierarchical entity extractor to the application version. + /// Adds a hierarchical entity extractor to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -802,12 +849,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -823,6 +866,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hierarchicalModelCreateObject", hierarchicalModelCreateObject); @@ -832,7 +877,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -942,8 +988,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the hierarchical entity models. + /// Gets information about all the hierarchical entity models in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -977,12 +1034,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1006,6 +1059,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -1016,7 +1071,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -1133,8 +1189,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a composite entity extractor to the application. + /// Adds a composite entity extractor to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1165,12 +1231,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1186,6 +1248,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("compositeModelCreateObject", compositeModelCreateObject); @@ -1195,7 +1259,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -1305,8 +1370,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the composite entity models. + /// Gets information about all the composite entity models in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1340,12 +1416,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCompositeEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCompositeEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1369,6 +1441,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -1379,7 +1453,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -1496,8 +1571,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the closedlist models. + /// Gets information about all the list entity models in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1531,12 +1617,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListClosedListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListClosedListsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1560,6 +1642,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -1570,7 +1654,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -1687,8 +1772,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a closed list model to the application. + /// Adds a list entity model to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1696,8 +1791,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// A model containing the name and words for the new closed list entity - /// extractor. + /// A model containing the name and words for the new list entity extractor. /// /// /// Headers that will be added to request. @@ -1720,12 +1814,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1741,6 +1831,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("closedListModelCreateObject", closedListModelCreateObject); @@ -1750,7 +1842,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -1860,8 +1953,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a list of prebuilt entity extractors to the application. + /// Adds a list of prebuilt entities to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1892,12 +1995,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> AddPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> AddPrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1913,6 +2012,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("prebuiltExtractorNames", prebuiltExtractorNames); @@ -1922,7 +2023,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -2032,8 +2134,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the prebuilt entity models. + /// Gets information about all the prebuilt entities in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2067,12 +2180,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListPrebuiltsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPrebuiltsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -2096,6 +2205,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -2106,7 +2217,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -2223,8 +2335,18 @@ public Model(LUISAuthoringClient client) } /// - /// Gets all the available prebuilt entity extractors for the application. + /// Gets all the available prebuilt entities in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2252,12 +2374,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -2269,6 +2387,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -2277,7 +2397,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/listprebuilts"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -2381,8 +2502,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the application version models. + /// Gets information about all the intent and entity models in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2416,12 +2548,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListModelsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListModelsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -2445,6 +2573,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); @@ -2455,7 +2585,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/models"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -2572,8 +2703,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets the utterances for the given model in the given app version. + /// Gets the example utterances for the given intent or entity model in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2610,12 +2752,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ExamplesMethodWithHttpMessagesAsync(System.Guid appId, string versionId, string modelId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ExamplesMethodWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string modelId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -2643,6 +2781,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("modelId", modelId); @@ -2654,7 +2794,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/models/{modelId}/examples"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{modelId}", System.Uri.EscapeDataString(modelId)); @@ -2772,8 +2913,18 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the intent model. + /// Gets information about the intent model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2804,12 +2955,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -2821,6 +2968,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("intentId", intentId); @@ -2830,7 +2979,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); @@ -2935,8 +3085,18 @@ public Model(LUISAuthoringClient client) } /// - /// Updates the name of an intent classifier. + /// Updates the name of an intent in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2947,7 +3107,7 @@ public Model(LUISAuthoringClient client) /// The intent classifier ID. /// /// - /// A model object containing the new intent classifier name. + /// A model object containing the new intent name. /// /// /// Headers that will be added to request. @@ -2970,12 +3130,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -2991,6 +3147,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("intentId", intentId); @@ -3001,7 +3159,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); @@ -3112,8 +3271,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes an intent classifier from the application. + /// Deletes an intent from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3124,8 +3293,8 @@ public Model(LUISAuthoringClient client) /// The intent classifier ID. /// /// - /// Also delete the intent's utterances (true). Or move the utterances to the - /// None intent (false - the default value). + /// If true, deletes the intent's example utterances. If false, moves the + /// example utterances to the None intent. The default value is false. /// /// /// Headers that will be added to request. @@ -3148,12 +3317,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -3165,6 +3330,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("intentId", intentId); @@ -3175,7 +3342,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); @@ -3289,8 +3457,18 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the entity model. + /// Gets information about an entity model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3321,12 +3499,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -3338,6 +3512,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -3347,7 +3523,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -3452,8 +3629,18 @@ public Model(LUISAuthoringClient client) } /// - /// Updates the name of an entity extractor. + /// Updates the name of an entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3487,12 +3674,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -3508,6 +3691,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -3518,7 +3703,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -3629,8 +3815,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes an entity extractor from the application. + /// Deletes an entity from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3661,12 +3857,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -3678,6 +3870,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -3687,7 +3881,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -3792,8 +3987,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the hierarchical entity model. + /// Gets information about a hierarchical entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3824,12 +4030,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -3841,6 +4043,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -3850,7 +4054,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -3955,8 +4160,19 @@ public Model(LUISAuthoringClient client) } /// - /// Updates the name and children of a hierarchical entity model. + /// Updates the name and children of a hierarchical entity model in a version + /// of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3990,12 +4206,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -4011,6 +4223,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -4021,7 +4235,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -4132,8 +4347,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a hierarchical entity extractor from the application version. + /// Deletes a hierarchical entity from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -4164,12 +4389,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -4181,6 +4402,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -4190,7 +4413,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -4295,8 +4519,18 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the composite entity model. + /// Gets information about a composite entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -4327,12 +4561,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -4344,6 +4574,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -4353,7 +4585,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -4458,8 +4691,18 @@ public Model(LUISAuthoringClient client) } /// - /// Updates the composite entity extractor. + /// Updates a composite entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -4493,12 +4736,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -4514,6 +4753,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -4524,7 +4765,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -4635,8 +4877,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a composite entity extractor from the application. + /// Deletes a composite entity from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -4667,12 +4919,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -4684,6 +4932,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -4693,7 +4943,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -4798,8 +5049,18 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information of a closed list model. + /// Gets information about a list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -4807,7 +5068,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The closed list model ID. + /// The list model ID. /// /// /// Headers that will be added to request. @@ -4830,12 +5091,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -4847,6 +5104,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("clEntityId", clEntityId); @@ -4856,7 +5115,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); @@ -4961,8 +5221,18 @@ public Model(LUISAuthoringClient client) } /// - /// Updates the closed list model. + /// Updates the list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -4970,10 +5240,10 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The closed list model ID. + /// The list model ID. /// /// - /// The new entity name and words list. + /// The new list entity name and words list. /// /// /// Headers that will be added to request. @@ -4996,12 +5266,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -5017,6 +5283,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("clEntityId", clEntityId); @@ -5027,7 +5295,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); @@ -5138,8 +5407,19 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a batch of sublists to an existing closedlist. + /// Adds a batch of sublists to an existing list entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -5147,7 +5427,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The closed list model ID. + /// The list entity model ID. /// /// /// A words list batch. @@ -5173,12 +5453,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PatchClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PatchClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -5194,6 +5470,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("clEntityId", clEntityId); @@ -5204,7 +5482,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); @@ -5315,8 +5594,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a closed list model from the application. + /// Deletes a list entity model from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -5324,7 +5613,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The closed list model ID. + /// The list entity model ID. /// /// /// Headers that will be added to request. @@ -5347,12 +5636,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -5364,6 +5649,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("clEntityId", clEntityId); @@ -5373,7 +5660,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); @@ -5478,8 +5766,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the prebuilt entity model. + /// Gets information about a prebuilt entity model in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -5510,12 +5809,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -5527,6 +5822,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("prebuiltId", prebuiltId); @@ -5536,7 +5833,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{prebuiltId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltId, Client.SerializationSettings).Trim('"'))); @@ -5641,8 +5939,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a prebuilt entity extractor from the application. + /// Deletes a prebuilt entity extractor from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -5673,12 +5981,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -5690,6 +5994,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("prebuiltId", prebuiltId); @@ -5699,7 +6005,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{prebuiltId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(prebuiltId, Client.SerializationSettings).Trim('"'))); @@ -5804,8 +6111,19 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a sublist of a specific closed list model. + /// Deletes a sublist of a specific list entity model from a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -5813,7 +6131,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// The sublist ID. @@ -5839,12 +6157,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, int subListId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteSubListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -5856,6 +6170,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("clEntityId", clEntityId); @@ -5866,7 +6182,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); @@ -5972,8 +6289,18 @@ public Model(LUISAuthoringClient client) } /// - /// Updates one of the closed list's sublists. + /// Updates one of the list entity's sublists in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -5981,7 +6308,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// The sublist ID. @@ -6011,12 +6338,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateSubListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -6032,6 +6355,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("clEntityId", clEntityId); @@ -6043,7 +6368,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists/{subListId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); @@ -6155,8 +6481,19 @@ public Model(LUISAuthoringClient client) } /// - /// Suggests examples that would improve the accuracy of the intent model. + /// Suggests example utterances that would improve the accuracy of the intent + /// model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -6190,12 +6527,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetIntentSuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListIntentSuggestionsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -6215,17 +6548,20 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("intentId", intentId); tracingParameters.Add("take", take); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetIntentSuggestions", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListIntentSuggestions", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}/suggest"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); @@ -6339,9 +6675,19 @@ public Model(LUISAuthoringClient client) } /// - /// Get suggestion examples that would improve the accuracy of the entity - /// model. + /// Get suggested example utterances that would improve the accuracy of the + /// entity model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -6375,12 +6721,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetEntitySuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListEntitySuggestionsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -6400,17 +6742,20 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); tracingParameters.Add("take", take); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetEntitySuggestions", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListEntitySuggestions", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}/suggest"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -6524,8 +6869,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a list to an existing closed list. + /// Adds a sublist to an existing list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -6533,7 +6888,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// Words list. @@ -6559,12 +6914,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddSubListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -6580,6 +6931,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("clEntityId", clEntityId); @@ -6590,7 +6943,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}/sublists"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{clEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(clEntityId, Client.SerializationSettings).Trim('"'))); @@ -6672,7 +7026,7 @@ public Model(LUISAuthoringClient client) throw ex; } // Create Result - var _result = new HttpOperationResponse(); + var _result = new HttpOperationResponse(); _result.Request = _httpRequest; _result.Response = _httpResponse; // Deserialize Response @@ -6681,7 +7035,7 @@ public Model(LUISAuthoringClient client) _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); try { - _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); } catch (JsonException ex) { @@ -6701,9 +7055,19 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a customizable prebuilt domain along with all of its models to this - /// application. + /// Adds a customizable prebuilt domain along with all of its intent and entity + /// models in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -6734,12 +7098,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -6755,6 +7115,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("prebuiltDomainObject", prebuiltDomainObject); @@ -6764,7 +7126,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltdomains"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -6874,8 +7237,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a custom prebuilt intent model to the application. + /// Adds a customizable prebuilt intent model to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -6883,8 +7256,8 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// A model object containing the name of the custom prebuilt intent and the - /// name of the domain to which this model belongs. + /// A model object containing the name of the customizable prebuilt intent and + /// the name of the domain to which this model belongs. /// /// /// Headers that will be added to request. @@ -6907,12 +7280,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -6928,6 +7297,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("prebuiltDomainModelCreateObject", prebuiltDomainModelCreateObject); @@ -6937,7 +7308,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltintents"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -7047,8 +7419,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets custom prebuilt intents information of this application. + /// Gets information about customizable prebuilt intents added to a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -7076,12 +7459,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -7093,6 +7472,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -7101,7 +7482,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltintents"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -7205,8 +7587,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a custom prebuilt entity model to the application. + /// Adds a prebuilt entity model to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -7214,8 +7606,8 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// A model object containing the name of the custom prebuilt entity and the - /// name of the domain to which this model belongs. + /// A model object containing the name of the prebuilt entity and the name of + /// the domain to which this model belongs. /// /// /// Headers that will be added to request. @@ -7238,12 +7630,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -7259,6 +7647,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("prebuiltDomainModelCreateObject", prebuiltDomainModelCreateObject); @@ -7268,7 +7658,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -7378,8 +7769,18 @@ public Model(LUISAuthoringClient client) } /// - /// Gets all custom prebuilt entities information of this application. + /// Gets all prebuilt entities used in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -7407,12 +7808,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -7424,6 +7821,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -7432,7 +7831,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -7536,8 +7936,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets all custom prebuilt models information of this application. + /// Gets all prebuilt intent and entity model information used in a version of + /// this application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -7565,12 +7976,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -7582,6 +7989,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -7590,7 +7999,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltmodels"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -7694,8 +8104,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a prebuilt domain's models from the application. + /// Deletes a prebuilt domain's models in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -7726,12 +8146,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -7747,6 +8163,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("domainName", domainName); @@ -7756,7 +8174,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{domainName}", System.Uri.EscapeDataString(domainName)); @@ -7861,8 +8280,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the hierarchical entity child model. + /// Gets information about the child's model contained in an hierarchical + /// entity child model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -7896,12 +8326,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -7913,6 +8339,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -7923,7 +8351,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -8029,8 +8458,19 @@ public Model(LUISAuthoringClient client) } /// - /// Renames a single child in an existing hierarchical entity model. + /// Renames a single child in an existing hierarchical entity model in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -8067,12 +8507,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -8088,6 +8524,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -8099,7 +8537,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -8211,8 +8650,19 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a hierarchical entity extractor child from the application. + /// Deletes a hierarchical entity extractor child in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -8246,12 +8696,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -8263,6 +8709,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -8273,7 +8721,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children/{hChildId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -8379,8 +8828,19 @@ public Model(LUISAuthoringClient client) } /// - /// Creates a single child in an existing hierarchical entity model. + /// Creates a single child in an existing hierarchical entity model in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -8414,12 +8874,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddHierarchicalEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -8435,6 +8891,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -8445,7 +8903,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/children"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -8556,8 +9015,19 @@ public Model(LUISAuthoringClient client) } /// - /// Creates a single child in an existing composite entity model. + /// Creates a single child in an existing composite entity model in a version + /// of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -8591,12 +9061,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCompositeEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -8612,6 +9078,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -8622,7 +9090,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -8733,8 +9202,19 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a composite entity extractor child from the application. + /// Deletes a composite entity extractor child from a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -8768,12 +9248,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCompositeEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -8785,6 +9261,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -8795,7 +9273,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/children/{cChildId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -8901,8 +9380,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the regex entity models. + /// Gets information about the regular expression entity models in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -8936,12 +9426,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetRegexEntityInfosWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListRegexEntityInfosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -8965,17 +9451,20 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); tracingParameters.Add("take", take); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetRegexEntityInfos", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListRegexEntityInfos", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -9092,8 +9581,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a regex entity model to the application version. + /// Adds a regular expression entity model to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -9101,8 +9600,8 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// A model object containing the name and regex pattern for the new regex - /// entity extractor. + /// A model object containing the name and regex pattern for the new regular + /// expression entity extractor. /// /// /// Headers that will be added to request. @@ -9125,12 +9624,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -9146,6 +9641,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("regexEntityExtractorCreateObj", regexEntityExtractorCreateObj); @@ -9155,7 +9652,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -9265,8 +9763,19 @@ public Model(LUISAuthoringClient client) } /// - /// Get information about the Pattern.Any entity models. + /// Get information about the Pattern.Any entity models in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -9300,12 +9809,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetPatternAnyEntityInfosWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPatternAnyEntityInfosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -9329,17 +9834,20 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); tracingParameters.Add("take", take); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetPatternAnyEntityInfos", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListPatternAnyEntityInfos", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -9456,8 +9964,18 @@ public Model(LUISAuthoringClient client) } /// - /// Adds a pattern.any entity extractor to the application. + /// Adds a pattern.any entity extractor to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -9489,12 +10007,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreatePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreatePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -9510,6 +10024,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("extractorCreateObject", extractorCreateObject); @@ -9519,7 +10035,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -9629,8 +10146,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get All Entity Roles for a given entity + /// Get all roles for an entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -9661,12 +10188,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -9678,16 +10201,19 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetEntityRoles", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListEntityRoles", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -9792,8 +10318,18 @@ public Model(LUISAuthoringClient client) } /// - /// Create an entity role for an entity in the application. + /// Create an entity role in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -9827,12 +10363,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -9848,6 +10380,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -9858,7 +10392,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -9969,8 +10504,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get All Entity Roles for a given entity + /// Get a prebuilt entity's roles in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -10001,12 +10546,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetPrebuiltEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPrebuiltEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -10018,16 +10559,19 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetPrebuiltEntityRoles", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListPrebuiltEntityRoles", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -10132,8 +10676,18 @@ public Model(LUISAuthoringClient client) } /// - /// Create an entity role for an entity in the application. + /// Create a role for a prebuilt entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -10167,12 +10721,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreatePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreatePrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -10188,6 +10738,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -10198,7 +10750,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -10309,8 +10862,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -10341,12 +10904,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetClosedListEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListClosedListEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -10358,16 +10917,19 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetClosedListEntityRoles", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListClosedListEntityRoles", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -10472,8 +11034,18 @@ public Model(LUISAuthoringClient client) } /// - /// Create an entity role for an entity in the application. + /// Create a role for a list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -10507,12 +11079,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -10528,6 +11096,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -10538,7 +11108,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -10649,8 +11220,19 @@ public Model(LUISAuthoringClient client) } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a regular expression entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -10681,12 +11263,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetRegexEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListRegexEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -10698,16 +11276,19 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetRegexEntityRoles", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListRegexEntityRoles", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -10812,8 +11393,19 @@ public Model(LUISAuthoringClient client) } /// - /// Create an entity role for an entity in the application. + /// Create a role for an regular expression entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -10847,12 +11439,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -10868,6 +11456,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -10878,7 +11468,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -10989,8 +11580,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a composite entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -11021,12 +11622,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetCompositeEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCompositeEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -11038,16 +11635,19 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCompositeEntityRoles", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListCompositeEntityRoles", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -11152,8 +11752,18 @@ public Model(LUISAuthoringClient client) } /// - /// Create an entity role for an entity in the application. + /// Create a role for a composite entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -11187,12 +11797,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -11208,6 +11814,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -11218,7 +11826,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -11329,8 +11938,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a Pattern.any entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -11361,12 +11980,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetPatternAnyEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPatternAnyEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -11378,16 +11993,19 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetPatternAnyEntityRoles", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListPatternAnyEntityRoles", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -11492,8 +12110,18 @@ public Model(LUISAuthoringClient client) } /// - /// Create an entity role for an entity in the application. + /// Create a role for an Pattern.any entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -11527,12 +12155,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreatePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreatePatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -11548,6 +12172,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -11558,7 +12184,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -11669,8 +12296,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a hierarchical entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -11701,12 +12338,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetHierarchicalEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListHierarchicalEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -11718,16 +12351,19 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetHierarchicalEntityRoles", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListHierarchicalEntityRoles", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -11832,8 +12468,18 @@ public Model(LUISAuthoringClient client) } /// - /// Create an entity role for an entity in the application. + /// Create a role for an hierarchical entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -11867,12 +12513,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -11888,6 +12530,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -11898,7 +12542,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -12009,8 +12654,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a prebuilt entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -12041,12 +12696,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetCustomPrebuiltEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -12058,16 +12709,19 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetCustomPrebuiltEntityRoles", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListCustomPrebuiltEntityRoles", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -12172,8 +12826,18 @@ public Model(LUISAuthoringClient client) } /// - /// Create an entity role for an entity in the application. + /// Create a role for a prebuilt entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -12207,12 +12871,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -12228,6 +12888,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -12238,7 +12900,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -12349,8 +13012,19 @@ public Model(LUISAuthoringClient client) } /// - /// Get the explicit list of the pattern.any entity. + /// Get the explicit (exception) list of the pattern.any entity in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -12381,12 +13055,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetExplicitListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetExplicitListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -12398,6 +13068,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -12407,7 +13079,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -12512,8 +13185,19 @@ public Model(LUISAuthoringClient client) } /// - /// Add a new item to the explicit list for the Pattern.Any entity. + /// Add a new exception to the explicit list for the Pattern.Any entity in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -12547,12 +13231,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -12568,6 +13248,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -12578,7 +13260,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -12689,8 +13372,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information of a regex entity model. + /// Gets information about a regular expression entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -12698,7 +13392,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The regex entity model ID. + /// The regular expression entity model ID. /// /// /// Headers that will be added to request. @@ -12721,12 +13415,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetRegexEntityEntityInfoWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetRegexEntityEntityInfoWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -12738,6 +13428,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("regexEntityId", regexEntityId); @@ -12747,7 +13439,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{regexEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(regexEntityId, Client.SerializationSettings).Trim('"'))); @@ -12852,8 +13545,18 @@ public Model(LUISAuthoringClient client) } /// - /// Updates the regex entity model . + /// Updates the regular expression entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -12861,7 +13564,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The regex entity extractor ID. + /// The regular expression entity extractor ID. /// /// /// An object containing the new entity name and regex pattern. @@ -12887,12 +13590,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -12908,6 +13607,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("regexEntityId", regexEntityId); @@ -12918,7 +13619,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{regexEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(regexEntityId, Client.SerializationSettings).Trim('"'))); @@ -13029,8 +13731,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a regex entity model from the application. + /// Deletes a regular expression entity from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -13038,7 +13750,7 @@ public Model(LUISAuthoringClient client) /// The version ID. /// /// - /// The regex entity extractor ID. + /// The regular expression entity extractor ID. /// /// /// Headers that will be added to request. @@ -13061,12 +13773,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -13078,6 +13786,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("regexEntityId", regexEntityId); @@ -13087,7 +13797,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{regexEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(regexEntityId, Client.SerializationSettings).Trim('"'))); @@ -13192,8 +13903,19 @@ public Model(LUISAuthoringClient client) } /// - /// Gets information about the application version's Pattern.Any model. + /// Gets information about the Pattern.Any model in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -13224,12 +13946,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetPatternAnyEntityInfoWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPatternAnyEntityInfoWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -13241,6 +13959,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -13250,7 +13970,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -13355,8 +14076,19 @@ public Model(LUISAuthoringClient client) } /// - /// Updates the name and explicit list of a Pattern.Any entity model. + /// Updates the name and explicit (exception) list of a Pattern.Any entity + /// model in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -13390,12 +14122,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdatePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdatePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -13411,6 +14139,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -13421,7 +14151,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -13532,8 +14263,18 @@ public Model(LUISAuthoringClient client) } /// - /// Deletes a Pattern.Any entity extractor from the application. + /// Deletes a Pattern.Any entity extractor from a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -13564,12 +14305,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -13581,6 +14318,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -13590,7 +14329,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -13695,8 +14435,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get one entity role for a given entity + /// Get one role for a given entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -13730,12 +14480,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -13747,6 +14493,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -13757,7 +14505,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -13863,8 +14612,18 @@ public Model(LUISAuthoringClient client) } /// - /// Update an entity role for a given entity + /// Update a role for a given entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -13901,12 +14660,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -13922,6 +14677,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -13933,7 +14690,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -14045,8 +14803,18 @@ public Model(LUISAuthoringClient client) } /// - /// Delete an entity role. + /// Delete an entity role in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -14080,12 +14848,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -14097,6 +14861,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -14107,7 +14873,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -14213,8 +14980,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get one entity role for a given entity + /// Get one role for a given prebuilt entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -14248,12 +15025,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -14265,6 +15038,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -14275,7 +15050,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -14381,8 +15157,18 @@ public Model(LUISAuthoringClient client) } /// - /// Update an entity role for a given entity + /// Update a role for a given prebuilt entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -14419,12 +15205,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdatePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdatePrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -14440,6 +15222,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -14451,7 +15235,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -14563,8 +15348,18 @@ public Model(LUISAuthoringClient client) } /// - /// Delete an entity role. + /// Delete a role in a prebuilt entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -14598,12 +15393,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -14615,6 +15406,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -14625,7 +15418,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -14731,8 +15525,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get one entity role for a given entity + /// Get one role for a given list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -14766,12 +15570,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -14783,6 +15583,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -14793,7 +15595,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -14899,8 +15702,18 @@ public Model(LUISAuthoringClient client) } /// - /// Update an entity role for a given entity + /// Update a role for a given list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -14937,12 +15750,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -14958,6 +15767,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -14969,7 +15780,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -15081,8 +15893,18 @@ public Model(LUISAuthoringClient client) } /// - /// Delete an entity role. + /// Delete a role for a given list entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -15116,12 +15938,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -15133,6 +15951,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -15143,7 +15963,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -15249,8 +16070,19 @@ public Model(LUISAuthoringClient client) } /// - /// Get one entity role for a given entity + /// Get one role for a given regular expression entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -15284,12 +16116,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -15301,6 +16129,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -15311,7 +16141,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -15417,8 +16248,19 @@ public Model(LUISAuthoringClient client) } /// - /// Update an entity role for a given entity + /// Update a role for a given regular expression entity in a version of the + /// application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -15455,12 +16297,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -15476,6 +16314,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -15487,7 +16327,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -15599,8 +16440,19 @@ public Model(LUISAuthoringClient client) } /// - /// Delete an entity role. + /// Delete a role for a given regular expression in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -15634,12 +16486,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -15651,6 +16499,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -15661,7 +16511,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -15767,8 +16618,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get one entity role for a given entity + /// Get one role for a given composite entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -15802,12 +16663,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -15819,6 +16676,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -15829,7 +16688,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -15935,8 +16795,18 @@ public Model(LUISAuthoringClient client) } /// - /// Update an entity role for a given entity + /// Update a role for a given composite entity in a version of the application /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -15973,12 +16843,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -15994,6 +16860,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -16005,7 +16873,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -16117,8 +16986,18 @@ public Model(LUISAuthoringClient client) } /// - /// Delete an entity role. + /// Delete a role for a given composite entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -16152,12 +17031,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -16169,6 +17044,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cEntityId", cEntityId); @@ -16179,7 +17056,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{cEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(cEntityId, Client.SerializationSettings).Trim('"'))); @@ -16285,8 +17163,19 @@ public Model(LUISAuthoringClient client) } /// - /// Get one entity role for a given entity + /// Get one role for a given Pattern.any entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -16320,12 +17209,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetPatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -16337,6 +17222,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -16347,7 +17234,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -16453,8 +17341,19 @@ public Model(LUISAuthoringClient client) } /// - /// Update an entity role for a given entity + /// Update a role for a given Pattern.any entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -16491,12 +17390,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdatePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdatePatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -16512,6 +17407,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -16523,7 +17420,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -16635,8 +17533,19 @@ public Model(LUISAuthoringClient client) } /// - /// Delete an entity role. + /// Delete a role for a given Pattern.any entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -16670,12 +17579,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -16687,6 +17592,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -16697,7 +17604,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -16803,8 +17711,19 @@ public Model(LUISAuthoringClient client) } /// - /// Get one entity role for a given entity + /// Get one role for a given hierarchical entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -16838,12 +17757,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -16855,6 +17770,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -16865,7 +17782,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -16971,8 +17889,19 @@ public Model(LUISAuthoringClient client) } /// - /// Update an entity role for a given entity + /// Update a role for a given hierarchical entity in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -17009,12 +17938,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -17030,6 +17955,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -17041,7 +17968,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -17153,8 +18081,19 @@ public Model(LUISAuthoringClient client) } /// - /// Delete an entity role. + /// Delete a role for a given hierarchical role in a version of the + /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -17188,12 +18127,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -17205,6 +18140,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("hEntityId", hEntityId); @@ -17215,7 +18152,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{hEntityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(hEntityId, Client.SerializationSettings).Trim('"'))); @@ -17321,8 +18259,18 @@ public Model(LUISAuthoringClient client) } /// - /// Get one entity role for a given entity + /// Get one role for a given prebuilt entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -17356,12 +18304,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetCustomEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetCustomEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -17373,6 +18317,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -17383,7 +18329,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -17489,8 +18436,18 @@ public Model(LUISAuthoringClient client) } /// - /// Update an entity role for a given entity + /// Update a role for a given prebuilt entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -17527,12 +18484,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -17548,6 +18501,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -17559,7 +18514,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -17671,8 +18627,18 @@ public Model(LUISAuthoringClient client) } /// - /// Delete an entity role. + /// Delete a role for a given prebuilt entity in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -17706,12 +18672,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCustomEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCustomEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -17723,6 +18685,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -17733,7 +18697,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities/{entityId}/roles/{roleId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -17839,8 +18804,19 @@ public Model(LUISAuthoringClient client) } /// - /// Get the explicit list of the pattern.any entity. + /// Get the explicit (exception) list of the pattern.any entity in a version of + /// the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -17874,12 +18850,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -17891,6 +18863,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -17901,7 +18875,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -18007,8 +18982,19 @@ public Model(LUISAuthoringClient client) } /// - /// Updates an explicit list item for a Pattern.Any entity. + /// Updates an explicit (exception) list item for a Pattern.Any entity in a + /// version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -18045,12 +19031,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, long itemId, ExplicitListItemUpdateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, ExplicitListItemUpdateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -18066,6 +19048,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -18077,7 +19061,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); @@ -18189,8 +19174,19 @@ public Model(LUISAuthoringClient client) } /// - /// Delete the explicit list item from the Pattern.any explicit list. + /// Delete an item from the explicit (exception) list for a Pattern.any entity + /// in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -18224,12 +19220,8 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -18241,6 +19233,8 @@ public Model(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("entityId", entityId); @@ -18251,7 +19245,8 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}/explicitlist/{itemId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{entityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(entityId, Client.SerializationSettings).Trim('"'))); diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ModelExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ModelExtensions.cs index d52ba5b737da3..50cb8e7735491 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ModelExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ModelExtensions.cs @@ -22,11 +22,21 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public static partial class ModelExtensions { /// - /// Adds an intent classifier to the application. + /// Adds an intent to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -34,25 +44,35 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// A model object containing the name of the new intent classifier. + /// A model object containing the name of the new intent. /// /// /// The cancellation token. /// - public static async Task AddIntentAsync(this IModel operations, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddIntentAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddIntentWithHttpMessagesAsync(appId, versionId, intentCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the intent models. + /// Gets information about the intent models in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -68,20 +88,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListIntentsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListIntentsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListIntentsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListIntentsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds an entity extractor to the application. + /// Adds a simple entity extractor to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -89,25 +119,36 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// A model object containing the name for the new entity extractor. + /// A model object containing the name for the new simple entity extractor. /// /// /// The cancellation token. /// - public static async Task AddEntityAsync(this IModel operations, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddEntityWithHttpMessagesAsync(appId, versionId, modelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, modelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the entity models. + /// Gets information about all the simple entity models in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -123,20 +164,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListEntitiesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a hierarchical entity extractor to the application version. + /// Adds a hierarchical entity extractor to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -149,20 +200,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddHierarchicalEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hierarchicalModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddHierarchicalEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hierarchicalModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the hierarchical entity models. + /// Gets information about all the hierarchical entity models in a version of + /// the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -178,20 +240,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListHierarchicalEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListHierarchicalEntitiesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListHierarchicalEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListHierarchicalEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a composite entity extractor to the application. + /// Adds a composite entity extractor to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -204,20 +276,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCompositeEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCompositeEntityWithHttpMessagesAsync(appId, versionId, compositeModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCompositeEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, compositeModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the composite entity models. + /// Gets information about all the composite entity models in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -233,20 +316,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCompositeEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCompositeEntitiesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCompositeEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCompositeEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the closedlist models. + /// Gets information about all the list entity models in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -262,20 +356,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListClosedListsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListClosedListsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListClosedListsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListClosedListsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a closed list model to the application. + /// Adds a list entity model to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -283,26 +387,35 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// A model containing the name and words for the new closed list entity - /// extractor. + /// A model containing the name and words for the new list entity extractor. /// /// /// The cancellation token. /// - public static async Task AddClosedListAsync(this IModel operations, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddClosedListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddClosedListWithHttpMessagesAsync(appId, versionId, closedListModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, closedListModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a list of prebuilt entity extractors to the application. + /// Adds a list of prebuilt entities to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -315,20 +428,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> AddPrebuiltAsync(this IModel operations, System.Guid appId, string versionId, IList prebuiltExtractorNames, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> AddPrebuiltAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList prebuiltExtractorNames, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddPrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltExtractorNames, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddPrebuiltWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltExtractorNames, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the prebuilt entity models. + /// Gets information about all the prebuilt entities in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -344,20 +468,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListPrebuiltsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPrebuiltsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPrebuiltsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPrebuiltsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets all the available prebuilt entity extractors for the application. + /// Gets all the available prebuilt entities in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -367,20 +501,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListPrebuiltEntitiesAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPrebuiltEntitiesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPrebuiltEntitiesWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPrebuiltEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the application version models. + /// Gets information about all the intent and entity models in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -396,20 +541,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListModelsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListModelsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListModelsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListModelsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the utterances for the given model in the given app version. + /// Gets the example utterances for the given intent or entity model in a + /// version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -428,20 +584,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ExamplesMethodAsync(this IModel operations, System.Guid appId, string versionId, string modelId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ExamplesMethodAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string modelId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ExamplesMethodWithHttpMessagesAsync(appId, versionId, modelId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ExamplesMethodWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, modelId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the intent model. + /// Gets information about the intent model in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -454,20 +620,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetIntentAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetIntentWithHttpMessagesAsync(appId, versionId, intentId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the name of an intent classifier. + /// Updates the name of an intent in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -478,25 +654,35 @@ public static partial class ModelExtensions /// The intent classifier ID. /// /// - /// A model object containing the new intent classifier name. + /// A model object containing the new intent name. /// /// /// The cancellation token. /// - public static async Task UpdateIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateIntentAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateIntentWithHttpMessagesAsync(appId, versionId, intentId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes an intent classifier from the application. + /// Deletes an intent from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -507,26 +693,36 @@ public static partial class ModelExtensions /// The intent classifier ID. /// /// - /// Also delete the intent's utterances (true). Or move the utterances to the - /// None intent (false - the default value). + /// If true, deletes the intent's example utterances. If false, moves the + /// example utterances to the None intent. The default value is false. /// /// /// The cancellation token. /// - public static async Task DeleteIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteIntentAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteIntentWithHttpMessagesAsync(appId, versionId, intentId, deleteUtterances, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, deleteUtterances, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the entity model. + /// Gets information about an entity model in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -539,20 +735,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetEntityWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the name of an entity extractor. + /// Updates the name of an entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -568,20 +774,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateEntityWithHttpMessagesAsync(appId, versionId, entityId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes an entity extractor from the application. + /// Deletes an entity from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -594,20 +810,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteEntityWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the hierarchical entity model. + /// Gets information about a hierarchical entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -620,20 +847,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetHierarchicalEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetHierarchicalEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the name and children of a hierarchical entity model. + /// Updates the name and children of a hierarchical entity model in a version + /// of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -649,20 +887,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateHierarchicalEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, hierarchicalModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateHierarchicalEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hierarchicalModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a hierarchical entity extractor from the application version. + /// Deletes a hierarchical entity from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -675,20 +923,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteHierarchicalEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteHierarchicalEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the composite entity model. + /// Gets information about a composite entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -701,20 +959,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetCompositeEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetCompositeEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the composite entity extractor. + /// Updates a composite entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -730,20 +998,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateCompositeEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, compositeModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateCompositeEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, compositeModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a composite entity extractor from the application. + /// Deletes a composite entity from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -756,20 +1034,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteCompositeEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCompositeEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information of a closed list model. + /// Gets information about a list entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -777,25 +1065,35 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The closed list model ID. + /// The list model ID. /// /// /// The cancellation token. /// - public static async Task GetClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetClosedListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the closed list model. + /// Updates the list entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -803,28 +1101,39 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The closed list model ID. + /// The list model ID. /// /// - /// The new entity name and words list. + /// The new list entity name and words list. /// /// /// The cancellation token. /// - public static async Task UpdateClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateClosedListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, closedListModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, closedListModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a batch of sublists to an existing closedlist. + /// Adds a batch of sublists to an existing list entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -832,7 +1141,7 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The closed list model ID. + /// The list entity model ID. /// /// /// A words list batch. @@ -840,20 +1149,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task PatchClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PatchClosedListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.PatchClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, closedListModelPatchObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.PatchClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, closedListModelPatchObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a closed list model from the application. + /// Deletes a list entity model from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -861,25 +1180,36 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The closed list model ID. + /// The list entity model ID. /// /// /// The cancellation token. /// - public static async Task DeleteClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteClosedListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the prebuilt entity model. + /// Gets information about a prebuilt entity model in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -892,20 +1222,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetPrebuiltAsync(this IModel operations, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPrebuiltAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPrebuiltWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a prebuilt entity extractor from the application. + /// Deletes a prebuilt entity extractor from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -918,20 +1258,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeletePrebuiltAsync(this IModel operations, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePrebuiltAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePrebuiltWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a sublist of a specific closed list model. + /// Deletes a sublist of a specific list entity model from a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -939,7 +1290,7 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// The sublist ID. @@ -947,20 +1298,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, int subListId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteSubListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteSubListWithHttpMessagesAsync(appId, versionId, clEntityId, subListId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteSubListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, subListId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates one of the closed list's sublists. + /// Updates one of the list entity's sublists in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -968,7 +1329,7 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// The sublist ID. @@ -980,20 +1341,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, int subListId, WordListBaseUpdateObject wordListBaseUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateSubListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateSubListWithHttpMessagesAsync(appId, versionId, clEntityId, subListId, wordListBaseUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateSubListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, subListId, wordListBaseUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Suggests examples that would improve the accuracy of the intent model. + /// Suggests example utterances that would improve the accuracy of the intent + /// model in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1009,21 +1381,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetIntentSuggestionsAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListIntentSuggestionsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetIntentSuggestionsWithHttpMessagesAsync(appId, versionId, intentId, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListIntentSuggestionsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get suggestion examples that would improve the accuracy of the entity - /// model. + /// Get suggested example utterances that would improve the accuracy of the + /// entity model in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1039,20 +1421,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetEntitySuggestionsAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListEntitySuggestionsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetEntitySuggestionsWithHttpMessagesAsync(appId, versionId, entityId, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListEntitySuggestionsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a list to an existing closed list. + /// Adds a sublist to an existing list entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1060,7 +1452,7 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The closed list entity extractor ID. + /// The list entity extractor ID. /// /// /// Words list. @@ -1068,21 +1460,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddSubListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddSubListWithHttpMessagesAsync(appId, versionId, clEntityId, wordListCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddSubListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, wordListCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a customizable prebuilt domain along with all of its models to this - /// application. + /// Adds a customizable prebuilt domain along with all of its intent and entity + /// models in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1095,20 +1497,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> AddCustomPrebuiltDomainAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> AddCustomPrebuiltDomainAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(appId, versionId, prebuiltDomainObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltDomainObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a custom prebuilt intent model to the application. + /// Adds a customizable prebuilt intent model to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1116,26 +1528,37 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// A model object containing the name of the custom prebuilt intent and the - /// name of the domain to which this model belongs. + /// A model object containing the name of the customizable prebuilt intent and + /// the name of the domain to which this model belongs. /// /// /// The cancellation token. /// - public static async Task AddCustomPrebuiltIntentAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCustomPrebuiltIntentAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCustomPrebuiltIntentWithHttpMessagesAsync(appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCustomPrebuiltIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets custom prebuilt intents information of this application. + /// Gets information about customizable prebuilt intents added to a version of + /// the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1145,20 +1568,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCustomPrebuiltIntentsAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCustomPrebuiltIntentsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCustomPrebuiltIntentsWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCustomPrebuiltIntentsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a custom prebuilt entity model to the application. + /// Adds a prebuilt entity model to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1166,26 +1599,36 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// A model object containing the name of the custom prebuilt entity and the - /// name of the domain to which this model belongs. + /// A model object containing the name of the prebuilt entity and the name of + /// the domain to which this model belongs. /// /// /// The cancellation token. /// - public static async Task AddCustomPrebuiltEntityAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCustomPrebuiltEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCustomPrebuiltEntityWithHttpMessagesAsync(appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCustomPrebuiltEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets all custom prebuilt entities information of this application. + /// Gets all prebuilt entities used in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1195,20 +1638,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCustomPrebuiltEntitiesAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCustomPrebuiltEntitiesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCustomPrebuiltEntitiesWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCustomPrebuiltEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets all custom prebuilt models information of this application. + /// Gets all prebuilt intent and entity model information used in a version of + /// this application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1218,20 +1672,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCustomPrebuiltModelsAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCustomPrebuiltModelsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCustomPrebuiltModelsWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCustomPrebuiltModelsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a prebuilt domain's models from the application. + /// Deletes a prebuilt domain's models in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1244,20 +1708,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteCustomPrebuiltDomainAsync(this IModel operations, System.Guid appId, string versionId, string domainName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteCustomPrebuiltDomainAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCustomPrebuiltDomainWithHttpMessagesAsync(appId, versionId, domainName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCustomPrebuiltDomainWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, domainName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the hierarchical entity child model. + /// Gets information about the child's model contained in an hierarchical + /// entity child model in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1273,20 +1748,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetHierarchicalEntityChildAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetHierarchicalEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Renames a single child in an existing hierarchical entity model. + /// Renames a single child in an existing hierarchical entity model in a + /// version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1305,20 +1791,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateHierarchicalEntityChildAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, HierarchicalChildModelUpdateObject hierarchicalChildModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, hierarchicalChildModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateHierarchicalEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hChildId, hierarchicalChildModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a hierarchical entity extractor child from the application. + /// Deletes a hierarchical entity extractor child in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1334,20 +1831,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteHierarchicalEntityChildAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteHierarchicalEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates a single child in an existing hierarchical entity model. + /// Creates a single child in an existing hierarchical entity model in a + /// version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1363,20 +1871,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddHierarchicalEntityChildAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hierarchicalChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddHierarchicalEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hierarchicalChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Creates a single child in an existing composite entity model. + /// Creates a single child in an existing composite entity model in a version + /// of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1392,20 +1911,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddCompositeEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCompositeEntityChildAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCompositeEntityChildWithHttpMessagesAsync(appId, versionId, cEntityId, compositeChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCompositeEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, compositeChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a composite entity extractor child from the application. + /// Deletes a composite entity extractor child from a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1421,20 +1951,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteCompositeEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteCompositeEntityChildAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCompositeEntityChildWithHttpMessagesAsync(appId, versionId, cEntityId, cChildId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCompositeEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, cChildId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the regex entity models. + /// Gets information about the regular expression entity models in a version of + /// the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1450,20 +1991,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetRegexEntityInfosAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListRegexEntityInfosAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetRegexEntityInfosWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListRegexEntityInfosWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a regex entity model to the application version. + /// Adds a regular expression entity model to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1471,26 +2022,37 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// A model object containing the name and regex pattern for the new regex - /// entity extractor. + /// A model object containing the name and regex pattern for the new regular + /// expression entity extractor. /// /// /// The cancellation token. /// - public static async Task CreateRegexEntityModelAsync(this IModel operations, System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateRegexEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateRegexEntityModelWithHttpMessagesAsync(appId, versionId, regexEntityExtractorCreateObj, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateRegexEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, regexEntityExtractorCreateObj, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get information about the Pattern.Any entity models. + /// Get information about the Pattern.Any entity models in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1506,20 +2068,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetPatternAnyEntityInfosAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPatternAnyEntityInfosAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPatternAnyEntityInfosWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPatternAnyEntityInfosWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a pattern.any entity extractor to the application. + /// Adds a pattern.any entity extractor to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1533,20 +2105,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreatePatternAnyEntityModelAsync(this IModel operations, System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreatePatternAnyEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreatePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, extractorCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreatePatternAnyEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, extractorCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get All Entity Roles for a given entity + /// Get all roles for an entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1559,20 +2141,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create an entity role for an entity in the application. + /// Create an entity role in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1588,20 +2180,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreateEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get All Entity Roles for a given entity + /// Get a prebuilt entity's roles in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1614,20 +2216,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetPrebuiltEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPrebuiltEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPrebuiltEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPrebuiltEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create an entity role for an entity in the application. + /// Create a role for a prebuilt entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1643,20 +2255,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreatePrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreatePrebuiltEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreatePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreatePrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a list entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1669,20 +2291,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetClosedListEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListClosedListEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetClosedListEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListClosedListEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create an entity role for an entity in the application. + /// Create a role for a list entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1698,20 +2330,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreateClosedListEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateClosedListEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateClosedListEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a regular expression entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1724,20 +2367,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetRegexEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListRegexEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetRegexEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListRegexEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create an entity role for an entity in the application. + /// Create a role for an regular expression entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1753,20 +2407,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreateRegexEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateRegexEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateRegexEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a composite entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1779,20 +2443,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetCompositeEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCompositeEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCompositeEntityRolesWithHttpMessagesAsync(appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCompositeEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create an entity role for an entity in the application. + /// Create a role for a composite entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1808,20 +2482,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreateCompositeEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateCompositeEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEntityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateCompositeEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a Pattern.any entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1834,20 +2518,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetPatternAnyEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPatternAnyEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPatternAnyEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPatternAnyEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create an entity role for an entity in the application. + /// Create a role for an Pattern.any entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1863,20 +2557,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreatePatternAnyEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreatePatternAnyEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreatePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreatePatternAnyEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a hierarchical entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1889,20 +2593,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetHierarchicalEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListHierarchicalEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetHierarchicalEntityRolesWithHttpMessagesAsync(appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListHierarchicalEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create an entity role for an entity in the application. + /// Create a role for an hierarchical entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1918,20 +2632,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreateHierarchicalEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateHierarchicalEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, hEntityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateHierarchicalEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get All Entity Roles for a given entity + /// Get all roles for a prebuilt entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1944,20 +2668,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetCustomPrebuiltEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCustomPrebuiltEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCustomPrebuiltEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Create an entity role for an entity in the application. + /// Create a role for a prebuilt entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1973,20 +2707,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreateCustomPrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateCustomPrebuiltEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get the explicit list of the pattern.any entity. + /// Get the explicit (exception) list of the pattern.any entity in a version of + /// the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1999,20 +2744,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetExplicitListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> GetExplicitListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetExplicitListWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetExplicitListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Add a new item to the explicit list for the Pattern.Any entity. + /// Add a new exception to the explicit list for the Pattern.Any entity in a + /// version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2028,20 +2784,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddExplicitListItemAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddExplicitListItemAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddExplicitListItemWithHttpMessagesAsync(appId, versionId, entityId, item, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddExplicitListItemWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, item, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information of a regex entity model. + /// Gets information about a regular expression entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2049,25 +2816,35 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The regex entity model ID. + /// The regular expression entity model ID. /// /// /// The cancellation token. /// - public static async Task GetRegexEntityEntityInfoAsync(this IModel operations, System.Guid appId, string versionId, System.Guid regexEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetRegexEntityEntityInfoAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetRegexEntityEntityInfoWithHttpMessagesAsync(appId, versionId, regexEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetRegexEntityEntityInfoWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, regexEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the regex entity model . + /// Updates the regular expression entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2075,7 +2852,7 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The regex entity extractor ID. + /// The regular expression entity extractor ID. /// /// /// An object containing the new entity name and regex pattern. @@ -2083,20 +2860,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateRegexEntityModelAsync(this IModel operations, System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateRegexEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateRegexEntityModelWithHttpMessagesAsync(appId, versionId, regexEntityId, regexEntityUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateRegexEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, regexEntityId, regexEntityUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a regex entity model from the application. + /// Deletes a regular expression entity from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2104,25 +2891,36 @@ public static partial class ModelExtensions /// The version ID. /// /// - /// The regex entity extractor ID. + /// The regular expression entity extractor ID. /// /// /// The cancellation token. /// - public static async Task DeleteRegexEntityModelAsync(this IModel operations, System.Guid appId, string versionId, System.Guid regexEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteRegexEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteRegexEntityModelWithHttpMessagesAsync(appId, versionId, regexEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteRegexEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, regexEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets information about the application version's Pattern.Any model. + /// Gets information about the Pattern.Any model in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2135,20 +2933,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetPatternAnyEntityInfoAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPatternAnyEntityInfoAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPatternAnyEntityInfoWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPatternAnyEntityInfoWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the name and explicit list of a Pattern.Any entity model. + /// Updates the name and explicit (exception) list of a Pattern.Any entity + /// model in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2164,20 +2973,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdatePatternAnyEntityModelAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdatePatternAnyEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, entityId, patternAnyUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePatternAnyEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, patternAnyUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes a Pattern.Any entity extractor from the application. + /// Deletes a Pattern.Any entity extractor from a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2190,20 +3009,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeletePatternAnyEntityModelAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePatternAnyEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePatternAnyEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get one entity role for a given entity + /// Get one role for a given entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2219,20 +3048,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Update an entity role for a given entity + /// Update a role for a given entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2251,20 +3090,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete an entity role. + /// Delete an entity role in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2280,20 +3129,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get one entity role for a given entity + /// Get one role for a given prebuilt entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2309,20 +3168,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetPrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPrebuiltEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Update an entity role for a given entity + /// Update a role for a given prebuilt entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2341,20 +3210,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdatePrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdatePrebuiltEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete an entity role. + /// Delete a role in a prebuilt entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2370,20 +3249,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeletePrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePrebuiltEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get one entity role for a given entity + /// Get one role for a given list entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2399,20 +3288,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetClosedListEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetClosedListEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetClosedListEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Update an entity role for a given entity + /// Update a role for a given list entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2431,20 +3330,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateClosedListEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateClosedListEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateClosedListEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete an entity role. + /// Delete a role for a given list entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2460,20 +3369,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteClosedListEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteClosedListEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteClosedListEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get one entity role for a given entity + /// Get one role for a given regular expression entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2489,20 +3409,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetRegexEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetRegexEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetRegexEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Update an entity role for a given entity + /// Update a role for a given regular expression entity in a version of the + /// application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2521,20 +3452,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateRegexEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateRegexEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateRegexEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete an entity role. + /// Delete a role for a given regular expression in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2550,20 +3492,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteRegexEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteRegexEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteRegexEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get one entity role for a given entity + /// Get one role for a given composite entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2579,20 +3531,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetCompositeEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetCompositeEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetCompositeEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Update an entity role for a given entity + /// Update a role for a given composite entity in a version of the application /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2611,20 +3573,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateCompositeEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateCompositeEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEntityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateCompositeEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete an entity role. + /// Delete a role for a given composite entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2640,20 +3612,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteCompositeEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteCompositeEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCompositeEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get one entity role for a given entity + /// Get one role for a given Pattern.any entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2669,20 +3652,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetPatternAnyEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPatternAnyEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPatternAnyEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Update an entity role for a given entity + /// Update a role for a given Pattern.any entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2701,20 +3695,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdatePatternAnyEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdatePatternAnyEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePatternAnyEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete an entity role. + /// Delete a role for a given Pattern.any entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2730,20 +3735,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeletePatternAnyEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePatternAnyEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePatternAnyEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get one entity role for a given entity + /// Get one role for a given hierarchical entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2759,20 +3775,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetHierarchicalEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetHierarchicalEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, hEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetHierarchicalEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Update an entity role for a given entity + /// Update a role for a given hierarchical entity in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2791,20 +3818,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateHierarchicalEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateHierarchicalEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, hEntityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateHierarchicalEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete an entity role. + /// Delete a role for a given hierarchical role in a version of the + /// application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2820,20 +3858,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteHierarchicalEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteHierarchicalEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, hEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteHierarchicalEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get one entity role for a given entity + /// Get one role for a given prebuilt entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2849,20 +3897,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetCustomEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetCustomEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCustomEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetCustomEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Update an entity role for a given entity + /// Update a role for a given prebuilt entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2881,20 +3939,30 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateCustomPrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateCustomPrebuiltEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete an entity role. + /// Delete a role for a given prebuilt entity in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2910,20 +3978,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteCustomEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteCustomEntityRoleAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCustomEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCustomEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Get the explicit list of the pattern.any entity. + /// Get the explicit (exception) list of the pattern.any entity in a version of + /// the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2939,20 +4018,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetExplicitListItemAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, long itemId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetExplicitListItemAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetExplicitListItemWithHttpMessagesAsync(appId, versionId, entityId, itemId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetExplicitListItemWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, itemId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates an explicit list item for a Pattern.Any entity. + /// Updates an explicit (exception) list item for a Pattern.Any entity in a + /// version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -2971,20 +4061,31 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task UpdateExplicitListItemAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, long itemId, ExplicitListItemUpdateObject item, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateExplicitListItemAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, ExplicitListItemUpdateObject item, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateExplicitListItemWithHttpMessagesAsync(appId, versionId, entityId, itemId, item, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateExplicitListItemWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, itemId, item, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Delete the explicit list item from the Pattern.any explicit list. + /// Delete an item from the explicit (exception) list for a Pattern.any entity + /// in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -3000,9 +4101,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteExplicitListItemAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, long itemId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteExplicitListItemAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteExplicitListItemWithHttpMessagesAsync(appId, versionId, entityId, itemId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteExplicitListItemWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, itemId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationInfoResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationInfoResponse.cs index 50d81f3d33344..ea43d0838d096 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationInfoResponse.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationInfoResponse.cs @@ -33,12 +33,12 @@ public ApplicationInfoResponse() /// The name of the application. /// The description of the /// application. - /// The culture of the application. E.g.: - /// en-us. + /// The culture of the application. For example, + /// "en-us". /// Defines the scenario for the new - /// application. Optional. E.g.: IoT. + /// application. Optional. For example, IoT. /// The domain for the new application. Optional. - /// E.g.: Comics. + /// For example, Comics. /// Amount of model versions within the /// application. /// The version's creation @@ -89,21 +89,21 @@ public ApplicationInfoResponse() public string Description { get; set; } /// - /// Gets or sets the culture of the application. E.g.: en-us. + /// Gets or sets the culture of the application. For example, "en-us". /// [JsonProperty(PropertyName = "culture")] public string Culture { get; set; } /// /// Gets or sets defines the scenario for the new application. - /// Optional. E.g.: IoT. + /// Optional. For example, IoT. /// [JsonProperty(PropertyName = "usageScenario")] public string UsageScenario { get; set; } /// - /// Gets or sets the domain for the new application. Optional. E.g.: - /// Comics. + /// Gets or sets the domain for the new application. Optional. For + /// example, Comics. /// [JsonProperty(PropertyName = "domain")] public string Domain { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationSettingUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationSettingUpdateObject.cs index b2402f473976c..110ea3001a4b1 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationSettingUpdateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationSettingUpdateObject.cs @@ -31,12 +31,12 @@ public ApplicationSettingUpdateObject() /// Initializes a new instance of the ApplicationSettingUpdateObject /// class. /// - /// Setting your application as public - /// allows other people to use your application's endpoint using their - /// own keys. - public ApplicationSettingUpdateObject(bool publicProperty = default(bool)) + /// Setting your application as public allows + /// other people to use your application's endpoint using their own + /// keys. + public ApplicationSettingUpdateObject(bool isPublic = default(bool)) { - PublicProperty = publicProperty; + IsPublic = isPublic; CustomInit(); } @@ -50,7 +50,7 @@ public ApplicationSettingUpdateObject() /// to use your application's endpoint using their own keys. /// [JsonProperty(PropertyName = "public")] - public bool PublicProperty { get; set; } + public bool IsPublic { get; set; } } } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationSettings.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationSettings.cs index cfaf0270e5052..64ba9412abe25 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationSettings.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ApplicationSettings.cs @@ -32,7 +32,7 @@ public ApplicationSettings() /// The application ID. /// Setting your application as public allows /// other people to use your application's endpoint using their own - /// keys. + /// keys for billing purposes. public ApplicationSettings(System.Guid id, bool isPublic) { Id = id; @@ -53,7 +53,8 @@ public ApplicationSettings(System.Guid id, bool isPublic) /// /// Gets or sets setting your application as public allows other people - /// to use your application's endpoint using their own keys. + /// to use your application's endpoint using their own keys for billing + /// purposes. /// [JsonProperty(PropertyName = "public")] public bool IsPublic { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureAccountInfoObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureAccountInfoObject.cs index 6764423341f3c..95d81e2b76f8d 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureAccountInfoObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureAccountInfoObject.cs @@ -15,7 +15,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Defines the azure account information object. + /// Defines the Azure account information object. /// public partial class AzureAccountInfoObject { @@ -30,10 +30,10 @@ public AzureAccountInfoObject() /// /// Initializes a new instance of the AzureAccountInfoObject class. /// - /// The id for the azure + /// The id for the Azure /// subscription. - /// The azure resource group name. - /// The azure account name. + /// The Azure resource group name. + /// The Azure account name. public AzureAccountInfoObject(string azureSubscriptionId, string resourceGroup, string accountName) { AzureSubscriptionId = azureSubscriptionId; @@ -48,19 +48,19 @@ public AzureAccountInfoObject(string azureSubscriptionId, string resourceGroup, partial void CustomInit(); /// - /// Gets or sets the id for the azure subscription. + /// Gets or sets the id for the Azure subscription. /// [JsonProperty(PropertyName = "azureSubscriptionId")] public string AzureSubscriptionId { get; set; } /// - /// Gets or sets the azure resource group name. + /// Gets or sets the Azure resource group name. /// [JsonProperty(PropertyName = "resourceGroup")] public string ResourceGroup { get; set; } /// - /// Gets or sets the azure account name. + /// Gets or sets the Azure account name. /// [JsonProperty(PropertyName = "accountName")] public string AccountName { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureClouds.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureClouds.cs new file mode 100644 index 0000000000000..220e207dd972a --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureClouds.cs @@ -0,0 +1,60 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for AzureClouds. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AzureClouds + { + [EnumMember(Value = "com")] + Com, + [EnumMember(Value = "us")] + Us + } + internal static class AzureCloudsEnumExtension + { + internal static string ToSerializedValue(this AzureClouds? value) + { + return value == null ? null : ((AzureClouds)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this AzureClouds value) + { + switch( value ) + { + case AzureClouds.Com: + return "com"; + case AzureClouds.Us: + return "us"; + } + return null; + } + + internal static AzureClouds? ParseAzureClouds(this string value) + { + switch( value ) + { + case "com": + return AzureClouds.Com; + case "us": + return AzureClouds.Us; + } + return null; + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureRegions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureRegions.cs new file mode 100644 index 0000000000000..97c96745f59ff --- /dev/null +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureRegions.cs @@ -0,0 +1,126 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for AzureRegions. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AzureRegions + { + [EnumMember(Value = "westus")] + Westus, + [EnumMember(Value = "westeurope")] + Westeurope, + [EnumMember(Value = "southeastasia")] + Southeastasia, + [EnumMember(Value = "eastus2")] + Eastus2, + [EnumMember(Value = "westcentralus")] + Westcentralus, + [EnumMember(Value = "westus2")] + Westus2, + [EnumMember(Value = "eastus")] + Eastus, + [EnumMember(Value = "southcentralus")] + Southcentralus, + [EnumMember(Value = "northeurope")] + Northeurope, + [EnumMember(Value = "eastasia")] + Eastasia, + [EnumMember(Value = "australiaeast")] + Australiaeast, + [EnumMember(Value = "brazilsouth")] + Brazilsouth, + [EnumMember(Value = "virginia")] + Virginia + } + internal static class AzureRegionsEnumExtension + { + internal static string ToSerializedValue(this AzureRegions? value) + { + return value == null ? null : ((AzureRegions)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this AzureRegions value) + { + switch( value ) + { + case AzureRegions.Westus: + return "westus"; + case AzureRegions.Westeurope: + return "westeurope"; + case AzureRegions.Southeastasia: + return "southeastasia"; + case AzureRegions.Eastus2: + return "eastus2"; + case AzureRegions.Westcentralus: + return "westcentralus"; + case AzureRegions.Westus2: + return "westus2"; + case AzureRegions.Eastus: + return "eastus"; + case AzureRegions.Southcentralus: + return "southcentralus"; + case AzureRegions.Northeurope: + return "northeurope"; + case AzureRegions.Eastasia: + return "eastasia"; + case AzureRegions.Australiaeast: + return "australiaeast"; + case AzureRegions.Brazilsouth: + return "brazilsouth"; + case AzureRegions.Virginia: + return "virginia"; + } + return null; + } + + internal static AzureRegions? ParseAzureRegions(this string value) + { + switch( value ) + { + case "westus": + return AzureRegions.Westus; + case "westeurope": + return AzureRegions.Westeurope; + case "southeastasia": + return AzureRegions.Southeastasia; + case "eastus2": + return AzureRegions.Eastus2; + case "westcentralus": + return AzureRegions.Westcentralus; + case "westus2": + return AzureRegions.Westus2; + case "eastus": + return AzureRegions.Eastus; + case "southcentralus": + return AzureRegions.Southcentralus; + case "northeurope": + return AzureRegions.Northeurope; + case "eastasia": + return AzureRegions.Eastasia; + case "australiaeast": + return AzureRegions.Australiaeast; + case "brazilsouth": + return AzureRegions.Brazilsouth; + case "virginia": + return AzureRegions.Virginia; + } + return null; + } + } +} diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/BatchLabelExample.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/BatchLabelExample.cs index 980a2636ebc84..0436c5bef364a 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/BatchLabelExample.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/BatchLabelExample.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Response when adding a batch of labeled examples. + /// Response when adding a batch of labeled example utterances. /// public partial class BatchLabelExample { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedList.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedList.cs index 71dbc9ef5974a..52841b4ccf864 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedList.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedList.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Exported Model - A Closed List. + /// Exported Model - A list entity. /// public partial class ClosedList { @@ -31,8 +31,8 @@ public ClosedList() /// /// Initializes a new instance of the ClosedList class. /// - /// Name of the closed list feature. - /// Sublists for the feature. + /// Name of the list entity. + /// Sublists for the list entity. public ClosedList(string name = default(string), IList subLists = default(IList), IList roles = default(IList)) { Name = name; @@ -47,13 +47,13 @@ public ClosedList() partial void CustomInit(); /// - /// Gets or sets name of the closed list feature. + /// Gets or sets name of the list entity. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } /// - /// Gets or sets sublists for the feature. + /// Gets or sets sublists for the list entity. /// [JsonProperty(PropertyName = "subLists")] public IList SubLists { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListEntityExtractor.cs index 3a86d19687267..bc2915d4b7535 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListEntityExtractor.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListEntityExtractor.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Closed List Entity Extractor. + /// List Entity Extractor. /// public partial class ClosedListEntityExtractor { @@ -35,13 +35,13 @@ public ClosedListEntityExtractor() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. - /// List of sub-lists. + /// List of sublists. public ClosedListEntityExtractor(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), IList roles = default(IList), IList subLists = default(IList)) { Id = id; @@ -79,9 +79,9 @@ public ClosedListEntityExtractor() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } @@ -92,7 +92,7 @@ public ClosedListEntityExtractor() public IList Roles { get; set; } /// - /// Gets or sets list of sub-lists. + /// Gets or sets list of sublists. /// [JsonProperty(PropertyName = "subLists")] public IList SubLists { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelCreateObject.cs index a683761890e65..baa654b40e519 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelCreateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelCreateObject.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Object model for creating a closed list. + /// Object model for creating a list entity. /// public partial class ClosedListModelCreateObject { @@ -34,7 +34,7 @@ public ClosedListModelCreateObject() /// class. /// /// Sublists for the feature. - /// Name of the closed list feature. + /// Name of the list entity. public ClosedListModelCreateObject(IList subLists = default(IList), string name = default(string)) { SubLists = subLists; @@ -54,7 +54,7 @@ public ClosedListModelCreateObject() public IList SubLists { get; set; } /// - /// Gets or sets name of the closed list feature. + /// Gets or sets name of the list entity. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelPatchObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelPatchObject.cs index 5b63a0caecc80..f83f638a355e2 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelPatchObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelPatchObject.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Object model for adding a batch of sublists to an existing closedlist. + /// Object model for adding a batch of sublists to an existing list entity. /// public partial class ClosedListModelPatchObject { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelUpdateObject.cs index 9c4fded4d46f4..24506d60e4324 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelUpdateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ClosedListModelUpdateObject.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Object model for updating a closed list. + /// Object model for updating a list entity. /// public partial class ClosedListModelUpdateObject { @@ -34,7 +34,7 @@ public ClosedListModelUpdateObject() /// class. /// /// The new sublists for the feature. - /// The new name of the closed list feature. + /// The new name of the list entity. public ClosedListModelUpdateObject(IList subLists = default(IList), string name = default(string)) { SubLists = subLists; @@ -54,7 +54,7 @@ public ClosedListModelUpdateObject() public IList SubLists { get; set; } /// - /// Gets or sets the new name of the closed list feature. + /// Gets or sets the new name of the list entity. /// [JsonProperty(PropertyName = "name")] public string Name { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CompositeEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CompositeEntityExtractor.cs index 07602c9c6a86f..bd439f52867f4 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CompositeEntityExtractor.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CompositeEntityExtractor.cs @@ -35,9 +35,9 @@ public CompositeEntityExtractor() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. @@ -79,9 +79,9 @@ public CompositeEntityExtractor() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CompositeEntityModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CompositeEntityModel.cs index 824f930975a73..999f55455c3ff 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CompositeEntityModel.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CompositeEntityModel.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// A composite entity. + /// A composite entity extractor. /// public partial class CompositeEntityModel { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CustomPrebuiltModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CustomPrebuiltModel.cs index 40ca335c8541e..ba2a1a2c36c47 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CustomPrebuiltModel.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/CustomPrebuiltModel.cs @@ -35,9 +35,9 @@ public CustomPrebuiltModel() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. @@ -82,9 +82,9 @@ public CustomPrebuiltModel() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntitiesSuggestionExample.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntitiesSuggestionExample.cs index a948213835d2f..09de3a6dea678 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntitiesSuggestionExample.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntitiesSuggestionExample.cs @@ -31,8 +31,8 @@ public EntitiesSuggestionExample() /// /// Initializes a new instance of the EntitiesSuggestionExample class. /// - /// The utterance. E.g.: what's the weather like in - /// seattle? + /// The utterance. For example, "What's the weather + /// like in seattle?" /// The utterance tokenized. /// Predicted/suggested /// intents. @@ -53,8 +53,8 @@ public EntitiesSuggestionExample() partial void CustomInit(); /// - /// Gets or sets the utterance. E.g.: what's the weather like in - /// seattle? + /// Gets or sets the utterance. For example, "What's the weather like + /// in seattle?" /// [JsonProperty(PropertyName = "text")] public string Text { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntityExtractor.cs index ba238c2a2084d..36a369ef7140b 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntityExtractor.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntityExtractor.cs @@ -35,9 +35,9 @@ public EntityExtractor() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. @@ -82,9 +82,9 @@ public EntityExtractor() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntityModelInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntityModelInfo.cs index 56e75ce21e3f7..ec78b0cf517ad 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntityModelInfo.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/EntityModelInfo.cs @@ -34,9 +34,9 @@ public EntityModelInfo() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExampleLabelObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExampleLabelObject.cs index ac5dbdebb58ce..325a931eac02c 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExampleLabelObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExampleLabelObject.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// A labeled example. + /// A labeled example utterance. /// public partial class ExampleLabelObject { @@ -31,11 +31,11 @@ public ExampleLabelObject() /// /// Initializes a new instance of the ExampleLabelObject class. /// - /// The sample's utterance. + /// The example utterance. /// The identified entities within the - /// utterance. + /// example utterance. /// The identified intent representing the - /// utterance. + /// example utterance. public ExampleLabelObject(string text = default(string), IList entityLabels = default(IList), string intentName = default(string)) { Text = text; @@ -50,19 +50,20 @@ public ExampleLabelObject() partial void CustomInit(); /// - /// Gets or sets the sample's utterance. + /// Gets or sets the example utterance. /// [JsonProperty(PropertyName = "text")] public string Text { get; set; } /// - /// Gets or sets the identified entities within the utterance. + /// Gets or sets the identified entities within the example utterance. /// [JsonProperty(PropertyName = "entityLabels")] public IList EntityLabels { get; set; } /// - /// Gets or sets the identified intent representing the utterance. + /// Gets or sets the identified intent representing the example + /// utterance. /// [JsonProperty(PropertyName = "intentName")] public string IntentName { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItem.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItem.cs index 1682fdb1f1982..a60ada1e4bb3c 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItem.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItem.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Explicit list item + /// Explicit (exception) list item /// public partial class ExplicitListItem { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItemCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItemCreateObject.cs index d1ae335435656..6c6fedd321bc7 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItemCreateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItemCreateObject.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Object model for creating an explicit list item. + /// Object model for creating an explicit (exception) list item. /// public partial class ExplicitListItemCreateObject { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItemUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItemUpdateObject.cs index 0acecaa002197..7cf7efab2b59c 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItemUpdateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ExplicitListItemUpdateObject.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Model object for updating an explicit list item. + /// Model object for updating an explicit (exception) list item. /// public partial class ExplicitListItemUpdateObject { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalChildEntity.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalChildEntity.cs index b1b17ab25afce..99ea4fcb8262a 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalChildEntity.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalChildEntity.cs @@ -34,9 +34,9 @@ public HierarchicalChildEntity() /// The type ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' public HierarchicalChildEntity(System.Guid id, string name = default(string), int? typeId = default(int?), string readableType = default(string)) : base(id, name) @@ -60,9 +60,9 @@ public HierarchicalChildEntity() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityExtractor.cs index b014d927f8834..5a0338485cab2 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityExtractor.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityExtractor.cs @@ -37,9 +37,9 @@ public HierarchicalEntityExtractor() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. @@ -81,9 +81,9 @@ public HierarchicalEntityExtractor() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityModel.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityModel.cs index 1c5b66cc8f2c0..176d422b6c670 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityModel.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/HierarchicalEntityModel.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// A Hierarchical Entity Extractor. + /// A hierarchical entity extractor. /// public partial class HierarchicalEntityModel { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/IntentClassifier.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/IntentClassifier.cs index 54897ebc1052c..1750f15959e96 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/IntentClassifier.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/IntentClassifier.cs @@ -32,9 +32,9 @@ public IntentClassifier() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/IntentsSuggestionExample.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/IntentsSuggestionExample.cs index f1acf5a80eedf..41ed00d9eb24a 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/IntentsSuggestionExample.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/IntentsSuggestionExample.cs @@ -31,9 +31,9 @@ public IntentsSuggestionExample() /// /// Initializes a new instance of the IntentsSuggestionExample class. /// - /// The utterance. E.g.: what's the weather like in - /// seattle? - /// The utterance tokenized. + /// The utterance. For example, "What's the weather + /// like in seattle?" + /// The tokenized utterance. /// Predicted/suggested /// intents. /// Predicted/suggested @@ -53,14 +53,14 @@ public IntentsSuggestionExample() partial void CustomInit(); /// - /// Gets or sets the utterance. E.g.: what's the weather like in - /// seattle? + /// Gets or sets the utterance. For example, "What's the weather like + /// in seattle?" /// [JsonProperty(PropertyName = "text")] public string Text { get; set; } /// - /// Gets or sets the utterance tokenized. + /// Gets or sets the tokenized utterance. /// [JsonProperty(PropertyName = "tokenizedText")] public IList TokenizedText { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/JSONModelFeature.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/JSONModelFeature.cs index f3b46c2a7a354..60028d4fed24b 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/JSONModelFeature.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/JSONModelFeature.cs @@ -34,18 +34,15 @@ public JSONModelFeature() /// The Phraselist name. /// List of comma-separated phrases that represent /// the Phraselist. - /// An exchangeable phrase list feature are serves - /// as single feature to the LUIS underlying training algorithm. It is - /// used as a lexicon lookup feature where its value is 1 if the - /// lexicon contains a given word or 0 if it doesn’t. Think of an - /// exchangeable as a synonyms list. A non-exchangeable phrase list - /// feature has all the phrases in the list serve as separate features - /// to the underlying training algorithm. So, if you your phrase list - /// feature contains 5 phrases, they will be mapped to 5 separate - /// features. You can think of the non-exchangeable phrase list feature - /// as an additional bag of words that you are willing to add to LUIS - /// existing vocabulary features. Think of a non-exchangeable as set of - /// different words. Default value is true. + /// An interchangeable phrase list feature serves as + /// a list of synonyms for training. A non-exchangeable phrase list + /// serves as separate features for training. So, if your + /// non-interchangeable phrase list contains 5 phrases, they will be + /// mapped to 5 separate features. You can think of the + /// non-interchangeable phrase list as an additional bag of words to + /// add to LUIS existing vocabulary features. It is used as a lexicon + /// lookup feature where its value is 1 if the lexicon contains a given + /// word or 0 if it doesn’t. Default value is true. public JSONModelFeature(bool? activated = default(bool?), string name = default(string), string words = default(string), bool? mode = default(bool?)) { Activated = activated; @@ -80,18 +77,15 @@ public JSONModelFeature() public string Words { get; set; } /// - /// Gets or sets an exchangeable phrase list feature are serves as - /// single feature to the LUIS underlying training algorithm. It is - /// used as a lexicon lookup feature where its value is 1 if the - /// lexicon contains a given word or 0 if it doesn’t. Think of an - /// exchangeable as a synonyms list. A non-exchangeable phrase list - /// feature has all the phrases in the list serve as separate features - /// to the underlying training algorithm. So, if you your phrase list - /// feature contains 5 phrases, they will be mapped to 5 separate - /// features. You can think of the non-exchangeable phrase list feature - /// as an additional bag of words that you are willing to add to LUIS - /// existing vocabulary features. Think of a non-exchangeable as set of - /// different words. Default value is true. + /// Gets or sets an interchangeable phrase list feature serves as a + /// list of synonyms for training. A non-exchangeable phrase list + /// serves as separate features for training. So, if your + /// non-interchangeable phrase list contains 5 phrases, they will be + /// mapped to 5 separate features. You can think of the + /// non-interchangeable phrase list as an additional bag of words to + /// add to LUIS existing vocabulary features. It is used as a lexicon + /// lookup feature where its value is 1 if the lexicon contains a given + /// word or 0 if it doesn’t. Default value is true. /// [JsonProperty(PropertyName = "mode")] public bool? Mode { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabelExampleResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabelExampleResponse.cs index a9346e8f1afe3..3899b6c314ee4 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabelExampleResponse.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabelExampleResponse.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Response when adding a labeled example. + /// Response when adding a labeled example utterance. /// public partial class LabelExampleResponse { @@ -29,7 +29,7 @@ public LabelExampleResponse() /// /// Initializes a new instance of the LabelExampleResponse class. /// - /// The sample's utterance. + /// The example utterance. /// The newly created sample ID. public LabelExampleResponse(string utteranceText = default(string), int? exampleId = default(int?)) { @@ -44,7 +44,7 @@ public LabelExampleResponse() partial void CustomInit(); /// - /// Gets or sets the sample's utterance. + /// Gets or sets the example utterance. /// [JsonProperty(PropertyName = "UtteranceText")] public string UtteranceText { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabelTextObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabelTextObject.cs index 12e742afa9929..abd1abef41f36 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabelTextObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabelTextObject.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// An object containing the example's text. + /// An object containing the example utterance's text. /// public partial class LabelTextObject { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabeledUtterance.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabeledUtterance.cs index 90c0d40ddbb73..8adefe7a1a8bc 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabeledUtterance.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LabeledUtterance.cs @@ -32,8 +32,8 @@ public LabeledUtterance() /// Initializes a new instance of the LabeledUtterance class. /// /// ID of Labeled Utterance. - /// The utterance. E.g.: what's the weather like in - /// seattle? + /// The utterance. For example, "What's the weather + /// like in seattle?" /// The utterance tokenized. /// The intent matching the example. /// The entities matching the @@ -64,8 +64,8 @@ public LabeledUtterance() public int? Id { get; set; } /// - /// Gets or sets the utterance. E.g.: what's the weather like in - /// seattle? + /// Gets or sets the utterance. For example, "What's the weather like + /// in seattle?" /// [JsonProperty(PropertyName = "text")] public string Text { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LuisApp.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LuisApp.cs index 1c31aefdf5a9b..787061c4ea4f0 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LuisApp.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/LuisApp.cs @@ -41,7 +41,7 @@ public LuisApp() /// en-us. /// List of intents. /// List of entities. - /// List of closed lists. + /// List of list entities. /// List of composite entities. /// List of Pattern.Any /// entities. @@ -51,7 +51,7 @@ public LuisApp() /// List of pattern features. /// List of model features. /// List of patterns. - /// List of sample utterances. + /// List of example utterances. public LuisApp(IDictionary additionalProperties = default(IDictionary), string name = default(string), string versionId = default(string), string desc = default(string), string culture = default(string), IList intents = default(IList), IList entities = default(IList), IList closedLists = default(IList), IList composites = default(IList), IList patternAnyEntities = default(IList), IList regexEntities = default(IList), IList prebuiltEntities = default(IList), IList regexFeatures = default(IList), IList modelFeatures = default(IList), IList patterns = default(IList), IList utterances = default(IList)) { AdditionalProperties = additionalProperties; @@ -122,7 +122,7 @@ public LuisApp() public IList Entities { get; set; } /// - /// Gets or sets list of closed lists. + /// Gets or sets list of list entities. /// [JsonProperty(PropertyName = "closedLists")] public IList ClosedLists { get; set; } @@ -170,7 +170,7 @@ public LuisApp() public IList Patterns { get; set; } /// - /// Gets or sets list of sample utterances. + /// Gets or sets list of example utterances. /// [JsonProperty(PropertyName = "utterances")] public IList Utterances { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ModelInfo.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ModelInfo.cs index 89a0b6f8832b7..6900a36b96506 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ModelInfo.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ModelInfo.cs @@ -33,9 +33,9 @@ public ModelInfo() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. @@ -74,9 +74,9 @@ public ModelInfo() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ModelInfoResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ModelInfoResponse.cs index cf424c746e18f..27daab0d6a440 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ModelInfoResponse.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/ModelInfoResponse.cs @@ -35,18 +35,19 @@ public ModelInfoResponse() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. /// List of child entities. - /// List of sub-lists. + /// List of sublists. /// The domain name. /// The intent name or entity /// name. - /// The Regex entity pattern. + /// The Regular Expression entity + /// pattern. public ModelInfoResponse(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), IList roles = default(IList), IList children = default(IList), IList subLists = default(IList), string customPrebuiltDomainName = default(string), string customPrebuiltModelName = default(string), string regexPattern = default(string), IList explicitList = default(IList)) { Id = id; @@ -89,9 +90,9 @@ public ModelInfoResponse() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } @@ -108,7 +109,7 @@ public ModelInfoResponse() public IList Children { get; set; } /// - /// Gets or sets list of sub-lists. + /// Gets or sets list of sublists. /// [JsonProperty(PropertyName = "subLists")] public IList SubLists { get; set; } @@ -126,7 +127,7 @@ public ModelInfoResponse() public string CustomPrebuiltModelName { get; set; } /// - /// Gets or sets the Regex entity pattern. + /// Gets or sets the Regular Expression entity pattern. /// [JsonProperty(PropertyName = "regexPattern")] public string RegexPattern { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PatternAnyEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PatternAnyEntityExtractor.cs index 4a3ab5f6bbd2f..0bd78841be3c5 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PatternAnyEntityExtractor.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PatternAnyEntityExtractor.cs @@ -35,9 +35,9 @@ public PatternAnyEntityExtractor() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. @@ -78,9 +78,9 @@ public PatternAnyEntityExtractor() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PhraselistCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PhraselistCreateObject.cs index 75e179d31a829..00465f6309b12 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PhraselistCreateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PhraselistCreateObject.cs @@ -32,19 +32,15 @@ public PhraselistCreateObject() /// List of comma-separated phrases that /// represent the Phraselist. /// The Phraselist name. - /// An exchangeable phrase list feature - /// are serves as single feature to the LUIS underlying training - /// algorithm. It is used as a lexicon lookup feature where its value - /// is 1 if the lexicon contains a given word or 0 if it doesn’t. Think - /// of an exchangeable as a synonyms list. A non-exchangeable phrase - /// list feature has all the phrases in the list serve as separate - /// features to the underlying training algorithm. So, if you your - /// phrase list feature contains 5 phrases, they will be mapped to 5 - /// separate features. You can think of the non-exchangeable phrase - /// list feature as an additional bag of words that you are willing to - /// add to LUIS existing vocabulary features. Think of a - /// non-exchangeable as set of different words. Default value is - /// true. + /// An interchangeable phrase list feature + /// serves as a list of synonyms for training. A non-exchangeable + /// phrase list serves as separate features for training. So, if your + /// non-interchangeable phrase list contains 5 phrases, they will be + /// mapped to 5 separate features. You can think of the + /// non-interchangeable phrase list as an additional bag of words to + /// add to LUIS existing vocabulary features. It is used as a lexicon + /// lookup feature where its value is 1 if the lexicon contains a given + /// word or 0 if it doesn’t. Default value is true. public PhraselistCreateObject(string phrases = default(string), string name = default(string), bool? isExchangeable = default(bool?)) { Phrases = phrases; @@ -72,18 +68,15 @@ public PhraselistCreateObject() public string Name { get; set; } /// - /// Gets or sets an exchangeable phrase list feature are serves as - /// single feature to the LUIS underlying training algorithm. It is - /// used as a lexicon lookup feature where its value is 1 if the - /// lexicon contains a given word or 0 if it doesn’t. Think of an - /// exchangeable as a synonyms list. A non-exchangeable phrase list - /// feature has all the phrases in the list serve as separate features - /// to the underlying training algorithm. So, if you your phrase list - /// feature contains 5 phrases, they will be mapped to 5 separate - /// features. You can think of the non-exchangeable phrase list feature - /// as an additional bag of words that you are willing to add to LUIS - /// existing vocabulary features. Think of a non-exchangeable as set of - /// different words. Default value is true. + /// Gets or sets an interchangeable phrase list feature serves as a + /// list of synonyms for training. A non-exchangeable phrase list + /// serves as separate features for training. So, if your + /// non-interchangeable phrase list contains 5 phrases, they will be + /// mapped to 5 separate features. You can think of the + /// non-interchangeable phrase list as an additional bag of words to + /// add to LUIS existing vocabulary features. It is used as a lexicon + /// lookup feature where its value is 1 if the lexicon contains a given + /// word or 0 if it doesn’t. Default value is true. /// [JsonProperty(PropertyName = "isExchangeable")] public bool? IsExchangeable { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PrebuiltEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PrebuiltEntityExtractor.cs index fda4fd772c886..f2d23b7c1d419 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PrebuiltEntityExtractor.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PrebuiltEntityExtractor.cs @@ -35,9 +35,9 @@ public PrebuiltEntityExtractor() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. @@ -77,9 +77,9 @@ public PrebuiltEntityExtractor() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PublishSettings.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PublishSettings.cs index 07826476373d3..65a8042b70b91 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PublishSettings.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/PublishSettings.cs @@ -31,12 +31,12 @@ public PublishSettings() /// /// The application ID. /// Setting sentiment analysis - /// as true returns the Sentiment of the input utterance along with the + /// as true returns the sentiment of the input utterance along with the /// response - /// Setting speech as public enables - /// speech priming in your app - /// Setting spell checker as public - /// enables spell checking the input utterance. + /// Enables speech priming in your + /// app + /// Enables spell checking of the + /// utterance. public PublishSettings(System.Guid id, bool isSentimentAnalysisEnabled, bool isSpeechEnabled, bool isSpellCheckerEnabled) { Id = id; @@ -59,21 +59,19 @@ public PublishSettings(System.Guid id, bool isSentimentAnalysisEnabled, bool isS /// /// Gets or sets setting sentiment analysis as true returns the - /// Sentiment of the input utterance along with the response + /// sentiment of the input utterance along with the response /// [JsonProperty(PropertyName = "sentimentAnalysis")] public bool IsSentimentAnalysisEnabled { get; set; } /// - /// Gets or sets setting speech as public enables speech priming in - /// your app + /// Gets or sets enables speech priming in your app /// [JsonProperty(PropertyName = "speech")] public bool IsSpeechEnabled { get; set; } /// - /// Gets or sets setting spell checker as public enables spell checking - /// the input utterance. + /// Gets or sets enables spell checking of the utterance. /// [JsonProperty(PropertyName = "spellChecker")] public bool IsSpellCheckerEnabled { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexEntityExtractor.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexEntityExtractor.cs index 56706bb2414d1..7c8ee2ae1f9ce 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexEntityExtractor.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexEntityExtractor.cs @@ -17,7 +17,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Regex Entity Extractor. + /// Regular Expression Entity Extractor. /// public partial class RegexEntityExtractor { @@ -35,13 +35,14 @@ public RegexEntityExtractor() /// The ID of the Entity Model. /// Possible values include: 'Entity /// Extractor', 'Hierarchical Entity Extractor', 'Hierarchical Child - /// Entity Extractor', 'Composite Entity Extractor', 'Closed List - /// Entity Extractor', 'Prebuilt Entity Extractor', 'Intent - /// Classifier', 'Pattern.Any Entity Extractor', 'Regex Entity + /// Entity Extractor', 'Composite Entity Extractor', 'List Entity + /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', + /// 'Pattern.Any Entity Extractor', 'Regular Expression Entity /// Extractor' /// Name of the Entity Model. /// The type ID of the Entity Model. - /// The Regex entity pattern. + /// The Regular Expression entity + /// pattern. public RegexEntityExtractor(System.Guid id, string readableType, string name = default(string), int? typeId = default(int?), IList roles = default(IList), string regexPattern = default(string)) { Id = id; @@ -79,9 +80,9 @@ public RegexEntityExtractor() /// /// Gets or sets possible values include: 'Entity Extractor', /// 'Hierarchical Entity Extractor', 'Hierarchical Child Entity - /// Extractor', 'Composite Entity Extractor', 'Closed List Entity - /// Extractor', 'Prebuilt Entity Extractor', 'Intent Classifier', - /// 'Pattern.Any Entity Extractor', 'Regex Entity Extractor' + /// Extractor', 'Composite Entity Extractor', 'List Entity Extractor', + /// 'Prebuilt Entity Extractor', 'Intent Classifier', 'Pattern.Any + /// Entity Extractor', 'Regular Expression Entity Extractor' /// [JsonProperty(PropertyName = "readableType")] public string ReadableType { get; set; } @@ -92,7 +93,7 @@ public RegexEntityExtractor() public IList Roles { get; set; } /// - /// Gets or sets the Regex entity pattern. + /// Gets or sets the Regular Expression entity pattern. /// [JsonProperty(PropertyName = "regexPattern")] public string RegexPattern { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexModelCreateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexModelCreateObject.cs index dc2267891643b..70abb2cfe6c25 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexModelCreateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexModelCreateObject.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Model object for creating a regex entity model. + /// Model object for creating a regular expression entity model. /// public partial class RegexModelCreateObject { @@ -29,7 +29,8 @@ public RegexModelCreateObject() /// /// Initializes a new instance of the RegexModelCreateObject class. /// - /// The regex entity pattern. + /// The regular expression entity + /// pattern. /// The model name. public RegexModelCreateObject(string regexPattern = default(string), string name = default(string)) { @@ -44,7 +45,7 @@ public RegexModelCreateObject() partial void CustomInit(); /// - /// Gets or sets the regex entity pattern. + /// Gets or sets the regular expression entity pattern. /// [JsonProperty(PropertyName = "regexPattern")] public string RegexPattern { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexModelUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexModelUpdateObject.cs index 3118cfd8d7a01..de48d45379d31 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexModelUpdateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/RegexModelUpdateObject.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Model object for updating a regex entity model. + /// Model object for updating a regular expression entity model. /// public partial class RegexModelUpdateObject { @@ -29,7 +29,8 @@ public RegexModelUpdateObject() /// /// Initializes a new instance of the RegexModelUpdateObject class. /// - /// The regex entity pattern. + /// The regular expression entity + /// pattern. /// The model name. public RegexModelUpdateObject(string regexPattern = default(string), string name = default(string)) { @@ -44,7 +45,7 @@ public RegexModelUpdateObject() partial void CustomInit(); /// - /// Gets or sets the regex entity pattern. + /// Gets or sets the regular expression entity pattern. /// [JsonProperty(PropertyName = "regexPattern")] public string RegexPattern { get; set; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/SubClosedList.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/SubClosedList.cs index e40129da314c1..4e770597fb0d6 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/SubClosedList.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/SubClosedList.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Sublist of items for a Closed list. + /// Sublist of items for a list entity. /// public partial class SubClosedList { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/SubClosedListResponse.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/SubClosedListResponse.cs index 0f8d2562fe61b..bf4a714a5b2ce 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/SubClosedListResponse.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/SubClosedListResponse.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Sublist of items for a Closed list. + /// Sublist of items for a list entity. /// public partial class SubClosedListResponse : SubClosedList { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/WordListBaseUpdateObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/WordListBaseUpdateObject.cs index b60880f1f7a45..968a8f49e1a1e 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/WordListBaseUpdateObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/WordListBaseUpdateObject.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Object model for updating one of the closed list's sublists. + /// Object model for updating one of the list entity's sublists. /// public partial class WordListBaseUpdateObject { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/WordListObject.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/WordListObject.cs index 5a72670bd5e97..62a1f95ab708c 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/WordListObject.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/WordListObject.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.Models using System.Linq; /// - /// Sublist of items for a Closed list. + /// Sublist of items for a list entity. /// public partial class WordListObject { diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Pattern.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Pattern.cs index a3fc54c9a04b2..a8e9d854e64c7 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Pattern.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Pattern.cs @@ -51,8 +51,18 @@ public Pattern(LUISAuthoringClient client) public LUISAuthoringClient Client { get; private set; } /// - /// Adds one pattern to the specified application. + /// Adds a pattern to a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -83,12 +93,8 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddPatternWithHttpMessagesAsync(System.Guid appId, string versionId, PatternRuleCreateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddPatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternRuleCreateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -104,6 +110,8 @@ public Pattern(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("pattern", pattern); @@ -113,7 +121,8 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrule"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -223,8 +232,18 @@ public Pattern(LUISAuthoringClient client) } /// - /// Returns an application version's patterns. + /// Gets patterns in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -258,12 +277,8 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetPatternsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -287,17 +302,20 @@ public Pattern(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("skip", skip); tracingParameters.Add("take", take); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetPatterns", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListPatterns", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); List _queryParameters = new List(); @@ -414,8 +432,18 @@ public Pattern(LUISAuthoringClient client) } /// - /// Updates patterns + /// Updates patterns in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -446,12 +474,8 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> UpdatePatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> UpdatePatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -467,6 +491,8 @@ public Pattern(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("patterns", patterns); @@ -476,7 +502,8 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -586,8 +613,18 @@ public Pattern(LUISAuthoringClient client) } /// - /// Adds a batch of patterns to the specified application. + /// Adds a batch of patterns in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -618,12 +655,8 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> BatchAddPatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> BatchAddPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -639,6 +672,8 @@ public Pattern(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("patterns", patterns); @@ -648,7 +683,8 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -758,8 +794,18 @@ public Pattern(LUISAuthoringClient client) } /// - /// Deletes the patterns with the specified IDs. + /// Deletes a list of patterns in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -790,12 +836,8 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patternIds, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patternIds, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -811,6 +853,8 @@ public Pattern(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("patternIds", patternIds); @@ -820,7 +864,8 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -930,8 +975,18 @@ public Pattern(LUISAuthoringClient client) } /// - /// Updates a pattern + /// Updates a pattern in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -965,12 +1020,8 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdatePatternWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdatePatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -986,6 +1037,8 @@ public Pattern(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("patternId", patternId); @@ -996,7 +1049,8 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules/{patternId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{patternId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(patternId, Client.SerializationSettings).Trim('"'))); @@ -1107,8 +1161,19 @@ public Pattern(LUISAuthoringClient client) } /// - /// Deletes the pattern with the specified ID. + /// Deletes the pattern with the specified ID from a version of the + /// application.. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1139,12 +1204,8 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePatternWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid patternId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1156,6 +1217,8 @@ public Pattern(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("patternId", patternId); @@ -1165,7 +1228,8 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules/{patternId}"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{patternId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(patternId, Client.SerializationSettings).Trim('"'))); @@ -1270,8 +1334,18 @@ public Pattern(LUISAuthoringClient client) } /// - /// Returns patterns to be retrieved for the specific intent. + /// Returns patterns for the specific intent in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1308,12 +1382,8 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetIntentPatternsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListIntentPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1337,18 +1407,21 @@ public Pattern(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("intentId", intentId); tracingParameters.Add("skip", skip); tracingParameters.Add("take", take); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetIntentPatterns", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListIntentPatterns", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); _url = _url.Replace("{intentId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(intentId, Client.SerializationSettings).Trim('"'))); diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PatternExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PatternExtensions.cs index ab038f1eefcbc..d0d94aac3fab9 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PatternExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PatternExtensions.cs @@ -22,11 +22,21 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public static partial class PatternExtensions { /// - /// Adds one pattern to the specified application. + /// Adds a pattern to a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -39,20 +49,30 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task AddPatternAsync(this IPattern operations, System.Guid appId, string versionId, PatternRuleCreateObject pattern, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddPatternAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternRuleCreateObject pattern, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddPatternWithHttpMessagesAsync(appId, versionId, pattern, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddPatternWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, pattern, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Returns an application version's patterns. + /// Gets patterns in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -68,20 +88,30 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task> GetPatternsAsync(this IPattern operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPatternsAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPatternsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates patterns + /// Updates patterns in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -94,20 +124,30 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task> UpdatePatternsAsync(this IPattern operations, System.Guid appId, string versionId, IList patterns, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> UpdatePatternsAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePatternsWithHttpMessagesAsync(appId, versionId, patterns, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patterns, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Adds a batch of patterns to the specified application. + /// Adds a batch of patterns in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -120,20 +160,30 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task> BatchAddPatternsAsync(this IPattern operations, System.Guid appId, string versionId, IList patterns, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> BatchAddPatternsAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BatchAddPatternsWithHttpMessagesAsync(appId, versionId, patterns, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BatchAddPatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patterns, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes the patterns with the specified IDs. + /// Deletes a list of patterns in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -146,20 +196,30 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task DeletePatternsAsync(this IPattern operations, System.Guid appId, string versionId, IList patternIds, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePatternsAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patternIds, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePatternsWithHttpMessagesAsync(appId, versionId, patternIds, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patternIds, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates a pattern + /// Updates a pattern in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -175,20 +235,31 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task UpdatePatternAsync(this IPattern operations, System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdatePatternAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePatternWithHttpMessagesAsync(appId, versionId, patternId, pattern, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePatternWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patternId, pattern, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deletes the pattern with the specified ID. + /// Deletes the pattern with the specified ID from a version of the + /// application.. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -201,20 +272,30 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task DeletePatternAsync(this IPattern operations, System.Guid appId, string versionId, System.Guid patternId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePatternAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePatternWithHttpMessagesAsync(appId, versionId, patternId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePatternWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patternId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Returns patterns to be retrieved for the specific intent. + /// Returns patterns for the specific intent in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -233,9 +314,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task> GetIntentPatternsAsync(this IPattern operations, System.Guid appId, string versionId, System.Guid intentId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListIntentPatternsAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetIntentPatternsWithHttpMessagesAsync(appId, versionId, intentId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListIntentPatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Permissions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Permissions.cs index a21c0e22de7a1..6b6c30fb3cd61 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Permissions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Permissions.cs @@ -54,6 +54,16 @@ public Permissions(LUISAuthoringClient client) /// Gets the list of user emails that have permissions to access your /// application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -69,21 +79,11 @@ public Permissions(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task> ListWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -91,6 +91,8 @@ public Permissions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("cancellationToken", cancellationToken); ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); @@ -98,7 +100,8 @@ public Permissions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -204,6 +207,16 @@ public Permissions(LUISAuthoringClient client) /// Adds a user to the allowed list of users to access this LUIS application. /// Users are added using their email address. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -231,12 +244,8 @@ public Permissions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (userToAdd == null) { throw new ValidationException(ValidationRules.CannotBeNull, "userToAdd"); @@ -248,6 +257,8 @@ public Permissions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("userToAdd", userToAdd); tracingParameters.Add("cancellationToken", cancellationToken); @@ -256,7 +267,8 @@ public Permissions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -368,6 +380,16 @@ public Permissions(LUISAuthoringClient client) /// Removes a user from the allowed list of users to access this LUIS /// application. Users are removed using their email address. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -395,12 +417,8 @@ public Permissions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (userToDelete == null) { throw new ValidationException(ValidationRules.CannotBeNull, "userToDelete"); @@ -412,6 +430,8 @@ public Permissions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("userToDelete", userToDelete); tracingParameters.Add("cancellationToken", cancellationToken); @@ -420,7 +440,8 @@ public Permissions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -529,14 +550,24 @@ public Permissions(LUISAuthoringClient client) } /// - /// Replaces the current users access list with the one sent in the body. If an - /// empty list is sent, all access to other users will be removed. + /// Replaces the current user access list with the new list sent in the body. + /// If an empty list is sent, all access to other users will be removed. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// - /// A model containing a list of user's email addresses. + /// A model containing a list of user email addresses. /// /// /// Headers that will be added to request. @@ -559,12 +590,8 @@ public Permissions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(System.Guid appId, CollaboratorsArray collaborators, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CollaboratorsArray collaborators, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (collaborators == null) { throw new ValidationException(ValidationRules.CannotBeNull, "collaborators"); @@ -576,6 +603,8 @@ public Permissions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("collaborators", collaborators); tracingParameters.Add("cancellationToken", cancellationToken); @@ -584,7 +613,8 @@ public Permissions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PermissionsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PermissionsExtensions.cs index bdd5f239eb1a9..2bed6a5105c41 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PermissionsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PermissionsExtensions.cs @@ -26,15 +26,25 @@ public static partial class PermissionsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// /// The cancellation token. /// - public static async Task ListAsync(this IPermissions operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this IPermissions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -47,6 +57,16 @@ public static partial class PermissionsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -56,9 +76,9 @@ public static partial class PermissionsExtensions /// /// The cancellation token. /// - public static async Task AddAsync(this IPermissions operations, System.Guid appId, UserCollaborator userToAdd, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddAsync(this IPermissions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToAdd, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddWithHttpMessagesAsync(appId, userToAdd, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddWithHttpMessagesAsync(azureRegion, azureCloud, appId, userToAdd, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -71,6 +91,16 @@ public static partial class PermissionsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -80,33 +110,43 @@ public static partial class PermissionsExtensions /// /// The cancellation token. /// - public static async Task DeleteAsync(this IPermissions operations, System.Guid appId, UserCollaborator userToDelete, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IPermissions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToDelete, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, userToDelete, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, userToDelete, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Replaces the current users access list with the one sent in the body. If an - /// empty list is sent, all access to other users will be removed. + /// Replaces the current user access list with the new list sent in the body. + /// If an empty list is sent, all access to other users will be removed. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// /// - /// A model containing a list of user's email addresses. + /// A model containing a list of user email addresses. /// /// /// The cancellation token. /// - public static async Task UpdateAsync(this IPermissions operations, System.Guid appId, CollaboratorsArray collaborators, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IPermissions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CollaboratorsArray collaborators, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, collaborators, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, collaborators, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SdkInfo_LUISAuthoringClient.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SdkInfo_LUISAuthoringClient.cs index 6d41df6827a6c..b0dd01d1ecd6c 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SdkInfo_LUISAuthoringClient.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SdkInfo_LUISAuthoringClient.cs @@ -32,16 +32,5 @@ public static IEnumerable> ApiInfo_LUISAuthoringCl }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "latest"; - public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/cognitiveservices/data-plane/LUIS/Authoring/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Work\\azure-sdk-for-net-fork\\src\\SDKs"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "master"; - public static readonly String GithubCommidId = "78e1feab142c605839aa3cec23442ca26b8ef04d"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Settings.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Settings.cs index d6d044e9f818b..ae57cfaadac83 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Settings.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Settings.cs @@ -51,8 +51,18 @@ public Settings(LUISAuthoringClient client) public LUISAuthoringClient Client { get; private set; } /// - /// Gets the application version settings. + /// Gets the settings in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -80,12 +90,8 @@ public Settings(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -97,6 +103,8 @@ public Settings(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -105,7 +113,8 @@ public Settings(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/settings"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -209,8 +218,18 @@ public Settings(LUISAuthoringClient client) } /// - /// Updates the application version settings. + /// Updates the settings in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -241,12 +260,8 @@ public Settings(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(System.Guid appId, string versionId, AppVersionSettingObject listOfAppVersionSettingObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList listOfAppVersionSettingObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -262,6 +277,8 @@ public Settings(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("listOfAppVersionSettingObject", listOfAppVersionSettingObject); @@ -271,7 +288,8 @@ public Settings(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/settings"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SettingsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SettingsExtensions.cs index b560ba3878c9d..6ab075d662023 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SettingsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SettingsExtensions.cs @@ -22,11 +22,21 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public static partial class SettingsExtensions { /// - /// Gets the application version settings. + /// Gets the settings in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -36,20 +46,30 @@ public static partial class SettingsExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this ISettings operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this ISettings operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Updates the application version settings. + /// Updates the settings in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -62,9 +82,9 @@ public static partial class SettingsExtensions /// /// The cancellation token. /// - public static async Task UpdateAsync(this ISettings operations, System.Guid appId, string versionId, AppVersionSettingObject listOfAppVersionSettingObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this ISettings operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList listOfAppVersionSettingObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, versionId, listOfAppVersionSettingObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, listOfAppVersionSettingObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Train.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Train.cs index 25c9ffce4941f..193c3cba15c5e 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Train.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Train.cs @@ -59,6 +59,16 @@ public Train(LUISAuthoringClient client) /// To verify training success, get the training status at least once after /// training is complete. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -86,12 +96,8 @@ public Train(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> TrainVersionWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> TrainVersionWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -103,6 +109,8 @@ public Train(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -111,7 +119,8 @@ public Train(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/train"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -221,6 +230,16 @@ public Train(LUISAuthoringClient client) /// app ID. "versionId" specifies the version number of the LUIS app. For /// example, "0.1". /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -248,12 +267,8 @@ public Train(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetStatusWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetStatusWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -265,6 +280,8 @@ public Train(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -273,7 +290,8 @@ public Train(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/train"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/TrainExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/TrainExtensions.cs index 0cc8990435d58..c59c7b8be833b 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/TrainExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/TrainExtensions.cs @@ -33,6 +33,16 @@ public static partial class TrainExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -42,9 +52,9 @@ public static partial class TrainExtensions /// /// The cancellation token. /// - public static async Task TrainVersionAsync(this ITrain operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task TrainVersionAsync(this ITrain operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TrainVersionWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.TrainVersionWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -60,6 +70,16 @@ public static partial class TrainExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -69,9 +89,9 @@ public static partial class TrainExtensions /// /// The cancellation token. /// - public static async Task> GetStatusAsync(this ITrain operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> GetStatusAsync(this ITrain operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetStatusWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetStatusWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Versions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Versions.cs index 04e073b2dd452..0031fbff27e49 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Versions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Versions.cs @@ -51,9 +51,18 @@ public Versions(LUISAuthoringClient client) public LUISAuthoringClient Client { get; private set; } /// - /// Creates a new version using the current snapshot of the selected - /// application version. + /// Creates a new version from the selected version. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -84,16 +93,16 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CloneWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionCloneObject = default(TaskUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CloneWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); } + if (versionCloneObject == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "versionCloneObject"); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -101,6 +110,8 @@ public Versions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("versionCloneObject", versionCloneObject); @@ -110,7 +121,8 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/clone"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -220,8 +232,18 @@ public Versions(LUISAuthoringClient client) } /// - /// Gets the application versions info. + /// Gets a list of versions for this application ID. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -243,21 +265,11 @@ public Versions(LUISAuthoringClient client) /// /// Thrown when unable to deserialize the response /// - /// - /// Thrown when a required parameter is null - /// - /// - /// Thrown when a required parameter is null - /// /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(System.Guid appId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (skip < 0) { throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0); @@ -277,6 +289,8 @@ public Versions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("skip", skip); tracingParameters.Add("take", take); @@ -286,7 +300,8 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); List _queryParameters = new List(); if (skip != null) @@ -402,8 +417,20 @@ public Versions(LUISAuthoringClient client) } /// - /// Gets the version info. + /// Gets the version information such as date created, last modified date, + /// endpoint URL, count of intents and entities, training and publishing + /// status. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -431,12 +458,8 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -448,6 +471,8 @@ public Versions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -456,7 +481,8 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -562,6 +588,16 @@ public Versions(LUISAuthoringClient client) /// /// Updates the name or description of the application version. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -592,12 +628,8 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -613,6 +645,8 @@ public Versions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("versionUpdateObject", versionUpdateObject); @@ -622,7 +656,8 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -734,6 +769,16 @@ public Versions(LUISAuthoringClient client) /// /// Deletes an application version. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -761,12 +806,8 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -778,6 +819,8 @@ public Versions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -786,7 +829,8 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -892,6 +936,16 @@ public Versions(LUISAuthoringClient client) /// /// Exports a LUIS application to JSON format. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -919,12 +973,8 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ExportWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ExportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -936,6 +986,8 @@ public Versions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("cancellationToken", cancellationToken); @@ -944,7 +996,8 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/export"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects @@ -1050,6 +1103,16 @@ public Versions(LUISAuthoringClient client) /// /// Imports a new version into a LUIS application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1081,12 +1144,8 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ImportWithHttpMessagesAsync(System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (luisApp == null) { throw new ValidationException(ValidationRules.CannotBeNull, "luisApp"); @@ -1098,6 +1157,8 @@ public Versions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("luisApp", luisApp); @@ -1107,7 +1168,8 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/import"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); List _queryParameters = new List(); if (versionId != null) @@ -1225,8 +1287,18 @@ public Versions(LUISAuthoringClient client) } /// - /// Deleted an unlabelled utterance. + /// Deleted an unlabelled utterance in a version of the application. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -1257,12 +1329,8 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(System.Guid appId, string versionId, string utterance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string utterance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { - if (Client.Endpoint == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); - } if (versionId == null) { throw new ValidationException(ValidationRules.CannotBeNull, "versionId"); @@ -1278,6 +1346,8 @@ public Versions(LUISAuthoringClient client) { _invocationId = ServiceClientTracing.NextInvocationId.ToString(); Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("azureRegion", azureRegion); + tracingParameters.Add("azureCloud", azureCloud); tracingParameters.Add("appId", appId); tracingParameters.Add("versionId", versionId); tracingParameters.Add("utterance", utterance); @@ -1287,7 +1357,8 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/suggest"; - _url = _url.Replace("{Endpoint}", Client.Endpoint); + _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId)); // Create HTTP transport objects diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/VersionsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/VersionsExtensions.cs index 38d4a6a3b3a41..9ffedd90d7f85 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/VersionsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/VersionsExtensions.cs @@ -22,12 +22,21 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring public static partial class VersionsExtensions { /// - /// Creates a new version using the current snapshot of the selected - /// application version. + /// Creates a new version from the selected version. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -40,20 +49,30 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task CloneAsync(this IVersions operations, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject = default(TaskUpdateObject), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CloneAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CloneWithHttpMessagesAsync(appId, versionId, versionCloneObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CloneWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, versionCloneObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the application versions info. + /// Gets a list of versions for this application ID. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -66,20 +85,32 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this IVersions operations, System.Guid appId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(appId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Gets the version info. + /// Gets the version information such as date created, last modified date, + /// endpoint URL, count of intents and entities, training and publishing + /// status. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -89,9 +120,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task GetAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -103,6 +134,16 @@ public static partial class VersionsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -115,9 +156,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task UpdateAsync(this IVersions operations, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, versionId, versionUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, versionUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -129,6 +170,16 @@ public static partial class VersionsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -138,9 +189,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task DeleteAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -152,6 +203,16 @@ public static partial class VersionsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -161,9 +222,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task ExportAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ExportAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ExportWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ExportWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -175,6 +236,16 @@ public static partial class VersionsExtensions /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -188,20 +259,30 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task ImportAsync(this IVersions operations, System.Guid appId, LuisApp luisApp, string versionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ImportAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, LuisApp luisApp, string versionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ImportWithHttpMessagesAsync(appId, luisApp, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ImportWithHttpMessagesAsync(azureRegion, azureCloud, appId, luisApp, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } } /// - /// Deleted an unlabelled utterance. + /// Deleted an unlabelled utterance in a version of the application. /// /// /// The operations group for this extension method. /// + /// + /// Supported Azure regions for Cognitive Services endpoints. Possible values + /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', + /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', + /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' + /// + /// + /// Supported Azure Clouds for Cognitive Services endpoints. Possible values + /// include: 'com', 'us' + /// /// /// The application ID. /// @@ -214,9 +295,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task DeleteUnlabelledUtteranceAsync(this IVersions operations, System.Guid appId, string versionId, string utterance, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteUnlabelledUtteranceAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string utterance, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteUnlabelledUtteranceWithHttpMessagesAsync(appId, versionId, utterance, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteUnlabelledUtteranceWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, utterance, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; }