/// <summary>
 /// Activates the specified application package.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='id'>
 /// The id of the application.
 /// </param>
 /// <param name='version'>
 /// The version of the application to activate.
 /// </param>
 /// <param name='parameters'>
 /// The parameters for the request.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task ActivateApplicationPackageAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, string id, string version, ActivateApplicationPackageParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.ActivateApplicationPackageWithHttpMessagesAsync(resourceGroupName, accountName, id, version, parameters, null, cancellationToken).ConfigureAwait(false);
 }