code: public void resize(String resourceGroupName, String clusterName, Integer targetInstanceCount) {
          resizeWithServiceResponseAsync(resourceGroupName, clusterName, targetInstanceCount).toBlocking().last().body();
      }
docs: Resizes the specified HDInsight cluster to the specified size.
  
  @param resourceGroupName The name of the resource group.
  @param clusterName The name of the cluster.
  @param targetInstanceCount The target instance count for the operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent