예제 #1
0
 /// <summary>
 /// Begin validate operation of configuration changes in the specified
 /// Git branch of an Api Management service.To determine whether the
 /// operation has finished processing the request, call
 /// GetLongRunningOperationStatus.
 /// </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. Validate Configuration parameters.
 /// </param>
 /// <returns>
 /// A standard service response for long running tenant operations.
 /// </returns>
 public static Task <TenantLongRunningOperationResponse> BeginValidateAsync(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, DeployConfigurationParameters parameters)
 {
     return(operations.BeginValidateAsync(resourceGroupName, serviceName, parameters, CancellationToken.None));
 }
예제 #2
0
 /// <summary>
 /// This operation validates the changes in the specified Git branch. This is a
 /// long running operation and could take several minutes to complete.
 /// </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'>
 /// Validate Configuration parameters.
 /// </param>
 public static OperationResultContract BeginValidate(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, DeployConfigurationParameters parameters)
 {
     return(operations.BeginValidateAsync(resourceGroupName, serviceName, parameters).GetAwaiter().GetResult());
 }