Esempio n. 1
0
 /// <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));
 }
Esempio n. 2
0
 /// <summary>
 /// This operation applies changes from the specified Git branch to the
 /// configuration database. This is a long running operation and could take
 /// several minutes to complete.
 /// <see href="https://azure.microsoft.com/en-us/documentation/articles/api-management-configuration-repository-git/#to-deploy-any-service-configuration-changes-to-the-api-management-service-instance" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the API Management service.
 /// </param>
 /// <param name='parameters'>
 /// Deploy Configuration parameters.
 /// </param>
 public static OperationResultContract BeginDeploy(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, DeployConfigurationParameters parameters)
 {
     return(operations.BeginDeployAsync(resourceGroupName, serviceName, parameters).GetAwaiter().GetResult());
 }