/// <summary>
 /// Checks that the cluster name is valid and is not already in use.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Azure location.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <CheckNameResult> CheckNameAvailabilityAsync(this IClustersOperations operations, string location, ClusterCheckNameRequest clusterName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckNameAvailabilityWithHttpMessagesAsync(location, clusterName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Checks that the cluster name is valid and is not already in use.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='location'>
 /// Azure location.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 public static CheckNameResult CheckNameAvailability(this IClustersOperations operations, string location, ClusterCheckNameRequest clusterName)
 {
     return(operations.CheckNameAvailabilityAsync(location, clusterName).GetAwaiter().GetResult());
 }