@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api HDInsightManagementClient
@base https://management.azure.com
@version 2018-06-01-preview
@auth OAuth2
@common_fields {subscriptionId: any # The subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call., resourceGroupName: any # The name of the resource group., clusterName: any # The name of the cluster., api-version: any # The HDInsight client API Version.}
@endpoints 7
@toc subscriptions(7)

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions/{scriptName}
@desc Deletes a specified persisted script action of the cluster.
@required {scriptName: any # The name of the script.}
@returns(200) OK response definition.
@returns(204) No Content response definition.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions
@desc Executes script actions on the specified HDInsight cluster.
@required {parameters: any # The parameters for executing script actions.}
@returns(200) Accepted response definition.
@returns(202) OK response definition.
@errors {404: Bad Request definition.}

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptActions
@desc Lists all the persisted script actions for the specified cluster.
@returns(200) OK response definition.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}
@desc Gets the script execution detail for the given script execution ID.
@required {scriptExecutionId: any # The script execution Id}
@returns(200) OK response definition.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory
@desc Lists all scripts' execution history for the specified cluster.
@returns(200) OK response definition.

@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/scriptExecutionHistory/{scriptExecutionId}/promote
@desc Promotes the specified ad-hoc script execution to a persisted script.
@required {scriptExecutionId: any # The script execution Id}
@returns(200) OK response definition.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HDInsight/clusters/{clusterName}/executeScriptActions/azureasyncoperations/{operationId}
@desc Gets the async operation status of execution operation.
@required {operationId: any # The long running operation id.}
@returns(200) OK response definition.

@end
