/// <summary>
 /// Begin deploy operation of configuration from the specified Git
 /// branch to the configuration database in an Api Management
 /// service.To determine whether the operation has finished processing
 /// the request, call GetTenantConfigurationLongRunningOperationStatus.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.ITenantConfigurationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='parameters'>
 /// Required. Deploy Configuration parameters.
 /// </param>
 /// <returns>
 /// A standard service response for long running tenant operations.
 /// </returns>
 public static TenantLongRunningOperationResponse BeginDeploy(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, DeployConfigurationParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((ITenantConfigurationOperations)s).BeginDeployAsync(resourceGroupName, serviceName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Begin deploy operation of configuration from the specified Git
 /// branch to the configuration database in an Api Management
 /// service.To determine whether the operation has finished processing
 /// the request, call GetTenantConfigurationLongRunningOperationStatus.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiManagement.ITenantConfigurationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// Required. The name of the Api Management service.
 /// </param>
 /// <param name='parameters'>
 /// Required. Deploy Configuration parameters.
 /// </param>
 /// <returns>
 /// A standard service response for long running tenant operations.
 /// </returns>
 public static Task<TenantLongRunningOperationResponse> BeginDeployAsync(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, DeployConfigurationParameters parameters)
 {
     return operations.BeginDeployAsync(resourceGroupName, serviceName, parameters, CancellationToken.None);
 }