示例#1
0
 /// <summary>
 /// Executes 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>
 /// <returns>
 /// The cluster long running operation response.
 /// </returns>
 public static Task <OperationResource> ExecuteScriptActionsAsync(this IClusterOperations operations, string resourceGroupName, string clusterName,
                                                                  IList <RuntimeScriptAction> scriptActions, bool persistOnSuccess)
 {
     return(operations.ExecuteScriptActionsAsync(resourceGroupName, clusterName, scriptActions, persistOnSuccess, CancellationToken.None));
 }