Пример #1
0
 /// <summary>
 /// The PATCH operation can be used to update only the tags for a cluster. Use
 /// PUT operation to update other properties.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group in which the cluster is located.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The parameters supplied to patch the cluster.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OperationalizationCluster> UpdateAsync(this IOperationalizationClustersOperations operations, string resourceGroupName, string clusterName, OperationalizationClusterUpdateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Пример #2
0
 /// <summary>
 /// The PATCH operation can be used to update only the tags for a cluster. Use
 /// PUT operation to update other properties.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group in which the cluster is located.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The parameters supplied to patch the cluster.
 /// </param>
 public static OperationalizationCluster Update(this IOperationalizationClustersOperations operations, string resourceGroupName, string clusterName, OperationalizationClusterUpdateParameters parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult());
 }