/// <summary>
 /// Begins resizing the specified HDInsight cluster.
 /// </summary>
 /// <param name="operations">Reference to the
 /// Microsoft.Azure.Management.HDInsight.IClusterOperations.</param>
 /// <param name="resourceGroupName">Required. The name of the resource group.</param>
 /// <param name="clusterName">Required. The name of the cluster.</param>
 /// <param name="targetInstanceCount">Required. The target instance count.</param>
 /// <param name="cancellationToken">The cancellation token.</param>
 /// <returns>
 /// The cluster long running operation response.
 /// </returns>
 public static async Task BeginResizingAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, int targetInstanceCount,
                                             CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginResizingAsync(resourceGroupName, clusterName, targetInstanceCount, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Begins resizing the specified HDInsight cluster.
 /// </summary>
 /// <param name="operations">Reference to the
 /// Microsoft.Azure.Management.HDInsight.IClusterOperations.</param>
 /// <param name="resourceGroupName">Required. The name of the resource group.</param>
 /// <param name="clusterName">Required. The name of the cluster.</param>
 /// <param name="targetInstanceCount">Required. The target instance count.</param>
 public static void BeginResizing(this IClustersOperations operations, string resourceGroupName, string clusterName, int targetInstanceCount)
 {
     operations.BeginResizingAsync(resourceGroupName, clusterName, targetInstanceCount).GetAwaiter().GetResult();
 }