From 32310611a0c51c4e7a281f058dce814b68dbcffa Mon Sep 17 00:00:00 2001 From: adxsdknet <39844661+adxsdknet@users.noreply.github.com> Date: Fri, 29 Mar 2019 10:08:54 -0700 Subject: [PATCH] .NET SDK Resource Provider:'Authoring' (#5572) REST Spec PR 'https://github.com/Azure/azure-rest-api-specs/pull/5447' REST Spec PR Author 'nebadr' REST Spec PR Last commit --- .../Language/LUIS/Authoring/Generated/Apps.cs | 534 ++-- .../Authoring/Generated/AppsExtensions.cs | 308 +-- .../LUIS/Authoring/Generated/AzureAccounts.cs | 108 +- .../Generated/AzureAccountsExtensions.cs | 56 +- .../LUIS/Authoring/Generated/Examples.cs | 84 +- .../Authoring/Generated/ExamplesExtensions.cs | 56 +- .../LUIS/Authoring/Generated/Features.cs | 147 +- .../Authoring/Generated/FeaturesExtensions.cs | 98 +- .../LUIS/Authoring/Generated/IApps.cs | 322 +-- .../Authoring/Generated/IAzureAccounts.cs | 64 +- .../LUIS/Authoring/Generated/IExamples.cs | 52 +- .../LUIS/Authoring/Generated/IFeatures.cs | 91 +- .../Generated/ILUISAuthoringClient.cs | 6 + .../LUIS/Authoring/Generated/IModel.cs | 1378 +--------- .../LUIS/Authoring/Generated/IPattern.cs | 104 +- .../LUIS/Authoring/Generated/IPermissions.cs | 55 +- .../LUIS/Authoring/Generated/ISettings.cs | 26 +- .../LUIS/Authoring/Generated/ITrain.cs | 26 +- .../LUIS/Authoring/Generated/IVersions.cs | 107 +- .../Generated/LUISAuthoringClient.cs | 8 +- .../LUIS/Authoring/Generated/Model.cs | 2226 +++++------------ .../Authoring/Generated/ModelExtensions.cs | 1484 ++--------- .../Authoring/Generated/Models/AzureClouds.cs | 60 - .../Generated/Models/AzureRegions.cs | 126 - .../LUIS/Authoring/Generated/Pattern.cs | 168 +- .../Authoring/Generated/PatternExtensions.cs | 112 +- .../LUIS/Authoring/Generated/Permissions.cs | 90 +- .../Generated/PermissionsExtensions.cs | 56 +- .../LUIS/Authoring/Generated/Settings.cs | 42 +- .../Authoring/Generated/SettingsExtensions.cs | 28 +- .../LUIS/Authoring/Generated/Train.cs | 42 +- .../Authoring/Generated/TrainExtensions.cs | 28 +- .../LUIS/Authoring/Generated/Versions.cs | 174 +- .../Authoring/Generated/VersionsExtensions.cs | 112 +- 34 files changed, 1678 insertions(+), 6700 deletions(-) delete mode 100644 src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureClouds.cs delete 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 7da07a9d4295..1339af7696b9 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs @@ -53,16 +53,6 @@ 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' - /// /// /// An application containing Name, Description (optional), Culture, Usage /// Scenario (optional), Domain (optional) and initial version ID (optional) of @@ -90,8 +80,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddWithHttpMessagesAsync(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"); @@ -107,8 +101,6 @@ 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); @@ -116,8 +108,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/"; - _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("{Endpoint}", Client.Endpoint); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -227,16 +218,6 @@ public Apps(LUISAuthoringClient client) /// /// 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. /// @@ -255,11 +236,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(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); @@ -279,8 +270,6 @@ 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); @@ -289,8 +278,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/"; - _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("{Endpoint}", Client.Endpoint); List _queryParameters = new List(); if (skip != null) { @@ -408,16 +396,6 @@ public Apps(LUISAuthoringClient client) /// 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. /// @@ -447,8 +425,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ImportWithHttpMessagesAsync(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"); @@ -460,8 +442,6 @@ 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); @@ -470,8 +450,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/import"; - _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("{Endpoint}", Client.Endpoint); List _queryParameters = new List(); if (appName != null) { @@ -590,16 +569,6 @@ 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. /// @@ -612,11 +581,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListCortanaEndpointsWithHttpMessagesAsync(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; @@ -624,16 +603,13 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -737,16 +713,6 @@ 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. /// @@ -759,11 +725,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListDomainsWithHttpMessagesAsync(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; @@ -771,16 +747,13 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -884,16 +857,6 @@ 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. /// @@ -906,11 +869,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListUsageScenariosWithHttpMessagesAsync(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; @@ -918,16 +891,13 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -1033,16 +1003,6 @@ public Apps(LUISAuthoringClient client) /// 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. /// @@ -1055,11 +1015,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListSupportedCulturesWithHttpMessagesAsync(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; @@ -1067,16 +1037,13 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -1180,16 +1147,6 @@ public Apps(LUISAuthoringClient client) /// /// 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. /// @@ -1205,11 +1162,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DownloadQueryLogsWithHttpMessagesAsync(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; @@ -1217,8 +1184,6 @@ 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); @@ -1226,8 +1191,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/querylogs"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -1312,16 +1276,6 @@ 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. /// @@ -1337,11 +1291,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(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; @@ -1349,8 +1313,6 @@ 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); @@ -1358,8 +1320,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -1464,16 +1425,6 @@ 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. /// @@ -1501,8 +1452,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(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"); @@ -1514,8 +1469,6 @@ 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); @@ -1524,8 +1477,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -1636,16 +1588,6 @@ 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. /// @@ -1664,11 +1606,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, bool? force = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(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; @@ -1676,8 +1628,6 @@ 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); @@ -1686,8 +1636,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); List _queryParameters = new List(); if (force != null) @@ -1801,16 +1750,6 @@ 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. /// @@ -1839,8 +1778,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PublishWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PublishWithHttpMessagesAsync(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"); @@ -1852,8 +1795,6 @@ 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); @@ -1862,8 +1803,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publish"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -1992,16 +1932,6 @@ public Apps(LUISAuthoringClient client) /// /// 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. /// @@ -2017,11 +1947,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetSettingsWithHttpMessagesAsync(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; @@ -2029,8 +1969,6 @@ 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); @@ -2038,8 +1976,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/settings"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2144,16 +2081,6 @@ public Apps(LUISAuthoringClient client) /// /// 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. /// @@ -2181,8 +2108,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateSettingsWithHttpMessagesAsync(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"); @@ -2194,8 +2125,6 @@ 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); @@ -2204,8 +2133,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/settings"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2316,16 +2244,6 @@ public Apps(LUISAuthoringClient client) /// /// 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. /// @@ -2341,11 +2259,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPublishSettingsWithHttpMessagesAsync(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; @@ -2353,8 +2281,6 @@ 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); @@ -2362,8 +2288,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publishsettings"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2468,16 +2393,6 @@ public Apps(LUISAuthoringClient client) /// /// 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. /// @@ -2505,8 +2420,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdatePublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdatePublishSettingsWithHttpMessagesAsync(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"); @@ -2518,8 +2437,6 @@ 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); @@ -2528,8 +2445,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publishsettings"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2640,16 +2556,6 @@ 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. /// @@ -2665,11 +2571,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListEndpointsWithHttpMessagesAsync(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; @@ -2677,8 +2593,6 @@ 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); @@ -2686,8 +2600,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/endpoints"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -2792,16 +2705,6 @@ 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. /// @@ -2814,11 +2717,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(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; @@ -2826,16 +2739,13 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -2940,16 +2850,6 @@ public Apps(LUISAuthoringClient client) /// 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. @@ -2975,8 +2875,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(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"); @@ -2988,8 +2892,6 @@ 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); @@ -2997,8 +2899,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains"; - _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("{Endpoint}", Client.Endpoint); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; @@ -3108,16 +3009,6 @@ public Apps(LUISAuthoringClient client) /// /// 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. /// @@ -3142,8 +3033,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(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"); @@ -3155,8 +3050,6 @@ 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); @@ -3164,8 +3057,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains/{culture}"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{culture}", System.Uri.EscapeDataString(culture)); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -3275,16 +3167,6 @@ public Apps(LUISAuthoringClient client) /// 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. /// @@ -3312,8 +3194,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(System.Guid appId, string slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { + if (Client.Endpoint == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint"); + } if (slotName == null) { throw new ValidationException(ValidationRules.CannotBeNull, "slotName"); @@ -3325,8 +3211,6 @@ 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); @@ -3335,8 +3219,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "package/{appId}/slot/{slotName}/gzip"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); _url = _url.Replace("{slotName}", System.Uri.EscapeDataString(slotName)); // Create HTTP transport objects @@ -3434,16 +3317,6 @@ public Apps(LUISAuthoringClient client) /// 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. /// @@ -3471,8 +3344,12 @@ public Apps(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(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"); @@ -3484,8 +3361,6 @@ 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); @@ -3494,8 +3369,7 @@ public Apps(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "package/{appId}/versions/{versionId}/gzip"; - _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("{Endpoint}", Client.Endpoint); _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 915b7011a491..468ea897030a 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs @@ -28,16 +28,6 @@ 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' - /// /// /// An application containing Name, Description (optional), Culture, Usage /// Scenario (optional), Domain (optional) and initial version ID (optional) of @@ -47,9 +37,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task AddAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, ApplicationCreateObject applicationCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddAsync(this IApps operations, ApplicationCreateObject applicationCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddWithHttpMessagesAsync(azureRegion, azureCloud, applicationCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddWithHttpMessagesAsync(applicationCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -61,16 +51,6 @@ 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 number of entries to skip. Default value is 0. /// @@ -80,9 +60,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this IApps operations, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -95,16 +75,6 @@ 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 LUIS application structure. /// @@ -116,9 +86,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task ImportAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, LuisApp luisApp, string appName = default(string), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ImportAsync(this IApps operations, LuisApp luisApp, string appName = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ImportWithHttpMessagesAsync(azureRegion, azureCloud, luisApp, appName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ImportWithHttpMessagesAsync(luisApp, appName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -130,22 +100,12 @@ 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, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListCortanaEndpointsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCortanaEndpointsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCortanaEndpointsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -157,22 +117,12 @@ 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, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListDomainsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListDomainsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListDomainsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -184,22 +134,12 @@ 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, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListUsageScenariosAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListUsageScenariosWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListUsageScenariosWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -213,22 +153,12 @@ 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> ListSupportedCulturesAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListSupportedCulturesAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListSupportedCulturesWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListSupportedCulturesWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -240,25 +170,15 @@ 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 DownloadQueryLogsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DownloadQueryLogsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.DownloadQueryLogsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.DownloadQueryLogsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -269,25 +189,15 @@ 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, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -299,16 +209,6 @@ 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. /// @@ -318,9 +218,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task UpdateAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IApps operations, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, applicationUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -332,16 +232,6 @@ 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. /// @@ -351,9 +241,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task DeleteAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, bool? force = false, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IApps operations, System.Guid appId, bool? force = false, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, force, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, force, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -365,16 +255,6 @@ 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. /// @@ -385,9 +265,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task PublishAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationPublishObject applicationPublishObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PublishAsync(this IApps operations, System.Guid appId, ApplicationPublishObject applicationPublishObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.PublishWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationPublishObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.PublishWithHttpMessagesAsync(appId, applicationPublishObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -399,25 +279,15 @@ 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 GetSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetSettingsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetSettingsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -429,16 +299,6 @@ 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. /// @@ -448,9 +308,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task UpdateSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateSettingsAsync(this IApps operations, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateSettingsWithHttpMessagesAsync(appId, applicationSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -462,25 +322,15 @@ 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 GetPublishSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPublishSettingsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPublishSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPublishSettingsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -492,16 +342,6 @@ 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. /// @@ -511,9 +351,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task UpdatePublishSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdatePublishSettingsAsync(this IApps operations, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePublishSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, publishSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePublishSettingsWithHttpMessagesAsync(appId, publishSettingUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -525,25 +365,15 @@ 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, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListEndpointsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListEndpointsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListEndpointsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -555,22 +385,12 @@ 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, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAvailableCustomPrebuiltDomainsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -583,16 +403,6 @@ 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 prebuilt domain create object containing the name and culture of the /// domain. @@ -600,9 +410,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task AddCustomPrebuiltDomainAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, PrebuiltDomainCreateObject prebuiltDomainCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCustomPrebuiltDomainAsync(this IApps operations, PrebuiltDomainCreateObject prebuiltDomainCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(azureRegion, azureCloud, prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -614,25 +424,15 @@ 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' - /// /// /// Culture. /// /// /// The cancellation token. /// - public static async Task> ListAvailableCustomPrebuiltDomainsForCultureAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, string culture, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAvailableCustomPrebuiltDomainsForCultureAsync(this IApps operations, string culture, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(azureRegion, azureCloud, culture, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(culture, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -649,16 +449,6 @@ 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. /// @@ -668,9 +458,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task PackagePublishedApplicationAsGzipAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PackagePublishedApplicationAsGzipAsync(this IApps operations, System.Guid appId, string slotName, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.PackagePublishedApplicationAsGzipWithHttpMessagesAsync(azureRegion, azureCloud, appId, slotName, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.PackagePublishedApplicationAsGzipWithHttpMessagesAsync(appId, slotName, null, cancellationToken).ConfigureAwait(false); _result.Request.Dispose(); return _result.Body; } @@ -686,16 +476,6 @@ 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. /// @@ -705,9 +485,9 @@ public static partial class AppsExtensions /// /// The cancellation token. /// - public static async Task PackageTrainedApplicationAsGzipAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task PackageTrainedApplicationAsGzipAsync(this IApps operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - var _result = await operations.PackageTrainedApplicationAsGzipWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false); + var _result = await operations.PackageTrainedApplicationAsGzipWithHttpMessagesAsync(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 2e55d0e557e3..b076da276a82 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs @@ -56,16 +56,6 @@ public AzureAccounts(LUISAuthoringClient client) /// /// 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. /// @@ -84,11 +74,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AssignToAppWithHttpMessagesAsync(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,8 +100,6 @@ 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); @@ -110,8 +108,7 @@ public AzureAccounts(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -226,16 +223,6 @@ public AzureAccounts(LUISAuthoringClient client) /// 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. /// @@ -251,11 +238,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetAssignedWithHttpMessagesAsync(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; @@ -263,8 +260,6 @@ 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); @@ -272,8 +267,7 @@ public AzureAccounts(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -381,16 +375,6 @@ public AzureAccounts(LUISAuthoringClient client) /// /// 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. /// @@ -409,11 +393,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> RemoveFromAppWithHttpMessagesAsync(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(); @@ -425,8 +419,6 @@ 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); @@ -435,8 +427,7 @@ public AzureAccounts(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -550,16 +541,6 @@ public AzureAccounts(LUISAuthoringClient client) /// /// 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. /// @@ -572,11 +553,21 @@ 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>> ListUserLUISAccountsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListUserLUISAccountsWithHttpMessagesAsync(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; @@ -584,16 +575,13 @@ 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, "ListUserLUISAccounts", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "azureaccounts"; - _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("{Endpoint}", Client.Endpoint); // 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 f73fec068e66..d6b3b13aa63b 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs @@ -30,16 +30,6 @@ public static partial class AzureAccountsExtensions /// /// 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. /// @@ -49,9 +39,9 @@ public static partial class AzureAccountsExtensions /// /// The cancellation token. /// - public static async Task AssignToAppAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AssignToAppAsync(this IAzureAccounts operations, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AssignToAppWithHttpMessagesAsync(azureRegion, azureCloud, appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AssignToAppWithHttpMessagesAsync(appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -67,25 +57,15 @@ public static partial class AzureAccountsExtensions /// /// 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, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> GetAssignedAsync(this IAzureAccounts operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetAssignedWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetAssignedWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -100,16 +80,6 @@ public static partial class AzureAccountsExtensions /// /// 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. /// @@ -119,9 +89,9 @@ public static partial class AzureAccountsExtensions /// /// The cancellation token. /// - public static async Task RemoveFromAppAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken)) + public static async Task RemoveFromAppAsync(this IAzureAccounts operations, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.RemoveFromAppWithHttpMessagesAsync(azureRegion, azureCloud, appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.RemoveFromAppWithHttpMessagesAsync(appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -136,22 +106,12 @@ public static partial class AzureAccountsExtensions /// /// 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> ListUserLUISAccountsAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListUserLUISAccountsAsync(this IAzureAccounts operations, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListUserLUISAccountsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListUserLUISAccountsWithHttpMessagesAsync(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 33e64fab3021..e2149813d6d7 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs @@ -53,16 +53,6 @@ public Examples(LUISAuthoringClient client) /// /// 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. /// @@ -93,8 +83,12 @@ public Examples(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddWithHttpMessagesAsync(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"); @@ -110,8 +104,6 @@ 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); @@ -121,8 +113,7 @@ public Examples(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/example"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -234,16 +225,6 @@ public Examples(LUISAuthoringClient client) /// /// 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. /// @@ -274,8 +255,12 @@ public Examples(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> BatchWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> BatchWithHttpMessagesAsync(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"); @@ -291,8 +276,6 @@ 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); @@ -302,8 +285,7 @@ public Examples(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -434,16 +416,6 @@ public Examples(LUISAuthoringClient client) /// 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. /// @@ -477,8 +449,12 @@ public Examples(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListWithHttpMessagesAsync(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"); @@ -502,8 +478,6 @@ 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); @@ -514,8 +488,7 @@ public Examples(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -635,16 +608,6 @@ public Examples(LUISAuthoringClient client) /// 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. /// @@ -675,8 +638,12 @@ public Examples(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(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"); @@ -688,8 +655,6 @@ 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); @@ -699,8 +664,7 @@ public Examples(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples/{exampleId}"; - _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("{Endpoint}", Client.Endpoint); _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 850a1d108364..1bc3b5c49d04 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs @@ -27,16 +27,6 @@ public static partial class ExamplesExtensions /// /// 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. /// @@ -49,9 +39,9 @@ public static partial class ExamplesExtensions /// /// The cancellation token. /// - public static async Task AddAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddAsync(this IExamples operations, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleLabelObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddWithHttpMessagesAsync(appId, versionId, exampleLabelObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -63,16 +53,6 @@ public static partial class ExamplesExtensions /// /// 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. /// @@ -85,9 +65,9 @@ public static partial class ExamplesExtensions /// /// The cancellation token. /// - public static async Task> BatchAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList exampleLabelObjectArray, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> BatchAsync(this IExamples operations, System.Guid appId, string versionId, IList exampleLabelObjectArray, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BatchWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleLabelObjectArray, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BatchWithHttpMessagesAsync(appId, versionId, exampleLabelObjectArray, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -100,16 +80,6 @@ public static partial class ExamplesExtensions /// /// 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. /// @@ -125,9 +95,9 @@ public static partial class ExamplesExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListAsync(this IExamples operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -140,16 +110,6 @@ public static partial class ExamplesExtensions /// /// 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. /// @@ -162,9 +122,9 @@ public static partial class ExamplesExtensions /// /// The cancellation token. /// - public static async Task DeleteAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int exampleId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IExamples operations, System.Guid appId, string versionId, int exampleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(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 1081068760e3..c0939ca4d880 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs @@ -54,16 +54,6 @@ public Features(LUISAuthoringClient client) /// [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. /// @@ -98,8 +88,12 @@ public Features(LUISAuthoringClient client) /// 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)) + public async Task>> ListApplicationVersionPatternFeaturesWithHttpMessagesAsync(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"); @@ -123,8 +117,6 @@ 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); @@ -135,8 +127,7 @@ public Features(LUISAuthoringClient client) // 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("{Endpoint}", Client.Endpoint); _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(); @@ -255,16 +246,6 @@ public Features(LUISAuthoringClient client) /// /// 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. /// @@ -296,8 +277,12 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddPhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddPhraseListWithHttpMessagesAsync(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"); @@ -313,8 +298,6 @@ 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); @@ -324,8 +307,7 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -437,16 +419,6 @@ public Features(LUISAuthoringClient client) /// /// 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. /// @@ -480,8 +452,12 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListPhraseListsWithHttpMessagesAsync(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"); @@ -505,8 +481,6 @@ 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); @@ -517,8 +491,7 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -638,16 +611,6 @@ public Features(LUISAuthoringClient client) /// 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. /// @@ -681,8 +644,12 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> ListWithHttpMessagesAsync(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"); @@ -706,8 +673,6 @@ 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); @@ -718,8 +683,7 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/features"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -838,16 +802,6 @@ public Features(LUISAuthoringClient client) /// /// 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. /// @@ -878,8 +832,12 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetPhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPhraseListWithHttpMessagesAsync(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"); @@ -891,8 +849,6 @@ 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); @@ -902,8 +858,7 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -1011,16 +966,6 @@ public Features(LUISAuthoringClient client) /// 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. /// @@ -1056,8 +1001,12 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdatePhraseListWithHttpMessagesAsync(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"); @@ -1069,8 +1018,6 @@ 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); @@ -1081,8 +1028,7 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -1195,16 +1141,6 @@ public Features(LUISAuthoringClient client) /// /// 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. /// @@ -1235,8 +1171,12 @@ public Features(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePhraseListWithHttpMessagesAsync(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"); @@ -1248,8 +1188,6 @@ 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); @@ -1259,8 +1197,7 @@ public Features(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/phraselists/{phraselistId}"; - _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("{Endpoint}", Client.Endpoint); _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 d7025879124f..4cf513f50045 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/FeaturesExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/FeaturesExtensions.cs @@ -28,16 +28,6 @@ public static partial class FeaturesExtensions /// /// 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. /// @@ -54,9 +44,9 @@ public static partial class FeaturesExtensions /// 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)) + public static async Task> ListApplicationVersionPatternFeaturesAsync(this IFeatures operations, 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)) + using (var _result = await operations.ListApplicationVersionPatternFeaturesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -68,16 +58,6 @@ public static partial class FeaturesExtensions /// /// 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. /// @@ -91,9 +71,9 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task AddPhraseListAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddPhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddPhraseListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, phraselistCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddPhraseListWithHttpMessagesAsync(appId, versionId, phraselistCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -105,16 +85,6 @@ public static partial class FeaturesExtensions /// /// 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. /// @@ -130,9 +100,9 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListPhraseListsAsync(this IFeatures operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPhraseListsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPhraseListsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -145,16 +115,6 @@ public static partial class FeaturesExtensions /// /// 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. /// @@ -170,9 +130,9 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - 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)) + public static async Task ListAsync(this IFeatures operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -184,16 +144,6 @@ public static partial class FeaturesExtensions /// /// 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. /// @@ -206,9 +156,9 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task GetPhraseListAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPhraseListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPhraseListWithHttpMessagesAsync(appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -221,16 +171,6 @@ public static partial class FeaturesExtensions /// /// 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. /// @@ -248,9 +188,9 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdatePhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePhraseListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, phraselistId, phraselistUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePhraseListWithHttpMessagesAsync(appId, versionId, phraselistId, phraselistUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -262,16 +202,6 @@ public static partial class FeaturesExtensions /// /// 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. /// @@ -284,9 +214,9 @@ public static partial class FeaturesExtensions /// /// The cancellation token. /// - public static async Task DeletePhraseListAsync(this IFeatures operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePhraseListAsync(this IFeatures operations, System.Guid appId, string versionId, int phraselistId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePhraseListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, phraselistId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePhraseListWithHttpMessagesAsync(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 0921e778f57d..61366b1ec9b6 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IApps.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IApps.cs @@ -26,17 +26,6 @@ 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' - /// /// /// An application containing Name, Description (optional), Culture, /// Usage Scenario (optional), Domain (optional) and initial version ID @@ -59,21 +48,10 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddWithHttpMessagesAsync(ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -93,22 +71,14 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -132,21 +102,10 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ImportWithHttpMessagesAsync(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. /// @@ -159,21 +118,13 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task> ListCortanaEndpointsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> ListCortanaEndpointsWithHttpMessagesAsync(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. /// @@ -186,21 +137,13 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task>> ListDomainsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task>> ListDomainsWithHttpMessagesAsync(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. /// @@ -213,23 +156,15 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task>> ListUsageScenariosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task>> ListUsageScenariosWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -242,22 +177,14 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task>> ListSupportedCulturesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task>> ListSupportedCulturesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -273,21 +200,13 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task> DownloadQueryLogsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> DownloadQueryLogsWithHttpMessagesAsync(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. /// @@ -303,21 +222,13 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task> GetWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> GetWithHttpMessagesAsync(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. /// @@ -339,21 +250,10 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(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. /// @@ -372,21 +272,13 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, bool? force = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> DeleteWithHttpMessagesAsync(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. /// @@ -409,21 +301,10 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> PublishWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PublishWithHttpMessagesAsync(System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -439,21 +320,13 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task> GetSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> GetSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -475,22 +348,11 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> UpdateSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateSettingsWithHttpMessagesAsync(System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -506,22 +368,14 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task> GetPublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> GetPublishSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -543,21 +397,10 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> UpdatePublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePublishSettingsWithHttpMessagesAsync(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. /// @@ -573,21 +416,13 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task>> ListEndpointsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task>> ListEndpointsWithHttpMessagesAsync(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. /// @@ -600,22 +435,14 @@ public partial interface IApps /// /// Thrown when unable to deserialize the response /// - Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. @@ -635,21 +462,10 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -668,7 +484,7 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// package - Gets published LUIS application package in binary stream /// GZip format @@ -677,17 +493,6 @@ public partial interface IApps /// 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. /// @@ -709,7 +514,7 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(System.Guid appId, string slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// package - Gets trained LUIS application package in binary stream /// GZip format @@ -718,17 +523,6 @@ public partial interface IApps /// 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. /// @@ -750,6 +544,6 @@ public partial interface IApps /// /// Thrown when a required parameter is null /// - Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(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 70cd8ead0b52..8a6d40b12f8c 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IAzureAccounts.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IAzureAccounts.cs @@ -28,17 +28,6 @@ public partial interface IAzureAccounts /// /// 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. /// @@ -57,7 +46,10 @@ public partial interface IAzureAccounts /// /// Thrown when unable to deserialize the response /// - Task> AssignToAppWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> AssignToAppWithHttpMessagesAsync(System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// apps - Get LUIS Azure accounts assigned to the application /// @@ -65,17 +57,6 @@ public partial interface IAzureAccounts /// 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. /// @@ -91,24 +72,16 @@ public partial interface IAzureAccounts /// /// Thrown when unable to deserialize the response /// - Task>> GetAssignedWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task>> GetAssignedWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// apps - Removes an assigned LUIS Azure account from an 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. /// @@ -127,24 +100,16 @@ public partial interface IAzureAccounts /// /// Thrown when unable to deserialize the response /// - Task> RemoveFromAppWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> RemoveFromAppWithHttpMessagesAsync(System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// user - Get LUIS Azure accounts /// /// /// 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. /// @@ -157,6 +122,9 @@ public partial interface IAzureAccounts /// /// Thrown when unable to deserialize the response /// - Task>> ListUserLUISAccountsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task>> ListUserLUISAccountsWithHttpMessagesAsync(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 913a99262c2d..15b5123b7211 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IExamples.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IExamples.cs @@ -25,17 +25,6 @@ public partial interface IExamples /// /// 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,22 +49,11 @@ public partial interface IExamples /// /// Thrown when a required parameter is null /// - Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddWithHttpMessagesAsync(System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -100,22 +78,11 @@ public partial interface IExamples /// /// Thrown when a required parameter is null /// - Task>> BatchWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> BatchWithHttpMessagesAsync(System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -144,22 +111,11 @@ public partial interface IExamples /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -184,6 +140,6 @@ public partial interface IExamples /// /// Thrown when a required parameter is null /// - Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(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 c625b6a07679..f87b2df3b8df 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IFeatures.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IFeatures.cs @@ -26,17 +26,6 @@ public partial interface IFeatures /// [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. /// @@ -66,21 +55,10 @@ public partial interface IFeatures /// 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)); + Task>> ListApplicationVersionPatternFeaturesWithHttpMessagesAsync(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. /// @@ -107,21 +85,10 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> AddPhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddPhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, PhraselistCreateObject phraselistCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -150,22 +117,11 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task>> ListPhraseListsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPhraseListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -194,21 +150,10 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -233,22 +178,11 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> GetPhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPhraseListWithHttpMessagesAsync(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 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. /// @@ -278,21 +212,10 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> UpdatePhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePhraseListWithHttpMessagesAsync(System.Guid appId, string versionId, int phraselistId, PhraselistUpdateObject phraselistUpdateObject = default(PhraselistUpdateObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -317,6 +240,6 @@ public partial interface IFeatures /// /// Thrown when a required parameter is null /// - Task> DeletePhraseListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int phraselistId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePhraseListWithHttpMessagesAsync(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 fec8c6fa30e5..90be37394c64 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ILUISAuthoringClient.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ILUISAuthoringClient.cs @@ -32,6 +32,12 @@ 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 5f1e4c7f20c0..4e3abf48133e 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IModel.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IModel.cs @@ -25,17 +25,6 @@ public partial interface IModel /// /// 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,22 +49,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddIntentWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -104,21 +82,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListIntentsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -144,22 +111,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddEntityWithHttpMessagesAsync(System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -188,22 +144,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -229,22 +174,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -273,21 +207,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -313,22 +236,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -357,22 +269,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCompositeEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCompositeEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -401,21 +302,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListClosedListsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListClosedListsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -441,21 +331,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -480,22 +359,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> AddPrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> AddPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -524,22 +392,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListPrebuiltsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPrebuiltsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -561,22 +418,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -605,22 +451,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListModelsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListModelsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -652,22 +487,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task>> ExamplesMethodWithHttpMessagesAsync(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 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. /// @@ -692,21 +516,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -734,21 +547,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -778,22 +580,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteIntentWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -818,21 +609,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -860,21 +640,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -899,22 +668,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -939,22 +697,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetHierarchicalEntityWithHttpMessagesAsync(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 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. /// @@ -982,21 +729,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1021,22 +757,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteHierarchicalEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1061,21 +786,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1104,21 +818,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1143,22 +846,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCompositeEntityWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1183,21 +875,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1225,22 +906,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateClosedListWithHttpMessagesAsync(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 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. /// @@ -1268,21 +938,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> PatchClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> PatchClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1307,22 +966,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteClosedListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1347,22 +995,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetPrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1387,22 +1024,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeletePrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePrebuiltWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1430,22 +1056,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteSubListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, long subListId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1477,22 +1092,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateSubListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1521,22 +1125,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListIntentSuggestionsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListIntentSuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid intentId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1565,22 +1158,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListEntitySuggestionsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListEntitySuggestionsWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1608,22 +1190,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddSubListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddSubListWithHttpMessagesAsync(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 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. /// @@ -1648,22 +1219,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1689,22 +1249,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1726,21 +1275,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1766,21 +1304,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1802,22 +1329,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1839,21 +1355,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1878,22 +1383,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -1921,22 +1415,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetHierarchicalEntityChildWithHttpMessagesAsync(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 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. /// @@ -1967,22 +1450,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateHierarchicalEntityChildWithHttpMessagesAsync(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 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. /// @@ -2010,22 +1482,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(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 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. /// @@ -2054,22 +1515,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddHierarchicalEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddHierarchicalEntityChildWithHttpMessagesAsync(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 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. /// @@ -2098,22 +1548,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddCompositeEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2141,22 +1580,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCompositeEntityChildWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCompositeEntityChildWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2185,22 +1613,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListRegexEntityInfosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListRegexEntityInfosWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2226,22 +1643,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2270,22 +1676,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListPatternAnyEntityInfosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPatternAnyEntityInfosWithHttpMessagesAsync(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 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. /// @@ -2311,21 +1706,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreatePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreatePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2350,21 +1734,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2392,21 +1765,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2431,22 +1793,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListPrebuiltEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPrebuiltEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2474,21 +1825,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreatePrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreatePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2513,21 +1853,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListClosedListEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListClosedListEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2555,22 +1884,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2595,22 +1913,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListRegexEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListRegexEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2638,22 +1945,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2678,22 +1974,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCompositeEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCompositeEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2721,22 +2006,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2761,22 +2035,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListPatternAnyEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPatternAnyEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2804,22 +2067,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreatePatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreatePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2844,22 +2096,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListHierarchicalEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListHierarchicalEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2887,21 +2128,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2926,22 +2156,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -2969,22 +2188,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3009,22 +2217,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task>> GetExplicitListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> GetExplicitListWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3052,22 +2249,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> AddExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3092,22 +2278,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetRegexEntityEntityInfoWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetRegexEntityEntityInfoWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3135,22 +2310,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdateRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3175,22 +2339,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteRegexEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3215,22 +2368,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetPatternAnyEntityInfoWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPatternAnyEntityInfoWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3258,22 +2400,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> UpdatePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3298,21 +2429,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeletePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePatternAnyEntityModelWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3340,21 +2460,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3385,21 +2494,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3427,22 +2525,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3470,22 +2557,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetPrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3516,21 +2592,10 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdatePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3558,22 +2623,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeletePrebuiltEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3601,22 +2655,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3647,22 +2690,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3690,22 +2722,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteClosedListEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteClosedListEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3733,22 +2754,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3779,22 +2789,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3822,22 +2821,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteRegexEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteRegexEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3865,22 +2853,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3911,22 +2888,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3954,22 +2920,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCompositeEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCompositeEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -3997,22 +2952,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetPatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetPatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4043,22 +2987,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdatePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4086,22 +3019,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeletePatternAnyEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePatternAnyEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4129,22 +3051,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4175,22 +3086,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4218,22 +3118,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteHierarchicalEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteHierarchicalEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4261,22 +3150,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetCustomEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetCustomEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4307,22 +3185,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, EntityRoleUpdateObject entityRoleUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4350,22 +3217,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteCustomEntityRoleWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteCustomEntityRoleWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4393,22 +3249,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> GetExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4439,22 +3284,11 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - 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)); + Task> UpdateExplicitListItemWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid entityId, long itemId, ExplicitListItemUpdateObject item, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -4482,6 +3316,6 @@ public partial interface IModel /// /// Thrown when a required parameter is null /// - Task> DeleteExplicitListItemWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, long itemId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteExplicitListItemWithHttpMessagesAsync(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 2c13bec072b2..3b2a0f663e70 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPattern.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPattern.cs @@ -25,17 +25,6 @@ public partial interface IPattern /// /// 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. /// @@ -60,21 +49,10 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task> AddPatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternRuleCreateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddPatternWithHttpMessagesAsync(System.Guid appId, string versionId, PatternRuleCreateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -103,21 +81,10 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task>> ListPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListPatternsWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -142,21 +109,10 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task>> UpdatePatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> UpdatePatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -181,21 +137,10 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task>> BatchAddPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> BatchAddPatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -220,21 +165,10 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task> DeletePatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patternIds, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePatternsWithHttpMessagesAsync(System.Guid appId, string versionId, IList patternIds, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -262,22 +196,11 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task> UpdatePatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdatePatternWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -302,22 +225,11 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - Task> DeletePatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeletePatternWithHttpMessagesAsync(System.Guid appId, string versionId, System.Guid patternId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -349,6 +261,6 @@ public partial interface IPattern /// /// Thrown when a required parameter is null /// - 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)); + Task>> ListIntentPatternsWithHttpMessagesAsync(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 53b2cc49b108..05ef4268bc31 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPermissions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IPermissions.cs @@ -26,17 +26,6 @@ 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. /// @@ -52,22 +41,14 @@ public partial interface IPermissions /// /// Thrown when unable to deserialize the response /// - Task> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Thrown when a required parameter is null + /// + Task> ListWithHttpMessagesAsync(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. /// @@ -89,22 +70,11 @@ public partial interface IPermissions /// /// Thrown when a required parameter is null /// - Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> AddWithHttpMessagesAsync(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. /// @@ -126,23 +96,12 @@ public partial interface IPermissions /// /// Thrown when a required parameter is null /// - Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -164,6 +123,6 @@ public partial interface IPermissions /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CollaboratorsArray collaborators, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(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 1b6906a83de9..595f0edb68e0 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ISettings.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ISettings.cs @@ -25,17 +25,6 @@ public partial interface ISettings /// /// 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. /// @@ -57,21 +46,10 @@ public partial interface ISettings /// /// Thrown when a required parameter is null /// - Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -96,6 +74,6 @@ public partial interface ISettings /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList listOfAppVersionSettingObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(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 b39bfa41188e..3985ed9dd8ba 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ITrain.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ITrain.cs @@ -31,17 +31,6 @@ 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. /// @@ -63,7 +52,7 @@ public partial interface ITrain /// /// Thrown when a required parameter is null /// - Task> TrainVersionWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> TrainVersionWithHttpMessagesAsync(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 @@ -71,17 +60,6 @@ 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. /// @@ -103,6 +81,6 @@ public partial interface ITrain /// /// Thrown when a required parameter is null /// - Task>> GetStatusWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task>> GetStatusWithHttpMessagesAsync(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 0d921bc0378a..3d34e00b65ce 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IVersions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/IVersions.cs @@ -25,17 +25,6 @@ public partial interface IVersions /// /// 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. /// @@ -60,21 +49,10 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> CloneWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> CloneWithHttpMessagesAsync(System.Guid appId, string versionId, TaskUpdateObject versionCloneObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -97,23 +75,15 @@ public partial interface IVersions /// /// Thrown when unable to deserialize the response /// - Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// 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)); /// /// 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. /// @@ -135,21 +105,10 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> GetWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> GetWithHttpMessagesAsync(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. /// @@ -174,21 +133,10 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> UpdateWithHttpMessagesAsync(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. /// @@ -210,21 +158,10 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteWithHttpMessagesAsync(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. /// @@ -246,21 +183,10 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> ExportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ExportWithHttpMessagesAsync(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. /// @@ -286,21 +212,10 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> ImportWithHttpMessagesAsync(System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// 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. /// @@ -325,6 +240,6 @@ public partial interface IVersions /// /// Thrown when a required parameter is null /// - Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string utterance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(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 f404bbcf186d..3688c4eb7f47 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/LUISAuthoringClient.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/LUISAuthoringClient.cs @@ -36,6 +36,12 @@ 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. /// @@ -228,7 +234,7 @@ private void Initialize() Pattern = new Pattern(this); Settings = new Settings(this); AzureAccounts = new AzureAccounts(this); - BaseUri = "http://{AzureRegion}.api.cognitive.microsoft.{AzureCloud}/luis/api/v2.0"; + BaseUri = "{Endpoint}/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 d9243502402a..2ced64aad804 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Model.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Model.cs @@ -53,16 +53,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -93,8 +83,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddIntentWithHttpMessagesAsync(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"); @@ -110,8 +104,6 @@ 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); @@ -121,8 +113,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -227,16 +218,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -270,8 +251,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListIntentsWithHttpMessagesAsync(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"); @@ -295,8 +280,6 @@ 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); @@ -307,8 +290,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -427,16 +409,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -467,8 +439,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddEntityWithHttpMessagesAsync(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"); @@ -484,8 +460,6 @@ 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); @@ -495,8 +469,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -609,16 +582,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -652,8 +615,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListEntitiesWithHttpMessagesAsync(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"); @@ -677,8 +644,6 @@ 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); @@ -689,8 +654,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -809,16 +773,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -849,8 +803,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddHierarchicalEntityWithHttpMessagesAsync(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"); @@ -866,8 +824,6 @@ 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); @@ -877,8 +833,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -991,16 +946,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -1034,8 +979,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListHierarchicalEntitiesWithHttpMessagesAsync(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"); @@ -1059,8 +1008,6 @@ 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); @@ -1071,8 +1018,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -1191,16 +1137,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -1231,8 +1167,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCompositeEntityWithHttpMessagesAsync(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"); @@ -1248,8 +1188,6 @@ 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); @@ -1259,8 +1197,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -1373,16 +1310,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -1416,8 +1343,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListCompositeEntitiesWithHttpMessagesAsync(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"); @@ -1441,8 +1372,6 @@ 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); @@ -1453,8 +1382,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -1574,16 +1502,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -1617,8 +1535,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListClosedListsWithHttpMessagesAsync(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"); @@ -1642,8 +1564,6 @@ 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); @@ -1654,8 +1574,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -1774,16 +1693,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -1814,8 +1723,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddClosedListWithHttpMessagesAsync(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"); @@ -1831,8 +1744,6 @@ 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); @@ -1842,8 +1753,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -1955,16 +1865,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -1995,8 +1895,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> AddPrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList prebuiltExtractorNames, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> AddPrebuiltWithHttpMessagesAsync(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"); @@ -2012,8 +1916,6 @@ 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); @@ -2023,8 +1925,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -2137,16 +2038,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -2180,8 +2071,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListPrebuiltsWithHttpMessagesAsync(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"); @@ -2205,8 +2100,6 @@ 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); @@ -2217,8 +2110,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -2337,16 +2229,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -2374,8 +2256,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPrebuiltEntitiesWithHttpMessagesAsync(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"); @@ -2387,8 +2273,6 @@ 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); @@ -2397,8 +2281,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/listprebuilts"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -2505,16 +2388,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -2548,8 +2421,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListModelsWithHttpMessagesAsync(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"); @@ -2573,8 +2450,6 @@ 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); @@ -2585,8 +2460,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/models"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -2706,16 +2580,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -2752,8 +2616,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ExamplesMethodWithHttpMessagesAsync(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"); @@ -2781,8 +2649,6 @@ 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); @@ -2794,8 +2660,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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)); @@ -2915,16 +2780,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -2955,8 +2810,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetIntentWithHttpMessagesAsync(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"); @@ -2968,8 +2827,6 @@ 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); @@ -2979,8 +2836,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -3087,16 +2943,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -3130,8 +2976,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateIntentWithHttpMessagesAsync(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"); @@ -3147,8 +2997,6 @@ 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); @@ -3159,8 +3007,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -3273,16 +3120,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -3317,8 +3154,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteIntentWithHttpMessagesAsync(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"); @@ -3330,8 +3171,6 @@ 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); @@ -3342,8 +3181,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -3459,16 +3297,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -3499,8 +3327,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetEntityWithHttpMessagesAsync(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"); @@ -3512,8 +3344,6 @@ 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); @@ -3523,8 +3353,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -3631,16 +3460,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -3674,8 +3493,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateEntityWithHttpMessagesAsync(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"); @@ -3691,8 +3514,6 @@ 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); @@ -3703,8 +3524,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -3817,16 +3637,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -3857,8 +3667,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteEntityWithHttpMessagesAsync(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"); @@ -3870,8 +3684,6 @@ 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); @@ -3881,8 +3693,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -3990,16 +3801,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -4030,8 +3831,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetHierarchicalEntityWithHttpMessagesAsync(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"); @@ -4043,8 +3848,6 @@ 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); @@ -4054,8 +3857,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -4163,16 +3965,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -4206,8 +3998,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateHierarchicalEntityWithHttpMessagesAsync(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"); @@ -4223,8 +4019,6 @@ 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); @@ -4235,8 +4029,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -4349,16 +4142,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -4389,8 +4172,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteHierarchicalEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteHierarchicalEntityWithHttpMessagesAsync(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"); @@ -4402,8 +4189,6 @@ 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); @@ -4413,8 +4198,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -4521,16 +4305,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -4561,8 +4335,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetCompositeEntityWithHttpMessagesAsync(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"); @@ -4574,8 +4352,6 @@ 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); @@ -4585,8 +4361,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -4693,16 +4468,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -4736,8 +4501,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateCompositeEntityWithHttpMessagesAsync(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"); @@ -4753,8 +4522,6 @@ 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); @@ -4765,8 +4532,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -4879,16 +4645,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -4919,8 +4675,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCompositeEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCompositeEntityWithHttpMessagesAsync(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"); @@ -4932,8 +4692,6 @@ 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); @@ -4943,8 +4701,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/compositeentities/{cEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -5051,16 +4808,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -5091,8 +4838,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetClosedListWithHttpMessagesAsync(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"); @@ -5104,8 +4855,6 @@ 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); @@ -5115,8 +4864,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -5223,16 +4971,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -5266,8 +5004,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateClosedListWithHttpMessagesAsync(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"); @@ -5283,8 +5025,6 @@ 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); @@ -5295,8 +5035,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -5410,16 +5149,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -5453,8 +5182,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> PatchClosedListWithHttpMessagesAsync(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"); @@ -5470,8 +5203,6 @@ 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); @@ -5482,8 +5213,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -5596,16 +5326,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -5636,8 +5356,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteClosedListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteClosedListWithHttpMessagesAsync(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"); @@ -5649,8 +5373,6 @@ 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); @@ -5660,8 +5382,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/closedlists/{clEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -5769,16 +5490,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -5809,8 +5520,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetPrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPrebuiltWithHttpMessagesAsync(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"); @@ -5822,8 +5537,6 @@ 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); @@ -5833,8 +5546,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -5941,16 +5653,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -5981,8 +5683,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePrebuiltWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePrebuiltWithHttpMessagesAsync(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"); @@ -5994,8 +5700,6 @@ 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); @@ -6005,8 +5709,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/prebuilts/{prebuiltId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -6114,16 +5817,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -6157,8 +5850,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteSubListWithHttpMessagesAsync(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"); @@ -6170,8 +5867,6 @@ 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); @@ -6182,8 +5877,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -6291,16 +5985,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -6338,8 +6022,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateSubListWithHttpMessagesAsync(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"); @@ -6355,8 +6043,6 @@ 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); @@ -6368,8 +6054,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -6484,16 +6169,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -6527,8 +6202,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListIntentSuggestionsWithHttpMessagesAsync(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"); @@ -6548,8 +6227,6 @@ 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); @@ -6560,8 +6237,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}/suggest"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -6678,16 +6354,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -6721,8 +6387,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListEntitySuggestionsWithHttpMessagesAsync(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"); @@ -6742,8 +6412,6 @@ 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); @@ -6754,8 +6422,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/entities/{entityId}/suggest"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -6871,16 +6538,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -6914,8 +6571,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> AddSubListWithHttpMessagesAsync(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"); @@ -6931,8 +6592,6 @@ 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); @@ -6943,8 +6602,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -7058,16 +6716,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -7098,8 +6746,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> AddCustomPrebuiltDomainWithHttpMessagesAsync(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"); @@ -7115,8 +6767,6 @@ 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); @@ -7126,8 +6776,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltdomains"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -7239,16 +6888,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -7280,8 +6919,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCustomPrebuiltIntentWithHttpMessagesAsync(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"); @@ -7297,8 +6940,6 @@ 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); @@ -7308,8 +6949,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltintents"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -7422,16 +7062,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -7459,8 +7089,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCustomPrebuiltIntentsWithHttpMessagesAsync(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"); @@ -7472,8 +7106,6 @@ 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); @@ -7482,8 +7114,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltintents"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -7589,16 +7220,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -7630,8 +7251,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddCustomPrebuiltEntityWithHttpMessagesAsync(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"); @@ -7647,8 +7272,6 @@ 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); @@ -7658,8 +7281,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -7771,16 +7393,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -7808,8 +7420,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCustomPrebuiltEntitiesWithHttpMessagesAsync(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"); @@ -7821,8 +7437,6 @@ 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); @@ -7831,8 +7445,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltentities"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -7939,16 +7552,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -7976,8 +7579,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCustomPrebuiltModelsWithHttpMessagesAsync(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"); @@ -7989,8 +7596,6 @@ 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); @@ -7999,8 +7604,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltmodels"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -8106,16 +7710,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -8146,8 +7740,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string domainName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteCustomPrebuiltDomainWithHttpMessagesAsync(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"); @@ -8163,8 +7761,6 @@ 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); @@ -8174,8 +7770,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/customprebuiltdomains/{domainName}"; - _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("{Endpoint}", Client.Endpoint); _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)); @@ -8283,16 +7878,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -8326,8 +7911,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetHierarchicalEntityChildWithHttpMessagesAsync(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"); @@ -8339,8 +7928,6 @@ 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); @@ -8351,8 +7938,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -8461,16 +8047,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -8507,8 +8083,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateHierarchicalEntityChildWithHttpMessagesAsync(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"); @@ -8524,8 +8104,6 @@ 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); @@ -8537,8 +8115,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -8653,16 +8230,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -8696,8 +8263,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteHierarchicalEntityChildWithHttpMessagesAsync(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"); @@ -8709,8 +8280,6 @@ 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); @@ -8721,8 +8290,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -8831,16 +8399,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -8874,8 +8432,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> AddHierarchicalEntityChildWithHttpMessagesAsync(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"); @@ -8891,8 +8453,6 @@ 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); @@ -8903,8 +8463,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -9018,16 +8577,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -9061,8 +8610,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> AddCompositeEntityChildWithHttpMessagesAsync(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"); @@ -9078,8 +8631,6 @@ 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); @@ -9090,8 +8641,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -9205,16 +8755,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -9248,8 +8788,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteCompositeEntityChildWithHttpMessagesAsync(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"); @@ -9261,8 +8805,6 @@ 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); @@ -9273,8 +8815,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -9383,16 +8924,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -9426,8 +8957,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListRegexEntityInfosWithHttpMessagesAsync(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"); @@ -9451,8 +8986,6 @@ 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); @@ -9463,8 +8996,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -9583,16 +9115,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -9624,8 +9146,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateRegexEntityModelWithHttpMessagesAsync(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"); @@ -9641,8 +9167,6 @@ 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); @@ -9652,8 +9176,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -9766,16 +9289,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -9809,8 +9322,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListPatternAnyEntityInfosWithHttpMessagesAsync(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"); @@ -9834,8 +9351,6 @@ 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); @@ -9846,8 +9361,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -9966,16 +9480,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -10007,8 +9511,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreatePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreatePatternAnyEntityModelWithHttpMessagesAsync(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"); @@ -10024,8 +9532,6 @@ 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); @@ -10035,8 +9541,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -10148,16 +9653,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -10188,8 +9683,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListEntityRolesWithHttpMessagesAsync(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"); @@ -10201,8 +9700,6 @@ 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); @@ -10212,8 +9709,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -10320,16 +9816,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -10363,8 +9849,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> CreateEntityRoleWithHttpMessagesAsync(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"); @@ -10380,8 +9870,6 @@ 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); @@ -10392,8 +9880,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -10506,16 +9993,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -10546,8 +10023,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListPrebuiltEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPrebuiltEntityRolesWithHttpMessagesAsync(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"); @@ -10559,8 +10040,6 @@ 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); @@ -10570,8 +10049,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -10678,16 +10156,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -10721,8 +10189,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> CreatePrebuiltEntityRoleWithHttpMessagesAsync(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"); @@ -10738,8 +10210,6 @@ 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); @@ -10750,8 +10220,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -10864,16 +10333,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -10904,8 +10363,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListClosedListEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListClosedListEntityRolesWithHttpMessagesAsync(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"); @@ -10917,8 +10380,6 @@ 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); @@ -10928,8 +10389,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -11036,16 +10496,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -11079,8 +10529,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> CreateClosedListEntityRoleWithHttpMessagesAsync(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"); @@ -11096,8 +10550,6 @@ 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); @@ -11108,8 +10560,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -11223,16 +10674,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -11263,8 +10704,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListRegexEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListRegexEntityRolesWithHttpMessagesAsync(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"); @@ -11276,8 +10721,6 @@ 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); @@ -11287,8 +10730,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -11396,16 +10838,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -11439,8 +10871,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> CreateRegexEntityRoleWithHttpMessagesAsync(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"); @@ -11456,8 +10892,6 @@ 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); @@ -11468,8 +10902,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -11582,16 +11015,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -11622,8 +11045,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCompositeEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCompositeEntityRolesWithHttpMessagesAsync(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"); @@ -11635,8 +11062,6 @@ 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); @@ -11646,8 +11071,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -11754,16 +11178,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -11797,8 +11211,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> CreateCompositeEntityRoleWithHttpMessagesAsync(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"); @@ -11814,8 +11232,6 @@ 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); @@ -11826,8 +11242,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -11940,16 +11355,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -11980,8 +11385,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListPatternAnyEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListPatternAnyEntityRolesWithHttpMessagesAsync(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"); @@ -11993,8 +11402,6 @@ 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); @@ -12004,8 +11411,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -12112,16 +11518,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -12155,8 +11551,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> CreatePatternAnyEntityRoleWithHttpMessagesAsync(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"); @@ -12172,8 +11572,6 @@ 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); @@ -12184,8 +11582,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -12298,16 +11695,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -12338,8 +11725,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListHierarchicalEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListHierarchicalEntityRolesWithHttpMessagesAsync(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"); @@ -12351,8 +11742,6 @@ 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); @@ -12362,8 +11751,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -12470,16 +11858,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -12513,8 +11891,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> CreateHierarchicalEntityRoleWithHttpMessagesAsync(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"); @@ -12530,8 +11912,6 @@ 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); @@ -12542,8 +11922,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -12656,16 +12035,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -12696,8 +12065,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(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"); @@ -12709,8 +12082,6 @@ 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); @@ -12720,8 +12091,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -12828,16 +12198,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -12871,8 +12231,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(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"); @@ -12888,8 +12252,6 @@ 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); @@ -12900,8 +12262,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -13015,16 +12376,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -13055,8 +12406,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetExplicitListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetExplicitListWithHttpMessagesAsync(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"); @@ -13068,8 +12423,6 @@ 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); @@ -13079,8 +12432,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -13188,16 +12540,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -13231,8 +12573,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> AddExplicitListItemWithHttpMessagesAsync(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"); @@ -13248,8 +12594,6 @@ 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); @@ -13260,8 +12604,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -13375,16 +12718,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -13415,8 +12748,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetRegexEntityEntityInfoWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetRegexEntityEntityInfoWithHttpMessagesAsync(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"); @@ -13428,8 +12765,6 @@ 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); @@ -13439,8 +12774,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -13547,16 +12881,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -13590,8 +12914,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateRegexEntityModelWithHttpMessagesAsync(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"); @@ -13607,8 +12935,6 @@ 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); @@ -13619,8 +12945,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -13733,16 +13058,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -13773,8 +13088,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteRegexEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteRegexEntityModelWithHttpMessagesAsync(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"); @@ -13786,8 +13105,6 @@ 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); @@ -13797,8 +13114,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/regexentities/{regexEntityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -13906,16 +13222,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -13946,8 +13252,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetPatternAnyEntityInfoWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetPatternAnyEntityInfoWithHttpMessagesAsync(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"); @@ -13959,8 +13269,6 @@ 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); @@ -13970,8 +13278,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -14079,16 +13386,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -14122,8 +13419,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdatePatternAnyEntityModelWithHttpMessagesAsync(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"); @@ -14139,8 +13440,6 @@ 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); @@ -14151,8 +13450,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -14265,16 +13563,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -14305,8 +13593,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePatternAnyEntityModelWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePatternAnyEntityModelWithHttpMessagesAsync(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"); @@ -14318,8 +13610,6 @@ 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); @@ -14329,8 +13619,7 @@ public Model(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternanyentities/{entityId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -14437,16 +13726,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -14480,8 +13759,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetEntityRoleWithHttpMessagesAsync(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"); @@ -14493,8 +13776,6 @@ 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); @@ -14505,8 +13786,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -14614,16 +13894,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -14660,8 +13930,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateEntityRoleWithHttpMessagesAsync(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"); @@ -14677,8 +13951,6 @@ 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); @@ -14690,8 +13962,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -14805,16 +14076,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -14848,8 +14109,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteEntityRoleWithHttpMessagesAsync(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"); @@ -14861,8 +14126,6 @@ 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); @@ -14873,8 +14136,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -14982,16 +14244,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -15025,8 +14277,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetPrebuiltEntityRoleWithHttpMessagesAsync(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"); @@ -15038,8 +14294,6 @@ 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); @@ -15050,8 +14304,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -15159,16 +14412,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -15205,8 +14448,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdatePrebuiltEntityRoleWithHttpMessagesAsync(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"); @@ -15222,8 +14469,6 @@ 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); @@ -15235,8 +14480,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -15350,16 +14594,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -15393,8 +14627,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeletePrebuiltEntityRoleWithHttpMessagesAsync(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"); @@ -15406,8 +14644,6 @@ 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); @@ -15418,8 +14654,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -15527,16 +14762,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -15570,8 +14795,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetClosedListEntityRoleWithHttpMessagesAsync(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"); @@ -15583,8 +14812,6 @@ 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); @@ -15595,8 +14822,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -15704,16 +14930,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -15750,8 +14966,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateClosedListEntityRoleWithHttpMessagesAsync(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"); @@ -15767,8 +14987,6 @@ 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); @@ -15780,8 +14998,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -15895,16 +15112,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -15938,8 +15145,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteClosedListEntityRoleWithHttpMessagesAsync(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"); @@ -15951,8 +15162,6 @@ 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); @@ -15963,8 +15172,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -16073,16 +15281,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -16116,8 +15314,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetRegexEntityRoleWithHttpMessagesAsync(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"); @@ -16129,8 +15331,6 @@ 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); @@ -16141,8 +15341,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -16251,16 +15450,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -16297,8 +15486,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateRegexEntityRoleWithHttpMessagesAsync(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"); @@ -16314,8 +15507,6 @@ 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); @@ -16327,8 +15518,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -16443,16 +15633,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -16486,8 +15666,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteRegexEntityRoleWithHttpMessagesAsync(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"); @@ -16499,8 +15683,6 @@ 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); @@ -16511,8 +15693,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -16620,16 +15801,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -16663,8 +15834,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetCompositeEntityRoleWithHttpMessagesAsync(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"); @@ -16676,8 +15851,6 @@ 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); @@ -16688,8 +15861,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -16797,16 +15969,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -16843,8 +16005,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateCompositeEntityRoleWithHttpMessagesAsync(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"); @@ -16860,8 +16026,6 @@ 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); @@ -16873,8 +16037,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -16988,16 +16151,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -17031,8 +16184,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteCompositeEntityRoleWithHttpMessagesAsync(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"); @@ -17044,8 +16201,6 @@ 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); @@ -17056,8 +16211,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -17166,16 +16320,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -17209,8 +16353,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetPatternAnyEntityRoleWithHttpMessagesAsync(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"); @@ -17222,8 +16370,6 @@ 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); @@ -17234,8 +16380,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -17344,16 +16489,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -17390,8 +16525,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdatePatternAnyEntityRoleWithHttpMessagesAsync(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"); @@ -17407,8 +16546,6 @@ 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); @@ -17420,8 +16557,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -17536,16 +16672,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -17579,8 +16705,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeletePatternAnyEntityRoleWithHttpMessagesAsync(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"); @@ -17592,8 +16722,6 @@ 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); @@ -17604,8 +16732,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -17714,16 +16841,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -17757,8 +16874,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetHierarchicalEntityRoleWithHttpMessagesAsync(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"); @@ -17770,8 +16891,6 @@ 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); @@ -17782,8 +16901,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -17892,16 +17010,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -17938,8 +17046,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateHierarchicalEntityRoleWithHttpMessagesAsync(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"); @@ -17955,8 +17067,6 @@ 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); @@ -17968,8 +17078,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -18084,16 +17193,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -18127,8 +17226,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteHierarchicalEntityRoleWithHttpMessagesAsync(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"); @@ -18140,8 +17243,6 @@ 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); @@ -18152,8 +17253,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -18261,16 +17361,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -18304,8 +17394,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetCustomEntityRoleWithHttpMessagesAsync(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"); @@ -18317,8 +17411,6 @@ 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); @@ -18329,8 +17421,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -18438,16 +17529,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -18484,8 +17565,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(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"); @@ -18501,8 +17586,6 @@ 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); @@ -18514,8 +17597,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -18629,16 +17711,6 @@ public Model(LUISAuthoringClient client) /// /// 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. /// @@ -18672,8 +17744,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteCustomEntityRoleWithHttpMessagesAsync(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"); @@ -18685,8 +17761,6 @@ 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); @@ -18697,8 +17771,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -18807,16 +17880,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -18850,8 +17913,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> GetExplicitListItemWithHttpMessagesAsync(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"); @@ -18863,8 +17930,6 @@ 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); @@ -18875,8 +17940,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -18985,16 +18049,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -19031,8 +18085,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdateExplicitListItemWithHttpMessagesAsync(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"); @@ -19048,8 +18106,6 @@ 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); @@ -19061,8 +18117,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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('"'))); @@ -19177,16 +18232,6 @@ public Model(LUISAuthoringClient client) /// 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. /// @@ -19220,8 +18265,12 @@ public Model(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> DeleteExplicitListItemWithHttpMessagesAsync(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"); @@ -19233,8 +18282,6 @@ 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); @@ -19245,8 +18292,7 @@ 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("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"')); - _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"')); + _url = _url.Replace("{Endpoint}", Client.Endpoint); _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 50cb8e773549..d9fd86bed371 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ModelExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ModelExtensions.cs @@ -27,16 +27,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -49,9 +39,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddIntentAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddIntentAsync(this IModel operations, System.Guid appId, string versionId, ModelCreateObject intentCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddIntentWithHttpMessagesAsync(appId, versionId, intentCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -63,16 +53,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -88,9 +68,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListIntentsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListIntentsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListIntentsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -102,16 +82,6 @@ public static partial class ModelExtensions /// /// 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,9 +94,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddEntityAsync(this IModel operations, System.Guid appId, string versionId, ModelCreateObject modelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, modelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddEntityWithHttpMessagesAsync(appId, versionId, modelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -139,16 +109,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -164,9 +124,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -178,16 +138,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -200,9 +150,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddHierarchicalEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, HierarchicalEntityModel hierarchicalModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddHierarchicalEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hierarchicalModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hierarchicalModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -215,16 +165,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -240,9 +180,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListHierarchicalEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListHierarchicalEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListHierarchicalEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -254,16 +194,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -276,9 +206,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddCompositeEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, CompositeEntityModel compositeModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCompositeEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, compositeModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCompositeEntityWithHttpMessagesAsync(appId, versionId, compositeModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -291,16 +221,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -316,9 +236,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListCompositeEntitiesAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCompositeEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCompositeEntitiesWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -331,16 +251,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -356,9 +266,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListClosedListsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListClosedListsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListClosedListsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -370,16 +280,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -392,9 +292,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddClosedListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddClosedListAsync(this IModel operations, System.Guid appId, string versionId, ClosedListModelCreateObject closedListModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, closedListModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddClosedListWithHttpMessagesAsync(appId, versionId, closedListModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -406,16 +306,6 @@ public static partial class ModelExtensions /// /// 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,9 +318,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> AddPrebuiltAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList prebuiltExtractorNames, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> AddPrebuiltAsync(this IModel operations, System.Guid appId, string versionId, IList prebuiltExtractorNames, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddPrebuiltWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltExtractorNames, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddPrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltExtractorNames, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -443,16 +333,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -468,9 +348,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListPrebuiltsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPrebuiltsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPrebuiltsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -482,16 +362,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -501,9 +371,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListPrebuiltEntitiesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPrebuiltEntitiesAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPrebuiltEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPrebuiltEntitiesWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -516,16 +386,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -541,9 +401,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListModelsAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListModelsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListModelsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -556,16 +416,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -584,9 +434,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.ExamplesMethodWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, modelId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ExamplesMethodWithHttpMessagesAsync(appId, versionId, modelId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -598,16 +448,6 @@ public static partial class ModelExtensions /// /// 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,9 +460,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetIntentAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid intentId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetIntentWithHttpMessagesAsync(appId, versionId, intentId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -634,16 +474,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -659,9 +489,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdateIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, ModelUpdateObject modelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateIntentWithHttpMessagesAsync(appId, versionId, intentId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -673,16 +503,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -699,9 +519,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteIntentAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, bool? deleteUtterances = false, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, deleteUtterances, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteIntentWithHttpMessagesAsync(appId, versionId, intentId, deleteUtterances, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -713,16 +533,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -735,9 +545,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetEntityWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -749,16 +559,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -774,9 +574,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdateEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, ModelUpdateObject modelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateEntityWithHttpMessagesAsync(appId, versionId, entityId, modelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -788,16 +588,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -810,9 +600,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteEntityWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -825,16 +615,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -847,9 +627,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetHierarchicalEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetHierarchicalEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -862,16 +642,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -887,9 +657,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdateHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalEntityModel hierarchicalModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateHierarchicalEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hierarchicalModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, hierarchicalModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -901,16 +671,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -923,9 +683,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteHierarchicalEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteHierarchicalEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteHierarchicalEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteHierarchicalEntityWithHttpMessagesAsync(appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -937,16 +697,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -959,9 +709,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetCompositeEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCompositeEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -973,16 +723,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -998,9 +738,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdateCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CompositeEntityModel compositeModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateCompositeEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, compositeModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, compositeModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1012,16 +752,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1034,9 +764,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteCompositeEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteCompositeEntityAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCompositeEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCompositeEntityWithHttpMessagesAsync(appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1048,16 +778,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1070,9 +790,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetClosedListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1084,16 +804,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1109,9 +819,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdateClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelUpdateObject closedListModelUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, closedListModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, closedListModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1124,16 +834,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1149,9 +849,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task PatchClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, ClosedListModelPatchObject closedListModelPatchObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.PatchClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, closedListModelPatchObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.PatchClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, closedListModelPatchObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1163,16 +863,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1185,9 +875,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteClosedListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteClosedListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteClosedListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteClosedListWithHttpMessagesAsync(appId, versionId, clEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1200,16 +890,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1222,9 +902,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetPrebuiltAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPrebuiltAsync(this IModel operations, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPrebuiltWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1236,16 +916,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1258,9 +928,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeletePrebuiltAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePrebuiltAsync(this IModel operations, System.Guid appId, string versionId, System.Guid prebuiltId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePrebuiltWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePrebuiltWithHttpMessagesAsync(appId, versionId, prebuiltId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1273,16 +943,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1298,9 +958,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteSubListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, subListId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteSubListWithHttpMessagesAsync(appId, versionId, clEntityId, subListId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1312,16 +972,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1341,9 +991,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdateSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, long subListId, WordListBaseUpdateObject wordListBaseUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateSubListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, subListId, wordListBaseUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateSubListWithHttpMessagesAsync(appId, versionId, clEntityId, subListId, wordListBaseUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1356,16 +1006,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1381,9 +1021,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListIntentSuggestionsAsync(this IModel operations, System.Guid appId, string versionId, System.Guid intentId, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListIntentSuggestionsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListIntentSuggestionsWithHttpMessagesAsync(appId, versionId, intentId, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1396,16 +1036,6 @@ public static partial class ModelExtensions /// /// 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,9 +1051,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListEntitySuggestionsAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListEntitySuggestionsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListEntitySuggestionsWithHttpMessagesAsync(appId, versionId, entityId, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1435,16 +1065,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1460,9 +1080,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task AddSubListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid clEntityId, WordListObject wordListCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddSubListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, clEntityId, wordListCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddSubListWithHttpMessagesAsync(appId, versionId, clEntityId, wordListCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1475,16 +1095,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1497,9 +1107,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> AddCustomPrebuiltDomainAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> AddCustomPrebuiltDomainAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainCreateBaseObject prebuiltDomainObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltDomainObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(appId, versionId, prebuiltDomainObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1511,16 +1121,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1534,9 +1134,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddCustomPrebuiltIntentAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCustomPrebuiltIntentAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCustomPrebuiltIntentWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCustomPrebuiltIntentWithHttpMessagesAsync(appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1549,16 +1149,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1568,9 +1158,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCustomPrebuiltIntentsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCustomPrebuiltIntentsAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCustomPrebuiltIntentsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCustomPrebuiltIntentsWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1582,16 +1172,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1605,9 +1185,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task AddCustomPrebuiltEntityAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddCustomPrebuiltEntityAsync(this IModel operations, System.Guid appId, string versionId, PrebuiltDomainModelCreateObject prebuiltDomainModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCustomPrebuiltEntityWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCustomPrebuiltEntityWithHttpMessagesAsync(appId, versionId, prebuiltDomainModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1619,16 +1199,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1638,9 +1208,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCustomPrebuiltEntitiesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCustomPrebuiltEntitiesAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCustomPrebuiltEntitiesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCustomPrebuiltEntitiesWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1653,16 +1223,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1672,9 +1232,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCustomPrebuiltModelsAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCustomPrebuiltModelsAsync(this IModel operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCustomPrebuiltModelsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCustomPrebuiltModelsWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1686,16 +1246,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1708,9 +1258,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteCustomPrebuiltDomainAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string domainName, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteCustomPrebuiltDomainAsync(this IModel operations, System.Guid appId, string versionId, string domainName, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCustomPrebuiltDomainWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, domainName, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCustomPrebuiltDomainWithHttpMessagesAsync(appId, versionId, domainName, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1723,16 +1273,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1748,9 +1288,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetHierarchicalEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1763,16 +1303,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1791,9 +1321,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdateHierarchicalEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hChildId, hierarchicalChildModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, hierarchicalChildModelUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1806,16 +1336,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1831,9 +1351,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid hChildId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteHierarchicalEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hChildId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1846,16 +1366,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1871,9 +1381,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task AddHierarchicalEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, HierarchicalChildModelCreateObject hierarchicalChildModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddHierarchicalEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, hierarchicalChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddHierarchicalEntityChildWithHttpMessagesAsync(appId, versionId, hEntityId, hierarchicalChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1886,16 +1396,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1911,9 +1411,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task AddCompositeEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CompositeChildModelCreateObject compositeChildModelCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddCompositeEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, compositeChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddCompositeEntityChildWithHttpMessagesAsync(appId, versionId, cEntityId, compositeChildModelCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1926,16 +1426,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1951,9 +1441,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteCompositeEntityChildAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid cChildId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCompositeEntityChildWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, cChildId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCompositeEntityChildWithHttpMessagesAsync(appId, versionId, cEntityId, cChildId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -1966,16 +1456,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -1991,9 +1471,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListRegexEntityInfosAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListRegexEntityInfosWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListRegexEntityInfosWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2005,16 +1485,6 @@ public static partial class ModelExtensions /// /// 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,9 +1498,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreateRegexEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreateRegexEntityModelAsync(this IModel operations, System.Guid appId, string versionId, RegexModelCreateObject regexEntityExtractorCreateObj, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateRegexEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, regexEntityExtractorCreateObj, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateRegexEntityModelWithHttpMessagesAsync(appId, versionId, regexEntityExtractorCreateObj, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2043,16 +1513,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2068,9 +1528,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListPatternAnyEntityInfosAsync(this IModel operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPatternAnyEntityInfosWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPatternAnyEntityInfosWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2082,16 +1542,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2105,9 +1555,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task CreatePatternAnyEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CreatePatternAnyEntityModelAsync(this IModel operations, System.Guid appId, string versionId, PatternAnyModelCreateObject extractorCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreatePatternAnyEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, extractorCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreatePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, extractorCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2119,16 +1569,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2141,9 +1581,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2155,16 +1595,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2180,9 +1610,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task CreateEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2194,16 +1624,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2216,9 +1636,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListPrebuiltEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPrebuiltEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPrebuiltEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPrebuiltEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2230,16 +1650,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2255,9 +1665,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task CreatePrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreatePrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreatePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2269,16 +1679,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2291,9 +1691,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListClosedListEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListClosedListEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListClosedListEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListClosedListEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2305,16 +1705,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2330,9 +1720,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task CreateClosedListEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateClosedListEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2345,16 +1735,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2367,9 +1747,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListRegexEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListRegexEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListRegexEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListRegexEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2382,16 +1762,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2407,9 +1777,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task CreateRegexEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateRegexEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2421,16 +1791,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2443,9 +1803,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCompositeEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCompositeEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCompositeEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCompositeEntityRolesWithHttpMessagesAsync(appId, versionId, cEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2457,16 +1817,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2482,9 +1832,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task CreateCompositeEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateCompositeEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEntityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2496,16 +1846,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2518,9 +1858,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListPatternAnyEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListPatternAnyEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPatternAnyEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPatternAnyEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2532,16 +1872,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2557,9 +1887,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task CreatePatternAnyEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreatePatternAnyEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreatePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2571,16 +1901,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2593,9 +1913,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListHierarchicalEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListHierarchicalEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListHierarchicalEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListHierarchicalEntityRolesWithHttpMessagesAsync(appId, versionId, hEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2607,16 +1927,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2632,9 +1942,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task CreateHierarchicalEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateHierarchicalEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, hEntityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2646,16 +1956,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2668,9 +1968,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> ListCustomPrebuiltEntityRolesAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListCustomPrebuiltEntityRolesAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListCustomPrebuiltEntityRolesWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2682,16 +1982,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2707,9 +1997,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task CreateCustomPrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, EntityRoleCreateObject entityRoleCreateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CreateCustomPrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, entityRoleCreateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2722,16 +2012,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2744,9 +2024,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task> GetExplicitListAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> GetExplicitListAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetExplicitListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetExplicitListWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2759,16 +2039,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2784,9 +2054,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task AddExplicitListItemAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, ExplicitListItemCreateObject item, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddExplicitListItemWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, item, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddExplicitListItemWithHttpMessagesAsync(appId, versionId, entityId, item, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2799,16 +2069,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2821,9 +2081,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetRegexEntityEntityInfoAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetRegexEntityEntityInfoAsync(this IModel operations, System.Guid appId, string versionId, System.Guid regexEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetRegexEntityEntityInfoWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, regexEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetRegexEntityEntityInfoWithHttpMessagesAsync(appId, versionId, regexEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2835,16 +2095,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2860,9 +2110,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdateRegexEntityModelAsync(this IModel operations, System.Guid appId, string versionId, System.Guid regexEntityId, RegexModelUpdateObject regexEntityUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateRegexEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, regexEntityId, regexEntityUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateRegexEntityModelWithHttpMessagesAsync(appId, versionId, regexEntityId, regexEntityUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2874,16 +2124,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2896,9 +2136,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeleteRegexEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid regexEntityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteRegexEntityModelAsync(this IModel operations, System.Guid appId, string versionId, System.Guid regexEntityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteRegexEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, regexEntityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteRegexEntityModelWithHttpMessagesAsync(appId, versionId, regexEntityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2911,16 +2151,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2933,9 +2163,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task GetPatternAnyEntityInfoAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetPatternAnyEntityInfoAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPatternAnyEntityInfoWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPatternAnyEntityInfoWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2948,16 +2178,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -2973,9 +2193,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdatePatternAnyEntityModelAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, PatternAnyModelUpdateObject patternAnyUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePatternAnyEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, patternAnyUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, entityId, patternAnyUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -2987,16 +2207,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3009,9 +2219,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - public static async Task DeletePatternAnyEntityModelAsync(this IModel operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePatternAnyEntityModelAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePatternAnyEntityModelWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePatternAnyEntityModelWithHttpMessagesAsync(appId, versionId, entityId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3023,16 +2233,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3048,9 +2248,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3062,16 +2262,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3090,9 +2280,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdateEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3104,16 +2294,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3129,9 +2309,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3143,16 +2323,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3168,9 +2338,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetPrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3182,16 +2352,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3210,9 +2370,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdatePrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3224,16 +2384,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3249,9 +2399,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeletePrebuiltEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3263,16 +2413,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3288,9 +2428,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetClosedListEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetClosedListEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3302,16 +2442,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3330,9 +2460,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdateClosedListEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3344,16 +2474,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3369,9 +2489,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteClosedListEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteClosedListEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteClosedListEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3384,16 +2504,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3409,9 +2519,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetRegexEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetRegexEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3424,16 +2534,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3452,9 +2552,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdateRegexEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3467,16 +2567,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3492,9 +2582,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteRegexEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteRegexEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteRegexEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3506,16 +2596,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3531,9 +2611,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetCompositeEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCompositeEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3545,16 +2625,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3573,9 +2643,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdateCompositeEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEntityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3587,16 +2657,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3612,9 +2672,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteCompositeEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid cEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCompositeEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, cEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCompositeEntityRoleWithHttpMessagesAsync(appId, versionId, cEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3627,16 +2687,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3652,9 +2702,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetPatternAnyEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetPatternAnyEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetPatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3667,16 +2717,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3695,9 +2735,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdatePatternAnyEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3710,16 +2750,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3735,9 +2765,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeletePatternAnyEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePatternAnyEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePatternAnyEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3750,16 +2780,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3775,9 +2795,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetHierarchicalEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetHierarchicalEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, hEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3790,16 +2810,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3818,9 +2828,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdateHierarchicalEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, hEntityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3833,16 +2843,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3858,9 +2858,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteHierarchicalEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid hEntityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteHierarchicalEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, hEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteHierarchicalEntityRoleWithHttpMessagesAsync(appId, versionId, hEntityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3872,16 +2872,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3897,9 +2887,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetCustomEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetCustomEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetCustomEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3911,16 +2901,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3939,9 +2919,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + 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)) { - using (var _result = await operations.UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateCustomPrebuiltEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, entityRoleUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3953,16 +2933,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -3978,9 +2948,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteCustomEntityRoleAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, System.Guid roleId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteCustomEntityRoleWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteCustomEntityRoleWithHttpMessagesAsync(appId, versionId, entityId, roleId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -3993,16 +2963,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -4018,9 +2978,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task GetExplicitListItemAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, long itemId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetExplicitListItemWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, itemId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetExplicitListItemWithHttpMessagesAsync(appId, versionId, entityId, itemId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -4033,16 +2993,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -4061,9 +3011,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdateExplicitListItemAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, long itemId, ExplicitListItemUpdateObject item, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateExplicitListItemWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, itemId, item, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateExplicitListItemWithHttpMessagesAsync(appId, versionId, entityId, itemId, item, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -4076,16 +3026,6 @@ public static partial class ModelExtensions /// /// 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. /// @@ -4101,9 +3041,9 @@ public static partial class ModelExtensions /// /// The cancellation token. /// - 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)) + public static async Task DeleteExplicitListItemAsync(this IModel operations, System.Guid appId, string versionId, System.Guid entityId, long itemId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteExplicitListItemWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, entityId, itemId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteExplicitListItemWithHttpMessagesAsync(appId, versionId, entityId, itemId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } 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 deleted file mode 100644 index 220e207dd972..000000000000 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureClouds.cs +++ /dev/null @@ -1,60 +0,0 @@ -// -// 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 deleted file mode 100644 index 97c96745f59f..000000000000 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Models/AzureRegions.cs +++ /dev/null @@ -1,126 +0,0 @@ -// -// 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/Pattern.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Pattern.cs index a8e9d854e64c..65f82698898b 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Pattern.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Pattern.cs @@ -53,16 +53,6 @@ public Pattern(LUISAuthoringClient client) /// /// 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. /// @@ -93,8 +83,12 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddPatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternRuleCreateObject pattern, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddPatternWithHttpMessagesAsync(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"); @@ -110,8 +104,6 @@ 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); @@ -121,8 +113,7 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrule"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -234,16 +225,6 @@ public Pattern(LUISAuthoringClient client) /// /// 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. /// @@ -277,8 +258,12 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListPatternsWithHttpMessagesAsync(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"); @@ -302,8 +287,6 @@ 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); @@ -314,8 +297,7 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules"; - _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("{Endpoint}", Client.Endpoint); _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(); @@ -434,16 +416,6 @@ public Pattern(LUISAuthoringClient client) /// /// 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. /// @@ -474,8 +446,12 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> UpdatePatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> UpdatePatternsWithHttpMessagesAsync(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"); @@ -491,8 +467,6 @@ 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); @@ -502,8 +476,7 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -615,16 +588,6 @@ public Pattern(LUISAuthoringClient client) /// /// 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. /// @@ -655,8 +618,12 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> BatchAddPatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> BatchAddPatternsWithHttpMessagesAsync(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"); @@ -672,8 +639,6 @@ 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); @@ -683,8 +648,7 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -796,16 +760,6 @@ public Pattern(LUISAuthoringClient client) /// /// 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. /// @@ -836,8 +790,12 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePatternsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patternIds, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePatternsWithHttpMessagesAsync(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"); @@ -853,8 +811,6 @@ 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); @@ -864,8 +820,7 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -977,16 +932,6 @@ public Pattern(LUISAuthoringClient client) /// /// 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. /// @@ -1020,8 +965,12 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task> UpdatePatternWithHttpMessagesAsync(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"); @@ -1037,8 +986,6 @@ 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); @@ -1049,8 +996,7 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules/{patternId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -1164,16 +1110,6 @@ public Pattern(LUISAuthoringClient client) /// 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. /// @@ -1204,8 +1140,12 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeletePatternWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeletePatternWithHttpMessagesAsync(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"); @@ -1217,8 +1157,6 @@ 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); @@ -1228,8 +1166,7 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/patternrules/{patternId}"; - _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("{Endpoint}", Client.Endpoint); _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('"'))); @@ -1336,16 +1273,6 @@ public Pattern(LUISAuthoringClient client) /// /// 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. /// @@ -1382,8 +1309,12 @@ public Pattern(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - 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)) + public async Task>> ListIntentPatternsWithHttpMessagesAsync(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"); @@ -1407,8 +1338,6 @@ 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); @@ -1420,8 +1349,7 @@ public Pattern(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/intents/{intentId}/patternrules"; - _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("{Endpoint}", Client.Endpoint); _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 d0d94aac3fab..d9457ef59825 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PatternExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PatternExtensions.cs @@ -27,16 +27,6 @@ public static partial class PatternExtensions /// /// 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. /// @@ -49,9 +39,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task AddPatternAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, PatternRuleCreateObject pattern, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddPatternAsync(this IPattern operations, System.Guid appId, string versionId, PatternRuleCreateObject pattern, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddPatternWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, pattern, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddPatternWithHttpMessagesAsync(appId, versionId, pattern, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -63,16 +53,6 @@ public static partial class PatternExtensions /// /// 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. /// @@ -88,9 +68,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListPatternsAsync(this IPattern operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListPatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListPatternsWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -102,16 +82,6 @@ public static partial class PatternExtensions /// /// 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,9 +94,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task> UpdatePatternsAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> UpdatePatternsAsync(this IPattern operations, System.Guid appId, string versionId, IList patterns, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patterns, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePatternsWithHttpMessagesAsync(appId, versionId, patterns, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -138,16 +108,6 @@ public static partial class PatternExtensions /// /// 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. /// @@ -160,9 +120,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task> BatchAddPatternsAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patterns, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> BatchAddPatternsAsync(this IPattern operations, System.Guid appId, string versionId, IList patterns, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.BatchAddPatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patterns, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.BatchAddPatternsWithHttpMessagesAsync(appId, versionId, patterns, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -174,16 +134,6 @@ public static partial class PatternExtensions /// /// 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. /// @@ -196,9 +146,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task DeletePatternsAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList patternIds, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePatternsAsync(this IPattern operations, System.Guid appId, string versionId, IList patternIds, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patternIds, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePatternsWithHttpMessagesAsync(appId, versionId, patternIds, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -210,16 +160,6 @@ public static partial class PatternExtensions /// /// 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. /// @@ -235,9 +175,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - 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)) + public static async Task UpdatePatternAsync(this IPattern operations, System.Guid appId, string versionId, System.Guid patternId, PatternRuleUpdateObject pattern, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdatePatternWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patternId, pattern, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdatePatternWithHttpMessagesAsync(appId, versionId, patternId, pattern, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -250,16 +190,6 @@ public static partial class PatternExtensions /// /// 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. /// @@ -272,9 +202,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - public static async Task DeletePatternAsync(this IPattern operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, System.Guid patternId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeletePatternAsync(this IPattern operations, System.Guid appId, string versionId, System.Guid patternId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeletePatternWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, patternId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeletePatternWithHttpMessagesAsync(appId, versionId, patternId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -286,16 +216,6 @@ public static partial class PatternExtensions /// /// 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. /// @@ -314,9 +234,9 @@ public static partial class PatternExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListIntentPatternsAsync(this IPattern operations, System.Guid appId, string versionId, System.Guid intentId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListIntentPatternsWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, intentId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListIntentPatternsWithHttpMessagesAsync(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 6b6c30fb3cd6..b71f91621828 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Permissions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Permissions.cs @@ -54,16 +54,6 @@ 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. /// @@ -79,11 +69,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListWithHttpMessagesAsync(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,8 +91,6 @@ 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); @@ -100,8 +98,7 @@ public Permissions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -207,16 +204,6 @@ 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. /// @@ -244,8 +231,12 @@ public Permissions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToAdd, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> AddWithHttpMessagesAsync(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"); @@ -257,8 +248,6 @@ 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); @@ -267,8 +256,7 @@ public Permissions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -380,16 +368,6 @@ 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. /// @@ -417,8 +395,12 @@ public Permissions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToDelete, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(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"); @@ -430,8 +412,6 @@ 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); @@ -440,8 +420,7 @@ public Permissions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); @@ -553,16 +532,6 @@ public Permissions(LUISAuthoringClient client) /// 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. /// @@ -590,8 +559,12 @@ public Permissions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CollaboratorsArray collaborators, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(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"); @@ -603,8 +576,6 @@ 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); @@ -613,8 +584,7 @@ public Permissions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/permissions"; - _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("{Endpoint}", Client.Endpoint); _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 2bed6a5105c4..e9f8debf582c 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PermissionsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/PermissionsExtensions.cs @@ -26,25 +26,15 @@ 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, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ListAsync(this IPermissions operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -57,16 +47,6 @@ 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. /// @@ -76,9 +56,9 @@ public static partial class PermissionsExtensions /// /// The cancellation token. /// - public static async Task AddAsync(this IPermissions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToAdd, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task AddAsync(this IPermissions operations, System.Guid appId, UserCollaborator userToAdd, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.AddWithHttpMessagesAsync(azureRegion, azureCloud, appId, userToAdd, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.AddWithHttpMessagesAsync(appId, userToAdd, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -91,16 +71,6 @@ 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. /// @@ -110,9 +80,9 @@ public static partial class PermissionsExtensions /// /// The cancellation token. /// - public static async Task DeleteAsync(this IPermissions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToDelete, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IPermissions operations, System.Guid appId, UserCollaborator userToDelete, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, userToDelete, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, userToDelete, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -125,16 +95,6 @@ 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. /// @@ -144,9 +104,9 @@ public static partial class PermissionsExtensions /// /// The cancellation token. /// - public static async Task UpdateAsync(this IPermissions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CollaboratorsArray collaborators, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IPermissions operations, System.Guid appId, CollaboratorsArray collaborators, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, collaborators, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, collaborators, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } 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 ae57cfaadac8..d346def24fbe 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Settings.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Settings.cs @@ -53,16 +53,6 @@ public Settings(LUISAuthoringClient client) /// /// 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. /// @@ -90,8 +80,12 @@ public Settings(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(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,8 +97,6 @@ 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); @@ -113,8 +105,7 @@ public Settings(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/settings"; - _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("{Endpoint}", Client.Endpoint); _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,16 +211,6 @@ public Settings(LUISAuthoringClient client) /// /// 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. /// @@ -260,8 +241,12 @@ public Settings(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList listOfAppVersionSettingObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(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"); @@ -277,8 +262,6 @@ 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); @@ -288,8 +271,7 @@ public Settings(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/settings"; - _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("{Endpoint}", Client.Endpoint); _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 6ab075d66202..62a25117ec7f 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SettingsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/SettingsExtensions.cs @@ -27,16 +27,6 @@ public static partial class SettingsExtensions /// /// 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. /// @@ -46,9 +36,9 @@ public static partial class SettingsExtensions /// /// The cancellation token. /// - public static async Task> ListAsync(this ISettings operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> ListAsync(this ISettings operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -60,16 +50,6 @@ public static partial class SettingsExtensions /// /// 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. /// @@ -82,9 +62,9 @@ public static partial class SettingsExtensions /// /// The cancellation token. /// - public static async Task UpdateAsync(this ISettings operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList listOfAppVersionSettingObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this ISettings operations, System.Guid appId, string versionId, IList listOfAppVersionSettingObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, listOfAppVersionSettingObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(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 193c3cba15c5..25c9ffce4941 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Train.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Train.cs @@ -59,16 +59,6 @@ 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. /// @@ -96,8 +86,12 @@ public Train(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> TrainVersionWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> TrainVersionWithHttpMessagesAsync(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"); @@ -109,8 +103,6 @@ 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); @@ -119,8 +111,7 @@ public Train(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/train"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -230,16 +221,6 @@ 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. /// @@ -267,8 +248,12 @@ public Train(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> GetStatusWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> GetStatusWithHttpMessagesAsync(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"); @@ -280,8 +265,6 @@ 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); @@ -290,8 +273,7 @@ public Train(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/train"; - _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("{Endpoint}", Client.Endpoint); _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 c59c7b8be833..0cc8990435d5 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/TrainExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/TrainExtensions.cs @@ -33,16 +33,6 @@ 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. /// @@ -52,9 +42,9 @@ public static partial class TrainExtensions /// /// The cancellation token. /// - public static async Task TrainVersionAsync(this ITrain operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task TrainVersionAsync(this ITrain operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.TrainVersionWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.TrainVersionWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -70,16 +60,6 @@ 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. /// @@ -89,9 +69,9 @@ public static partial class TrainExtensions /// /// The cancellation token. /// - public static async Task> GetStatusAsync(this ITrain operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task> GetStatusAsync(this ITrain operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetStatusWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetStatusWithHttpMessagesAsync(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 0031fbff27e4..b8c171d063c8 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Versions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Versions.cs @@ -53,16 +53,6 @@ public Versions(LUISAuthoringClient client) /// /// 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. /// @@ -93,8 +83,12 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CloneWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CloneWithHttpMessagesAsync(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"); @@ -110,8 +104,6 @@ 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); @@ -121,8 +113,7 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/clone"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -234,16 +225,6 @@ public Versions(LUISAuthoringClient client) /// /// 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. /// @@ -265,11 +246,21 @@ 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(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(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); @@ -289,8 +280,6 @@ 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); @@ -300,8 +289,7 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); List _queryParameters = new List(); if (skip != null) @@ -421,16 +409,6 @@ public Versions(LUISAuthoringClient client) /// 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. /// @@ -458,8 +436,12 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(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"); @@ -471,8 +453,6 @@ 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); @@ -481,8 +461,7 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -588,16 +567,6 @@ 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. /// @@ -628,8 +597,12 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> UpdateWithHttpMessagesAsync(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"); @@ -645,8 +618,6 @@ 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); @@ -656,8 +627,7 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -769,16 +739,6 @@ 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. /// @@ -806,8 +766,12 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteWithHttpMessagesAsync(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"); @@ -819,8 +783,6 @@ 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); @@ -829,8 +791,7 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -936,16 +897,6 @@ 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. /// @@ -973,8 +924,12 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ExportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ExportWithHttpMessagesAsync(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"); @@ -986,8 +941,6 @@ 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); @@ -996,8 +949,7 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/export"; - _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("{Endpoint}", Client.Endpoint); _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 @@ -1103,16 +1055,6 @@ 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. /// @@ -1144,8 +1086,12 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, LuisApp luisApp, string versionId = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ImportWithHttpMessagesAsync(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"); @@ -1157,8 +1103,6 @@ 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); @@ -1168,8 +1112,7 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/import"; - _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("{Endpoint}", Client.Endpoint); _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"'))); List _queryParameters = new List(); if (versionId != null) @@ -1289,16 +1232,6 @@ public Versions(LUISAuthoringClient client) /// /// 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. /// @@ -1329,8 +1262,12 @@ public Versions(LUISAuthoringClient client) /// /// A response object containing the response body and response headers. /// - public async Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string utterance, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> DeleteUnlabelledUtteranceWithHttpMessagesAsync(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"); @@ -1346,8 +1283,6 @@ 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); @@ -1357,8 +1292,7 @@ public Versions(LUISAuthoringClient client) // Construct URL var _baseUrl = Client.BaseUri; var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/suggest"; - _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("{Endpoint}", Client.Endpoint); _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 9ffedd90d7f8..1f562ca124dc 100644 --- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/VersionsExtensions.cs +++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/VersionsExtensions.cs @@ -27,16 +27,6 @@ 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. /// @@ -49,9 +39,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task CloneAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task CloneAsync(this IVersions operations, System.Guid appId, string versionId, TaskUpdateObject versionCloneObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.CloneWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, versionCloneObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.CloneWithHttpMessagesAsync(appId, versionId, versionCloneObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -63,16 +53,6 @@ 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. /// @@ -85,9 +65,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - 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)) + public static async Task> ListAsync(this IVersions operations, System.Guid appId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, skip, take, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ListWithHttpMessagesAsync(appId, skip, take, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -101,16 +81,6 @@ 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. /// @@ -120,9 +90,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task GetAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task GetAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.GetWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.GetWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -134,16 +104,6 @@ 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. /// @@ -156,9 +116,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task UpdateAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task UpdateAsync(this IVersions operations, System.Guid appId, string versionId, TaskUpdateObject versionUpdateObject, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, versionUpdateObject, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, versionId, versionUpdateObject, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -170,16 +130,6 @@ 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. /// @@ -189,9 +139,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task DeleteAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -203,16 +153,6 @@ 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. /// @@ -222,9 +162,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task ExportAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task ExportAsync(this IVersions operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ExportWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ExportWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -236,16 +176,6 @@ 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. /// @@ -259,9 +189,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - 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)) + public static async Task ImportAsync(this IVersions operations, System.Guid appId, LuisApp luisApp, string versionId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.ImportWithHttpMessagesAsync(azureRegion, azureCloud, appId, luisApp, versionId, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.ImportWithHttpMessagesAsync(appId, luisApp, versionId, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; } @@ -273,16 +203,6 @@ 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. /// @@ -295,9 +215,9 @@ public static partial class VersionsExtensions /// /// The cancellation token. /// - public static async Task DeleteUnlabelledUtteranceAsync(this IVersions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, string utterance, CancellationToken cancellationToken = default(CancellationToken)) + public static async Task DeleteUnlabelledUtteranceAsync(this IVersions operations, System.Guid appId, string versionId, string utterance, CancellationToken cancellationToken = default(CancellationToken)) { - using (var _result = await operations.DeleteUnlabelledUtteranceWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, utterance, null, cancellationToken).ConfigureAwait(false)) + using (var _result = await operations.DeleteUnlabelledUtteranceWithHttpMessagesAsync(appId, versionId, utterance, null, cancellationToken).ConfigureAwait(false)) { return _result.Body; }