/// <summary>
 /// Imports a new version into a LUIS application, the version's JSON should be
 /// included in in the request body.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope'
 /// </param>
 /// <param name='appId'>
 /// Format - guid. The application ID.
 /// </param>
 /// <param name='versionId'>
 /// The imported versionId.
 /// </param>
 /// <param name='jSONApp'>
 /// A JSON representing the LUIS application structure.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ImportVersionToApplicationAsync(this IVersions operations, AzureRegions azureRegion, string appId, string versionId = default(string), JSONApp jSONApp = default(JSONApp), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.ImportVersionToApplicationWithHttpMessagesAsync(azureRegion, appId, versionId, jSONApp, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Imports an application to LUIS, the application's JSON should be included
 /// in in the request body.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='azureRegion'>
 /// Supported Azure regions for Cognitive Services endpoints. Possible values
 /// include: 'westus', 'westeurope'
 /// </param>
 /// <param name='appName'>
 /// The imported application name.
 /// </param>
 /// <param name='jSONApp'>
 /// A JSON representing the LUIS application structure.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <string> ImportApplicationAsync(this IApps operations, AzureRegions azureRegion, string appName = default(string), JSONApp jSONApp = default(JSONApp), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ImportApplicationWithHttpMessagesAsync(azureRegion, appName, jSONApp, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }