Пример #1
0
 /// <summary>
 /// Begin save operation creates a commit of the current configuration
 /// snapshot to the specified branch in the repository 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. Save Configuration parameters.
 /// </param>
 /// <returns>
 /// A standard service response for long running tenant operations.
 /// </returns>
 public static Task <TenantLongRunningOperationResponse> BeginSaveAsync(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, SaveConfigurationParameter parameters)
 {
     return(operations.BeginSaveAsync(resourceGroupName, serviceName, parameters, CancellationToken.None));
 }
Пример #2
0
 /// <summary>
 /// This operation creates a commit with the current configuration snapshot to
 /// the specified branch in the repository. 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-save-the-service-configuration-to-the-git-repository" />
 /// </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'>
 /// Save Configuration parameters.
 /// </param>
 public static OperationResultContract BeginSave(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, SaveConfigurationParameter parameters)
 {
     return(operations.BeginSaveAsync(resourceGroupName, serviceName, parameters).GetAwaiter().GetResult());
 }