diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs
index cb1fb705c87ca..7da07a9d4295c 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Apps.cs
@@ -53,11 +53,21 @@ public Apps(LUISAuthoringClient client)
///
/// Creates a new LUIS app.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
- /// A model containing Name, Description (optional), Culture, Usage Scenario
- /// (optional), Domain (optional) and initial version ID (optional) of the
- /// application. Default value for the version ID is 0.1. Note: the culture
- /// cannot be changed after the app is created.
+ /// An application containing Name, Description (optional), Culture, Usage
+ /// Scenario (optional), Domain (optional) and initial version ID (optional) of
+ /// the application. Default value for the version ID is "0.1". Note: the
+ /// culture cannot be changed after the app is created.
///
///
/// Headers that will be added to request.
@@ -80,12 +90,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> AddWithHttpMessagesAsync(ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, ApplicationCreateObject applicationCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (applicationCreateObject == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "applicationCreateObject");
@@ -101,6 +107,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("applicationCreateObject", applicationCreateObject);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Add", tracingParameters);
@@ -108,7 +116,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
@@ -216,8 +225,18 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Lists all of the user applications.
+ /// Lists all of the user's applications.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The number of entries to skip. Default value is 0.
///
@@ -236,21 +255,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWithHttpMessagesAsync(int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (skip < 0)
{
throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0);
@@ -270,6 +279,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("skip", skip);
tracingParameters.Add("take", take);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -278,7 +289,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
List _queryParameters = new List();
if (skip != null)
{
@@ -393,15 +405,26 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Imports an application to LUIS, the application's structure should be
- /// included in the request body.
+ /// Imports an application to LUIS, the application's structure is included in
+ /// the request body.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// A LUIS application structure.
///
///
/// The application name to create. If not specified, the application name will
- /// be read from the imported object.
+ /// be read from the imported object. If the application name already exists,
+ /// an error is returned.
///
///
/// Headers that will be added to request.
@@ -424,12 +447,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> ImportWithHttpMessagesAsync(LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ImportWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, LuisApp luisApp, string appName = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (luisApp == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "luisApp");
@@ -441,6 +460,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appName", appName);
tracingParameters.Add("luisApp", luisApp);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -449,7 +470,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/import";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
List _queryParameters = new List();
if (appName != null)
{
@@ -568,6 +590,16 @@ public Apps(LUISAuthoringClient client)
///
/// Gets the endpoint URLs for the prebuilt Cortana applications.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// Headers that will be added to request.
///
@@ -580,21 +612,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task> ListCortanaEndpointsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> ListCortanaEndpointsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -602,13 +624,16 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListCortanaEndpoints", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/assistants";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
@@ -712,6 +737,16 @@ public Apps(LUISAuthoringClient client)
///
/// Gets the available application domains.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// Headers that will be added to request.
///
@@ -724,21 +759,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListDomainsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -746,13 +771,16 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListDomains", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/domains";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
@@ -856,6 +884,16 @@ public Apps(LUISAuthoringClient client)
///
/// Gets the application available usage scenarios.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// Headers that will be added to request.
///
@@ -868,21 +906,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListUsageScenariosWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListUsageScenariosWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -890,13 +918,16 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListUsageScenarios", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/usagescenarios";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
@@ -998,8 +1029,20 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Gets the supported application cultures.
+ /// Gets a list of supported cultures. Cultures are equivalent to the written
+ /// language and locale. For example,"en-us" represents the U.S. variation of
+ /// English.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// Headers that will be added to request.
///
@@ -1012,21 +1055,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListSupportedCulturesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListSupportedCulturesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1034,13 +1067,16 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListSupportedCultures", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/cultures";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
@@ -1142,8 +1178,18 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Gets the query logs of the past month for the application.
+ /// Gets the logs of the past month's endpoint queries for the application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -1159,21 +1205,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task> DownloadQueryLogsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> DownloadQueryLogsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1181,6 +1217,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "DownloadQueryLogs", tracingParameters);
@@ -1188,7 +1226,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/querylogs";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -1273,6 +1312,16 @@ public Apps(LUISAuthoringClient client)
///
/// Gets the application info.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -1288,21 +1337,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1310,6 +1349,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
@@ -1317,7 +1358,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -1422,6 +1464,16 @@ public Apps(LUISAuthoringClient client)
///
/// Updates the name or description of the application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -1449,12 +1501,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (applicationUpdateObject == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "applicationUpdateObject");
@@ -1466,6 +1514,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("applicationUpdateObject", applicationUpdateObject);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -1474,7 +1524,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -1585,6 +1636,16 @@ public Apps(LUISAuthoringClient client)
///
/// Deletes an application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -1603,21 +1664,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, bool? force = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, bool? force = false, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1625,6 +1676,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("force", force);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -1633,7 +1686,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
List _queryParameters = new List();
if (force != null)
@@ -1747,6 +1801,16 @@ public Apps(LUISAuthoringClient client)
///
/// Publishes a specific version of the application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -1775,12 +1839,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> PublishWithHttpMessagesAsync(System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> PublishWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationPublishObject applicationPublishObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (applicationPublishObject == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "applicationPublishObject");
@@ -1792,6 +1852,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("applicationPublishObject", applicationPublishObject);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -1800,7 +1862,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publish";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -1927,8 +1990,18 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Get the application settings.
+ /// Get the application settings including 'UseAllTrainingData'.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -1944,21 +2017,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task> GetSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1966,6 +2029,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "GetSettings", tracingParameters);
@@ -1973,7 +2038,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/settings";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -2076,8 +2142,18 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Updates the application settings.
+ /// Updates the application settings including 'UseAllTrainingData'.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -2105,12 +2181,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateSettingsWithHttpMessagesAsync(System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdateSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (applicationSettingUpdateObject == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "applicationSettingUpdateObject");
@@ -2122,6 +2194,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("applicationSettingUpdateObject", applicationSettingUpdateObject);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -2130,7 +2204,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/settings";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -2239,8 +2314,18 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Get the application publish settings.
+ /// Get the application publish settings including 'UseAllTrainingData'.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -2256,21 +2341,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task> GetPublishSettingsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetPublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2278,6 +2353,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "GetPublishSettings", tracingParameters);
@@ -2285,7 +2362,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publishsettings";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -2388,8 +2466,18 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Updates the application publish settings.
+ /// Updates the application publish settings including 'UseAllTrainingData'.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -2417,12 +2505,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdatePublishSettingsWithHttpMessagesAsync(System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> UpdatePublishSettingsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (publishSettingUpdateObject == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "publishSettingUpdateObject");
@@ -2434,6 +2518,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("publishSettingUpdateObject", publishSettingUpdateObject);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -2442,7 +2528,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/publishsettings";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -2553,6 +2640,16 @@ public Apps(LUISAuthoringClient client)
///
/// Returns the available endpoint deployment regions and URLs.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -2568,21 +2665,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListEndpointsWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListEndpointsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2590,6 +2677,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListEndpoints", tracingParameters);
@@ -2597,7 +2686,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/endpoints";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -2702,6 +2792,16 @@ public Apps(LUISAuthoringClient client)
///
/// Gets all the available custom prebuilt domains for all cultures.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// Headers that will be added to request.
///
@@ -2714,21 +2814,11 @@ public Apps(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -2736,13 +2826,16 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListAvailableCustomPrebuiltDomains", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
@@ -2844,8 +2937,19 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Adds a prebuilt domain along with its models as a new application.
+ /// Adds a prebuilt domain along with its intent and entity models as a new
+ /// application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// A prebuilt domain create object containing the name and culture of the
/// domain.
@@ -2871,12 +2975,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> AddCustomPrebuiltDomainWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, PrebuiltDomainCreateObject prebuiltDomainCreateObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (prebuiltDomainCreateObject == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "prebuiltDomainCreateObject");
@@ -2888,6 +2988,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("prebuiltDomainCreateObject", prebuiltDomainCreateObject);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "AddCustomPrebuiltDomain", tracingParameters);
@@ -2895,7 +2997,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
@@ -3003,8 +3106,18 @@ public Apps(LUISAuthoringClient client)
}
///
- /// Gets all the available custom prebuilt domains for a specific culture.
+ /// Gets all the available prebuilt domains for a specific culture.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// Culture.
///
@@ -3029,12 +3142,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, string culture, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (culture == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "culture");
@@ -3046,6 +3155,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("culture", culture);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "ListAvailableCustomPrebuiltDomainsForCulture", tracingParameters);
@@ -3053,7 +3164,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/customprebuiltdomains/{culture}";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{culture}", System.Uri.EscapeDataString(culture));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -3160,8 +3272,19 @@ public Apps(LUISAuthoringClient client)
/// format
///
///
- /// Packages published LUIS application as GZip.
+ /// Packages a published LUIS application as a GZip file to be used in the LUIS
+ /// container.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -3189,11 +3312,11 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(System.Guid appId, System.Guid slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> PackagePublishedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
+ if (slotName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
+ throw new ValidationException(ValidationRules.CannotBeNull, "slotName");
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -3202,6 +3325,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("slotName", slotName);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -3210,9 +3335,10 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "package/{appId}/slot/{slotName}/gzip";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
- _url = _url.Replace("{slotName}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(slotName, Client.SerializationSettings).Trim('"')));
+ _url = _url.Replace("{slotName}", System.Uri.EscapeDataString(slotName));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
@@ -3305,8 +3431,19 @@ public Apps(LUISAuthoringClient client)
/// format
///
///
- /// Packages trained LUIS application as GZip.
+ /// Packages trained LUIS application as GZip file to be used in the LUIS
+ /// container.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -3334,12 +3471,8 @@ public Apps(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> PackageTrainedApplicationAsGzipWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (versionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "versionId");
@@ -3351,6 +3484,8 @@ public Apps(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("versionId", versionId);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -3359,7 +3494,8 @@ public Apps(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "package/{appId}/versions/{versionId}/gzip";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId));
// Create HTTP transport objects
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs
index 56dfc98f62ab7..915b7011a491b 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AppsExtensions.cs
@@ -28,29 +28,49 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
- /// A model containing Name, Description (optional), Culture, Usage Scenario
- /// (optional), Domain (optional) and initial version ID (optional) of the
- /// application. Default value for the version ID is 0.1. Note: the culture
- /// cannot be changed after the app is created.
+ /// An application containing Name, Description (optional), Culture, Usage
+ /// Scenario (optional), Domain (optional) and initial version ID (optional) of
+ /// the application. Default value for the version ID is "0.1". Note: the
+ /// culture cannot be changed after the app is created.
///
///
/// The cancellation token.
///
- public static async Task AddAsync(this IApps operations, ApplicationCreateObject applicationCreateObject, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task AddAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, ApplicationCreateObject applicationCreateObject, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.AddWithHttpMessagesAsync(applicationCreateObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.AddWithHttpMessagesAsync(azureRegion, azureCloud, applicationCreateObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Lists all of the user applications.
+ /// Lists all of the user's applications.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The number of entries to skip. Default value is 0.
///
@@ -60,34 +80,45 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task> ListAsync(this IApps operations, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListWithHttpMessagesAsync(skip, take, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, skip, take, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Imports an application to LUIS, the application's structure should be
- /// included in the request body.
+ /// Imports an application to LUIS, the application's structure is included in
+ /// the request body.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// A LUIS application structure.
///
///
/// The application name to create. If not specified, the application name will
- /// be read from the imported object.
+ /// be read from the imported object. If the application name already exists,
+ /// an error is returned.
///
///
/// The cancellation token.
///
- public static async Task ImportAsync(this IApps operations, LuisApp luisApp, string appName = default(string), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task ImportAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, LuisApp luisApp, string appName = default(string), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ImportWithHttpMessagesAsync(luisApp, appName, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ImportWithHttpMessagesAsync(azureRegion, azureCloud, luisApp, appName, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -99,12 +130,22 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The cancellation token.
///
- public static async Task ListCortanaEndpointsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task ListCortanaEndpointsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListCortanaEndpointsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListCortanaEndpointsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -116,12 +157,22 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The cancellation token.
///
- public static async Task> ListDomainsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListDomainsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListDomainsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListDomainsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -133,49 +184,81 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The cancellation token.
///
- public static async Task> ListUsageScenariosAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListUsageScenariosAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListUsageScenariosWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListUsageScenariosWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Gets the supported application cultures.
+ /// Gets a list of supported cultures. Cultures are equivalent to the written
+ /// language and locale. For example,"en-us" represents the U.S. variation of
+ /// English.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The cancellation token.
///
- public static async Task> ListSupportedCulturesAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListSupportedCulturesAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListSupportedCulturesWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListSupportedCulturesWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Gets the query logs of the past month for the application.
+ /// Gets the logs of the past month's endpoint queries for the application.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
/// The cancellation token.
///
- public static async Task DownloadQueryLogsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DownloadQueryLogsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
{
- var _result = await operations.DownloadQueryLogsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false);
+ var _result = await operations.DownloadQueryLogsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false);
_result.Request.Dispose();
return _result.Body;
}
@@ -186,15 +269,25 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
/// The cancellation token.
///
- public static async Task GetAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -206,6 +299,16 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -215,9 +318,9 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task UpdateAsync(this IApps operations, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationUpdateObject applicationUpdateObject, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, applicationUpdateObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationUpdateObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -229,6 +332,16 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -238,9 +351,9 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IApps operations, System.Guid appId, bool? force = false, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, bool? force = false, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, force, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, force, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -252,6 +365,16 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -262,40 +385,60 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task PublishAsync(this IApps operations, System.Guid appId, ApplicationPublishObject applicationPublishObject, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PublishAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationPublishObject applicationPublishObject, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.PublishWithHttpMessagesAsync(appId, applicationPublishObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PublishWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationPublishObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Get the application settings.
+ /// Get the application settings including 'UseAllTrainingData'.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
/// The cancellation token.
///
- public static async Task GetSettingsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetSettingsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Updates the application settings.
+ /// Updates the application settings including 'UseAllTrainingData'.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -305,40 +448,60 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task UpdateSettingsAsync(this IApps operations, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdateSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, ApplicationSettingUpdateObject applicationSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdateSettingsWithHttpMessagesAsync(appId, applicationSettingUpdateObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdateSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, applicationSettingUpdateObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Get the application publish settings.
+ /// Get the application publish settings including 'UseAllTrainingData'.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
/// The cancellation token.
///
- public static async Task GetPublishSettingsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetPublishSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetPublishSettingsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetPublishSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Updates the application publish settings.
+ /// Updates the application publish settings including 'UseAllTrainingData'.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -348,9 +511,9 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task UpdatePublishSettingsAsync(this IApps operations, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task UpdatePublishSettingsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, PublishSettingUpdateObject publishSettingUpdateObject, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.UpdatePublishSettingsWithHttpMessagesAsync(appId, publishSettingUpdateObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.UpdatePublishSettingsWithHttpMessagesAsync(azureRegion, azureCloud, appId, publishSettingUpdateObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -362,15 +525,25 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
/// The cancellation token.
///
- public static async Task> ListEndpointsAsync(this IApps operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListEndpointsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListEndpointsWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListEndpointsWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -382,23 +555,44 @@ public static partial class AppsExtensions
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The cancellation token.
///
- public static async Task> ListAvailableCustomPrebuiltDomainsAsync(this IApps operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAvailableCustomPrebuiltDomainsAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListAvailableCustomPrebuiltDomainsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Adds a prebuilt domain along with its models as a new application.
+ /// Adds a prebuilt domain along with its intent and entity models as a new
+ /// application.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// A prebuilt domain create object containing the name and culture of the
/// domain.
@@ -406,29 +600,39 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task AddCustomPrebuiltDomainAsync(this IApps operations, PrebuiltDomainCreateObject prebuiltDomainCreateObject, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task AddCustomPrebuiltDomainAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, PrebuiltDomainCreateObject prebuiltDomainCreateObject, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.AddCustomPrebuiltDomainWithHttpMessagesAsync(azureRegion, azureCloud, prebuiltDomainCreateObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Gets all the available custom prebuilt domains for a specific culture.
+ /// Gets all the available prebuilt domains for a specific culture.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// Culture.
///
///
/// The cancellation token.
///
- public static async Task> ListAvailableCustomPrebuiltDomainsForCultureAsync(this IApps operations, string culture, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAvailableCustomPrebuiltDomainsForCultureAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, string culture, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(culture, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListAvailableCustomPrebuiltDomainsForCultureWithHttpMessagesAsync(azureRegion, azureCloud, culture, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -439,11 +643,22 @@ public static partial class AppsExtensions
/// format
///
///
- /// Packages published LUIS application as GZip.
+ /// Packages a published LUIS application as a GZip file to be used in the LUIS
+ /// container.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -453,9 +668,9 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task PackagePublishedApplicationAsGzipAsync(this IApps operations, System.Guid appId, System.Guid slotName, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PackagePublishedApplicationAsGzipAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string slotName, CancellationToken cancellationToken = default(CancellationToken))
{
- var _result = await operations.PackagePublishedApplicationAsGzipWithHttpMessagesAsync(appId, slotName, null, cancellationToken).ConfigureAwait(false);
+ var _result = await operations.PackagePublishedApplicationAsGzipWithHttpMessagesAsync(azureRegion, azureCloud, appId, slotName, null, cancellationToken).ConfigureAwait(false);
_result.Request.Dispose();
return _result.Body;
}
@@ -465,11 +680,22 @@ public static partial class AppsExtensions
/// format
///
///
- /// Packages trained LUIS application as GZip.
+ /// Packages trained LUIS application as GZip file to be used in the LUIS
+ /// container.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -479,9 +705,9 @@ public static partial class AppsExtensions
///
/// The cancellation token.
///
- public static async Task PackageTrainedApplicationAsGzipAsync(this IApps operations, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PackageTrainedApplicationAsGzipAsync(this IApps operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, CancellationToken cancellationToken = default(CancellationToken))
{
- var _result = await operations.PackageTrainedApplicationAsGzipWithHttpMessagesAsync(appId, versionId, null, cancellationToken).ConfigureAwait(false);
+ var _result = await operations.PackageTrainedApplicationAsGzipWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, null, cancellationToken).ConfigureAwait(false);
_result.Request.Dispose();
return _result.Body;
}
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs
index 304bbb57ac2ae..2e55d0e557e3f 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccounts.cs
@@ -51,16 +51,26 @@ public AzureAccounts(LUISAuthoringClient client)
public LUISAuthoringClient Client { get; private set; }
///
- /// apps - Assign a LUIS azure account to an application
+ /// apps - Assign a LUIS Azure account to an application
///
///
- /// Assigns an azure account to the application.
+ /// Assigns an Azure account to the application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
- /// The azure account information object.
+ /// The Azure account information object.
///
///
/// Headers that will be added to request.
@@ -74,21 +84,11 @@ public AzureAccounts(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task> AssignToAppWithHttpMessagesAsync(System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> AssignToAppWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (azureAccountInfoObject != null)
{
azureAccountInfoObject.Validate();
@@ -100,6 +100,8 @@ public AzureAccounts(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("azureAccountInfoObject", azureAccountInfoObject);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -108,7 +110,8 @@ public AzureAccounts(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -217,12 +220,22 @@ public AzureAccounts(LUISAuthoringClient client)
}
///
- /// apps - Get LUIS azure accounts assigned to the application
+ /// apps - Get LUIS Azure accounts assigned to the application
///
///
- /// Gets the LUIS azure accounts assigned to the application for the user using
+ /// Gets the LUIS Azure accounts assigned to the application for the user using
/// his ARM token.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -238,21 +251,11 @@ public AzureAccounts(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task>> GetAssignedWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> GetAssignedWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -260,6 +263,8 @@ public AzureAccounts(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "GetAssigned", tracingParameters);
@@ -267,7 +272,8 @@ public AzureAccounts(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -370,16 +376,26 @@ public AzureAccounts(LUISAuthoringClient client)
}
///
- /// apps - Removes an assigned LUIS azure account from an application
+ /// apps - Removes an assigned LUIS Azure account from an application
///
///
- /// Removes assigned azure account from the application.
+ /// Removes assigned Azure account from the application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
- /// The azure account information object.
+ /// The Azure account information object.
///
///
/// Headers that will be added to request.
@@ -393,21 +409,11 @@ public AzureAccounts(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task> RemoveFromAppWithHttpMessagesAsync(System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> RemoveFromAppWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (azureAccountInfoObject != null)
{
azureAccountInfoObject.Validate();
@@ -419,6 +425,8 @@ public AzureAccounts(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("azureAccountInfoObject", azureAccountInfoObject);
tracingParameters.Add("cancellationToken", cancellationToken);
@@ -427,7 +435,8 @@ public AzureAccounts(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/azureaccounts";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
@@ -536,11 +545,21 @@ public AzureAccounts(LUISAuthoringClient client)
}
///
- /// user - Get LUIS azure accounts
+ /// user - Get LUIS Azure accounts
///
///
- /// Gets the LUIS azure accounts for the user using his ARM token.
+ /// Gets the LUIS Azure accounts for the user using his ARM token.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// Headers that will be added to request.
///
@@ -553,21 +572,11 @@ public AzureAccounts(LUISAuthoringClient client)
///
/// Thrown when unable to deserialize the response
///
- ///
- /// Thrown when a required parameter is null
- ///
- ///
- /// Thrown when a required parameter is null
- ///
///
/// A response object containing the response body and response headers.
///
- public async Task>> GetUserLUISAccountsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListUserLUISAccountsWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -575,13 +584,16 @@ public AzureAccounts(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "GetUserLUISAccounts", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListUserLUISAccounts", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "azureaccounts";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs
index df0a34a2e1dea..f73fec068e66f 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/AzureAccountsExtensions.cs
@@ -22,96 +22,136 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
public static partial class AzureAccountsExtensions
{
///
- /// apps - Assign a LUIS azure account to an application
+ /// apps - Assign a LUIS Azure account to an application
///
///
- /// Assigns an azure account to the application.
+ /// Assigns an Azure account to the application.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
- /// The azure account information object.
+ /// The Azure account information object.
///
///
/// The cancellation token.
///
- public static async Task AssignToAppAsync(this IAzureAccounts operations, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task AssignToAppAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.AssignToAppWithHttpMessagesAsync(appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.AssignToAppWithHttpMessagesAsync(azureRegion, azureCloud, appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// apps - Get LUIS azure accounts assigned to the application
+ /// apps - Get LUIS Azure accounts assigned to the application
///
///
- /// Gets the LUIS azure accounts assigned to the application for the user using
+ /// Gets the LUIS Azure accounts assigned to the application for the user using
/// his ARM token.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
/// The cancellation token.
///
- public static async Task> GetAssignedAsync(this IAzureAccounts operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> GetAssignedAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetAssignedWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetAssignedWithHttpMessagesAsync(azureRegion, azureCloud, appId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// apps - Removes an assigned LUIS azure account from an application
+ /// apps - Removes an assigned LUIS Azure account from an application
///
///
- /// Removes assigned azure account from the application.
+ /// Removes assigned Azure account from the application.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
///
- /// The azure account information object.
+ /// The Azure account information object.
///
///
/// The cancellation token.
///
- public static async Task RemoveFromAppAsync(this IAzureAccounts operations, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task RemoveFromAppAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, AzureAccountInfoObject azureAccountInfoObject = default(AzureAccountInfoObject), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.RemoveFromAppWithHttpMessagesAsync(appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.RemoveFromAppWithHttpMessagesAsync(azureRegion, azureCloud, appId, azureAccountInfoObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// user - Get LUIS azure accounts
+ /// user - Get LUIS Azure accounts
///
///
- /// Gets the LUIS azure accounts for the user using his ARM token.
+ /// Gets the LUIS Azure accounts for the user using his ARM token.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The cancellation token.
///
- public static async Task> GetUserLUISAccountsAsync(this IAzureAccounts operations, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListUserLUISAccountsAsync(this IAzureAccounts operations, AzureRegions azureRegion, AzureClouds azureCloud, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetUserLUISAccountsWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListUserLUISAccountsWithHttpMessagesAsync(azureRegion, azureCloud, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs
index bd8987bbc6be5..33e64fab30213 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Examples.cs
@@ -51,8 +51,18 @@ public Examples(LUISAuthoringClient client)
public LUISAuthoringClient Client { get; private set; }
///
- /// Adds a labeled example to the application.
+ /// Adds a labeled example utterance in a version of the application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -60,7 +70,7 @@ public Examples(LUISAuthoringClient client)
/// The version ID.
///
///
- /// An example label with the expected intent and entities.
+ /// A labeled example utterance with the expected intent and entities.
///
///
/// Headers that will be added to request.
@@ -83,12 +93,8 @@ public Examples(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> AddWithHttpMessagesAsync(System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> AddWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (versionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "versionId");
@@ -104,6 +110,8 @@ public Examples(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("versionId", versionId);
tracingParameters.Add("exampleLabelObject", exampleLabelObject);
@@ -113,7 +121,8 @@ public Examples(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/example";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId));
// Create HTTP transport objects
@@ -223,8 +232,18 @@ public Examples(LUISAuthoringClient client)
}
///
- /// Adds a batch of labeled examples to the application.
+ /// Adds a batch of labeled example utterances to a version of the application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -232,7 +251,7 @@ public Examples(LUISAuthoringClient client)
/// The version ID.
///
///
- /// Array of examples.
+ /// Array of example utterances.
///
///
/// Headers that will be added to request.
@@ -255,12 +274,8 @@ public Examples(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> BatchWithHttpMessagesAsync(System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> BatchWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList exampleLabelObjectArray, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (versionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "versionId");
@@ -276,6 +291,8 @@ public Examples(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("versionId", versionId);
tracingParameters.Add("exampleLabelObjectArray", exampleLabelObjectArray);
@@ -285,7 +302,8 @@ public Examples(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId));
// Create HTTP transport objects
@@ -413,8 +431,19 @@ public Examples(LUISAuthoringClient client)
}
///
- /// Returns examples to be reviewed.
+ /// Returns example utterances to be reviewed from a version of the
+ /// application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -448,12 +477,8 @@ public Examples(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWithHttpMessagesAsync(System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (versionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "versionId");
@@ -477,6 +502,8 @@ public Examples(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("versionId", versionId);
tracingParameters.Add("skip", skip);
@@ -487,7 +514,8 @@ public Examples(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId));
List _queryParameters = new List();
@@ -604,8 +632,19 @@ public Examples(LUISAuthoringClient client)
}
///
- /// Deletes the labeled example with the specified ID.
+ /// Deletes the labeled example utterances with the specified ID from a version
+ /// of the application.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -636,12 +675,8 @@ public Examples(LUISAuthoringClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> DeleteWithHttpMessagesAsync(System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> DeleteWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int exampleId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.Endpoint == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.Endpoint");
- }
if (versionId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "versionId");
@@ -653,6 +688,8 @@ public Examples(LUISAuthoringClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("azureRegion", azureRegion);
+ tracingParameters.Add("azureCloud", azureCloud);
tracingParameters.Add("appId", appId);
tracingParameters.Add("versionId", versionId);
tracingParameters.Add("exampleId", exampleId);
@@ -662,7 +699,8 @@ public Examples(LUISAuthoringClient client)
// Construct URL
var _baseUrl = Client.BaseUri;
var _url = _baseUrl + (_baseUrl.EndsWith("/") ? "" : "/") + "apps/{appId}/versions/{versionId}/examples/{exampleId}";
- _url = _url.Replace("{Endpoint}", Client.Endpoint);
+ _url = _url.Replace("{AzureRegion}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureRegion, Client.SerializationSettings).Trim('"'));
+ _url = _url.Replace("{AzureCloud}", Rest.Serialization.SafeJsonConvert.SerializeObject(azureCloud, Client.SerializationSettings).Trim('"'));
_url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{versionId}", System.Uri.EscapeDataString(versionId));
_url = _url.Replace("{exampleId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(exampleId, Client.SerializationSettings).Trim('"')));
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs
index db740839ca1c1..850a1d1083649 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/ExamplesExtensions.cs
@@ -22,11 +22,21 @@ namespace Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
public static partial class ExamplesExtensions
{
///
- /// Adds a labeled example to the application.
+ /// Adds a labeled example utterance in a version of the application.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -34,25 +44,35 @@ public static partial class ExamplesExtensions
/// The version ID.
///
///
- /// An example label with the expected intent and entities.
+ /// A labeled example utterance with the expected intent and entities.
///
///
/// The cancellation token.
///
- public static async Task AddAsync(this IExamples operations, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task AddAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, ExampleLabelObject exampleLabelObject, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.AddWithHttpMessagesAsync(appId, versionId, exampleLabelObject, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.AddWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleLabelObject, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Adds a batch of labeled examples to the application.
+ /// Adds a batch of labeled example utterances to a version of the application.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -60,25 +80,36 @@ public static partial class ExamplesExtensions
/// The version ID.
///
///
- /// Array of examples.
+ /// Array of example utterances.
///
///
/// The cancellation token.
///
- public static async Task> BatchAsync(this IExamples operations, System.Guid appId, string versionId, IList exampleLabelObjectArray, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> BatchAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, IList exampleLabelObjectArray, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.BatchWithHttpMessagesAsync(appId, versionId, exampleLabelObjectArray, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.BatchWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleLabelObjectArray, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Returns examples to be reviewed.
+ /// Returns example utterances to be reviewed from a version of the
+ /// application.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -94,20 +125,31 @@ public static partial class ExamplesExtensions
///
/// The cancellation token.
///
- public static async Task> ListAsync(this IExamples operations, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task> ListAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ListWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, skip, take, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
}
///
- /// Deletes the labeled example with the specified ID.
+ /// Deletes the labeled example utterances with the specified ID from a version
+ /// of the application.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
///
/// The application ID.
///
@@ -120,9 +162,9 @@ public static partial class ExamplesExtensions
///
/// The cancellation token.
///
- public static async Task DeleteAsync(this IExamples operations, System.Guid appId, string versionId, int exampleId, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task DeleteAsync(this IExamples operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int exampleId, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.DeleteWithHttpMessagesAsync(appId, versionId, exampleId, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, versionId, exampleId, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs
index 3fb962522fba7..1081068760e3e 100644
--- a/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs
+++ b/src/SDKs/CognitiveServices/dataPlane/Language/LUIS/Authoring/Generated/Features.cs
@@ -51,8 +51,220 @@ public Features(LUISAuthoringClient client)
public LUISAuthoringClient Client { get; private set; }
///
- /// Creates a new phraselist feature.
+ /// [DEPRECATED NOTICE: This operation will soon be removed] Gets all the
+ /// pattern features.
///
+ ///
+ /// Supported Azure regions for Cognitive Services endpoints. Possible values
+ /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2',
+ /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope',
+ /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia'
+ ///
+ ///
+ /// Supported Azure Clouds for Cognitive Services endpoints. Possible values
+ /// include: 'com', 'us'
+ ///
+ ///
+ /// The application ID.
+ ///
+ ///
+ /// The version ID.
+ ///
+ ///
+ /// The number of entries to skip. Default value is 0.
+ ///
+ ///
+ /// The number of entries to return. Maximum page size is 500. Default is 100.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ public async Task>> ListApplicationVersionPatternFeaturesWithHttpMessagesAsync(AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, string versionId, int? skip = 0, int? take = 100, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (versionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "versionId");
+ }
+ if (skip < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "skip", 0);
+ }
+ if (take > 500)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "take", 500);
+ }
+ if (take < 0)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "take", 0);
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary