/// <summary>
 /// Assigns a subscription key to the given application version.
 /// </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 version ID of the task.
 /// </param>
 /// <param name='keyValue'>
 /// The value of the endpoint key to assign to the application.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task AssignSubscriptionKeyToVersionAsync(this IVersions operations, AzureRegions azureRegion, string appId, string versionId, string keyValue = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.AssignSubscriptionKeyToVersionWithHttpMessagesAsync(azureRegion, appId, versionId, keyValue, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }