Beispiel #1
0
 /// <summary>
 /// Updates a connected cluster.
 /// </summary>
 /// <remarks>
 /// API to update certain properties of the connected cluster resource
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kubernetes cluster on which get is called.
 /// </param>
 /// <param name='connectedClusterPatch'>
 /// Parameters supplied to update Connected Cluster.
 /// </param>
 public static ConnectedCluster Update(this IConnectedClusterOperations operations, string resourceGroupName, string clusterName, ConnectedClusterPatch connectedClusterPatch)
 {
     return(operations.UpdateAsync(resourceGroupName, clusterName, connectedClusterPatch).GetAwaiter().GetResult());
 }
Beispiel #2
0
 /// <summary>
 /// Updates a connected cluster.
 /// </summary>
 /// <remarks>
 /// API to update certain properties of the connected cluster resource
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kubernetes cluster on which get is called.
 /// </param>
 /// <param name='connectedClusterPatch'>
 /// Parameters supplied to update Connected Cluster.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ConnectedCluster> UpdateAsync(this IConnectedClusterOperations operations, string resourceGroupName, string clusterName, ConnectedClusterPatch connectedClusterPatch, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, clusterName, connectedClusterPatch, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }