/// <summary>
 /// Creates a new HDInsight cluster with the specified parameters.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The cluster create request.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Cluster> CreateAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, ClusterCreateParametersExtended parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the gateway settings for the specified cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GatewaySettings> GetGatewaySettingsAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetGatewaySettingsWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists all the HDInsight clusters under the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Cluster> > ListAsync(this IClustersOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Begins creating a new HDInsight cluster with the specified parameters.
 /// </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="parameters">Required. The cluster create request.</param>
 /// <param name="cancellationToken">The cancellation token.</param>
 /// <returns>
 /// The CreateCluster operation response.
 /// </returns>
 public static async Task <Cluster> BeginCreatingAsync(this IClustersOperations operations, string resourceGroupName, string clusterName,
                                                       ClusterCreateParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreatingAsync(resourceGroupName, clusterName, parameters, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Example #5
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Operations                       = new Operations(this);
     Workspaces                       = new WorkspacesOperations(this);
     DeletedWorkspaces                = new DeletedWorkspacesOperations(this);
     Tables                           = new TablesOperations(this);
     DataExports                      = new DataExportsOperations(this);
     DataSources                      = new DataSourcesOperations(this);
     IntelligencePacks                = new IntelligencePacksOperations(this);
     LinkedServices                   = new LinkedServicesOperations(this);
     LinkedStorageAccounts            = new LinkedStorageAccountsOperations(this);
     ManagementGroups                 = new ManagementGroupsOperations(this);
     OperationStatuses                = new OperationStatusesOperations(this);
     SharedKeys                       = new SharedKeysOperations(this);
     Usages                           = new UsagesOperations(this);
     StorageInsightConfigs            = new StorageInsightConfigsOperations(this);
     SavedSearches                    = new SavedSearchesOperations(this);
     AvailableServiceTiers            = new AvailableServiceTiersOperations(this);
     Gateways                         = new GatewaysOperations(this);
     Schema                           = new SchemaOperations(this);
     WorkspacePurge                   = new WorkspacePurgeOperations(this);
     Clusters                         = new ClustersOperations(this);
     BaseUri                          = new System.Uri("https://management.azure.com");
     AcceptLanguage                   = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
Example #6
0
        /// <summary>
        /// Update an HCI cluster.
        /// </summary>
        /// <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 cluster.
        /// </param>
        /// <param name='tags'>
        /// Resource tags.
        /// </param>
        public static Cluster Update(this IClustersOperations operations, string resourceGroupName, string clusterName, IDictionary <string, string> tags = default(IDictionary <string, string>))
        {
            var clusterPatch = new ClusterPatch();

            if (tags != null)
            {
                clusterPatch.Tags = tags;
            }

            return(operations.Update(resourceGroupName, clusterName, clusterPatch));
        }
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 protected override void Initialize()
 {
     Operations     = new Operations(this);
     Usages         = new UsagesOperations(this);
     Workspaces     = new WorkspacesOperations(this);
     Experiments    = new ExperimentsOperations(this);
     Jobs           = new JobsOperations(this);
     FileServers    = new FileServersOperations(this);
     Clusters       = new ClustersOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2018-05-01";
     AcceptLanguage = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     SerializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new TransformationJsonConverter());
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
Example #8
0
 /// <summary>
 /// Initializes client properties.
 /// </summary>
 private void Initialize()
 {
     Operations     = new Operations(this);
     Locations      = new LocationsOperations(this);
     PrivateClouds  = new PrivateCloudsOperations(this);
     Clusters       = new ClustersOperations(this);
     BaseUri        = new System.Uri("https://management.azure.com");
     ApiVersion     = "2019-08-09-preview";
     AcceptLanguage = "en-US";
     LongRunningOperationRetryTimeout = 30;
     GenerateClientRequestId          = true;
     SerializationSettings            = new JsonSerializerSettings
     {
         Formatting            = Newtonsoft.Json.Formatting.Indented,
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     DeserializationSettings = new JsonSerializerSettings
     {
         DateFormatHandling    = Newtonsoft.Json.DateFormatHandling.IsoDateFormat,
         DateTimeZoneHandling  = Newtonsoft.Json.DateTimeZoneHandling.Utc,
         NullValueHandling     = Newtonsoft.Json.NullValueHandling.Ignore,
         ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize,
         ContractResolver      = new ReadOnlyJsonContractResolver(),
         Converters            = new List <JsonConverter>
         {
             new Iso8601TimeSpanConverter()
         }
     };
     CustomInitialize();
     DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
 }
 /// <summary>
 /// Returns the SKUs available for the provided resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 public static IEnumerable <AzureResourceSku> ListSkusByResource(this IClustersOperations operations, string resourceGroupName, string clusterName)
 {
     return(operations.ListSkusByResourceAsync(resourceGroupName, clusterName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets a Kusto cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 public static Cluster Get(this IClustersOperations operations, string resourceGroupName, string clusterName)
 {
     return(operations.GetAsync(resourceGroupName, clusterName).GetAwaiter().GetResult());
 }
 /// <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());
 }
Example #12
0
 /// <summary>
 /// Rotate disk encryption key of the specified HDInsight cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The parameters for the disk encryption operation.
 /// </param>
 public static void BeginRotateDiskEncryptionKey(this IClustersOperations operations, string resourceGroupName, string clusterName, ClusterDiskEncryptionParameters parameters)
 {
     operations.BeginRotateDiskEncryptionKeyAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Lists eligible SKUs for Kusto resource provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IEnumerable <AzureSku> ListSkus(this IClustersOperations operations)
 {
     return(operations.ListSkusAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Starts a Kusto cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginStartAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginStartWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Example #15
0
 /// <summary>
 /// Resizes the specified HDInsight cluster to the specified size.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The parameters for the resize operation.
 /// </param>
 public static void BeginResize(this IClustersOperations operations, string resourceGroupName, string clusterName, ClusterResizeParameters parameters)
 {
     operations.BeginResizeAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult();
 }
Example #16
0
 /// <summary>
 /// Updates the Autoscale Configuration for HDInsight cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The parameters for the update autoscale configuration operation.
 /// </param>
 public static void BeginUpdateAutoScaleConfiguration(this IClustersOperations operations, string resourceGroupName, string clusterName, AutoscaleConfigurationUpdateParameter parameters)
 {
     operations.BeginUpdateAutoScaleConfigurationAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult();
 }
Example #17
0
 /// <summary>
 /// Lists the available Event Hubs Clusters within an ARM resource group
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <Cluster> ListByResourceGroupNext(this IClustersOperations operations, string nextPageLink)
 {
     return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Example #18
0
 /// <summary>
 /// List all Event Hubs Namespace IDs in an Event Hubs Dedicated Cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group within the azure subscription.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Event Hubs Cluster.
 /// </param>
 public static EHNamespaceIdListResult ListNamespaces(this IClustersOperations operations, string resourceGroupName, string clusterName)
 {
     return(operations.ListNamespacesAsync(resourceGroupName, clusterName).GetAwaiter().GetResult());
 }
Example #19
0
 /// <summary>
 /// List the quantity of available pre-provisioned Event Hubs Clusters, indexed
 /// by Azure region.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static AvailableClustersList ListAvailableClusters(this IClustersOperations operations)
 {
     return(operations.ListAvailableClustersAsync().GetAwaiter().GetResult());
 }
Example #20
0
 /// <summary>
 /// Executes script actions on the specified HDInsight cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The parameters for executing script actions.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginExecuteScriptActionsAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, ExecuteScriptActionParameters parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginExecuteScriptActionsWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Example #21
0
 /// <summary>
 /// Executes script actions on the specified HDInsight cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The parameters for executing script actions.
 /// </param>
 public static void BeginExecuteScriptActions(this IClustersOperations operations, string resourceGroupName, string clusterName, ExecuteScriptActionParameters parameters)
 {
     operations.BeginExecuteScriptActionsAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult();
 }
Example #22
0
 /// <summary>
 /// Configures the gateway settings on the specified cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The cluster configurations.
 /// </param>
 public static void BeginUpdateGatewaySettings(this IClustersOperations operations, string resourceGroupName, string clusterName, UpdateGatewaySettingsParameters parameters)
 {
     operations.BeginUpdateGatewaySettingsAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Returns the SKUs available for the provided resource.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <AzureResourceSku> > ListSkusByResourceAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListSkusByResourceWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Deletes a Kusto cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 public static void Delete(this IClustersOperations operations, string resourceGroupName, string clusterName)
 {
     operations.DeleteAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Starts a Kusto cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 public static void BeginStart(this IClustersOperations operations, string resourceGroupName, string clusterName)
 {
     operations.BeginStartAsync(resourceGroupName, clusterName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Lists all Kusto clusters within a resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 public static IEnumerable <Cluster> ListByResourceGroup(this IClustersOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Create or update a Kusto cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the Kusto cluster.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Kusto cluster.
 /// </param>
 /// <param name='parameters'>
 /// The Kusto cluster parameters supplied to the CreateOrUpdate operation.
 /// </param>
 public static Cluster CreateOrUpdate(this IClustersOperations operations, string resourceGroupName, string clusterName, Cluster parameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all Kusto clusters within a subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IEnumerable <Cluster> List(this IClustersOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Example #29
0
 /// <summary>
 /// Modifies mutable properties on the Event Hubs Cluster. This operation is
 /// idempotent.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group within the azure subscription.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the Event Hubs Cluster.
 /// </param>
 /// <param name='parameters'>
 /// The properties of the Event Hubs Cluster which should be updated.
 /// </param>
 public static Cluster BeginPatch(this IClustersOperations operations, string resourceGroupName, string clusterName, Cluster parameters)
 {
     return(operations.BeginPatchAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult());
 }
Example #30
0
 /// <summary>
 /// Updates the Autoscale Configuration for HDInsight cluster.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='clusterName'>
 /// The name of the cluster.
 /// </param>
 /// <param name='parameters'>
 /// The parameters for the update autoscale configuration operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginUpdateAutoScaleConfigurationAsync(this IClustersOperations operations, string resourceGroupName, string clusterName, AutoscaleConfigurationUpdateParameter parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginUpdateAutoScaleConfigurationWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }