/// <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> /// <returns> /// The cluster long running operation response. /// </returns> public static Task <HDInsightOperationResponse> BeginExecuteScriptActionsAsync(this IClusterOperations operations, string resourceGroupName, string clusterName, IList <RuntimeScriptAction> scriptActions, bool persistOnSuccess) { return(operations.BeginExecuteScriptActionsAsync(resourceGroupName, clusterName, scriptActions, persistOnSuccess, CancellationToken.None)); }