/// <summary>
 /// Begins Executing script actions on specified HDInsight Running 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="scriptActions">Required. The list of script actions that needs to be executed.</param>
 /// <param name="persistOnSuccess">Required. Flag indicating if the script needs to be persisted.</param>
 /// <param name="cancellationToken">The cancellation token.</param>
 /// <returns>
 /// The cluster long running operation response.
 /// </returns>
 public static async Task BeginExecuteScriptActionsAsync(this IClustersOperations operations, string resourceGroupName, string clusterName,
                                                         IList <RuntimeScriptAction> scriptActions, bool persistOnSuccess, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginExecuteScriptActionsAsync(resourceGroupName, clusterName, scriptActions, persistOnSuccess, cancellationToken).ConfigureAwait(false))
     .Dispose();
 }
Beispiel #2
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();
 }
 /// <summary>
 /// Begins Executing script actions on specified HDInsight Running 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="scriptActions">Required. The list of script actions that needs to be executed.</param>
 /// <param name="persistOnSuccess">Required. Flag indicating if the script needs to be persisted.</param>
 public static void BeginExecuteScriptActions(this IClustersOperations operations, string resourceGroupName, string clusterName,
                                              IList <RuntimeScriptAction> scriptActions, bool persistOnSuccess)
 {
     operations.BeginExecuteScriptActionsAsync(resourceGroupName, clusterName, scriptActions, persistOnSuccess).GetAwaiter().GetResult();
 }