/// <summary>
 /// Activates the specified application package.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IApplicationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the Batch account.
 /// </param>
 /// <param name='id'>
 /// Required. The id of the application.
 /// </param>
 /// <param name='version'>
 /// Required. The version of the application to activate.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters for the request.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static AzureOperationResponse ActivateApplicationPackage(this IApplicationOperations operations, string resourceGroupName, string accountName, string id, string version, ActivateApplicationPackageParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IApplicationOperations)s).ActivateApplicationPackageAsync(resourceGroupName, accountName, id, version, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Activates the specified application package.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IApplicationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the Batch account.
 /// </param>
 /// <param name='id'>
 /// Required. The id of the application.
 /// </param>
 /// <param name='version'>
 /// Required. The version of the application to activate.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters for the request.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<AzureOperationResponse> ActivateApplicationPackageAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, string id, string version, ActivateApplicationPackageParameters parameters)
 {
     return operations.ActivateApplicationPackageAsync(resourceGroupName, accountName, id, version, parameters, CancellationToken.None);
 }