示例#1
0
 /// <summary>
 /// Commit configuration snapshot to an Api Management service.
 /// </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 configuration
 /// operations.
 /// </returns>
 public static Task <TenantConfigurationLongRunningOperationResponse> SaveAsync(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, SaveConfigurationParameter parameters)
 {
     return(operations.SaveAsync(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 Save(this ITenantConfigurationOperations operations, string resourceGroupName, string serviceName, SaveConfigurationParameter parameters)
 {
     return(operations.SaveAsync(resourceGroupName, serviceName, parameters).GetAwaiter().GetResult());
 }