ScriptActionsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

HDInsightManagementClient's

<xref:script_actions> attribute.

Constructor

ScriptActionsOperations(*args, **kwargs)

Methods

delete

Deletes a specified persisted script action of the cluster.

get_execution_async_operation_status

Gets the async operation status of execution operation.

get_execution_detail

Gets the script execution detail for the given script execution ID.

list_by_cluster

Lists all the persisted script actions for the specified cluster.

delete

Deletes a specified persisted script action of the cluster.

delete(resource_group_name: str, cluster_name: str, script_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

cluster_name
Required
str

The name of the cluster. Required.

script_name
Required
str

The name of the script. Required.

Returns

Type Description

None or the result of cls(response)

Exceptions

Type Description

get_execution_async_operation_status

Gets the async operation status of execution operation.

get_execution_async_operation_status(resource_group_name: str, cluster_name: str, operation_id: str, **kwargs: Any) -> AsyncOperationResult

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

cluster_name
Required
str

The name of the cluster. Required.

operation_id
Required
str

The long running operation id. Required.

Returns

Type Description

AsyncOperationResult or the result of cls(response)

Exceptions

Type Description

get_execution_detail

Gets the script execution detail for the given script execution ID.

get_execution_detail(resource_group_name: str, cluster_name: str, script_execution_id: str, **kwargs: Any) -> RuntimeScriptActionDetail

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

cluster_name
Required
str

The name of the cluster. Required.

script_execution_id
Required
str

The script execution Id. Required.

Returns

Type Description

RuntimeScriptActionDetail or the result of cls(response)

Exceptions

Type Description

list_by_cluster

Lists all the persisted script actions for the specified cluster.

list_by_cluster(resource_group_name: str, cluster_name: str, **kwargs: Any) -> ItemPaged[RuntimeScriptActionDetail]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. Required.

cluster_name
Required
str

The name of the cluster. Required.

Returns

Type Description

An iterator like instance of either RuntimeScriptActionDetail or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.hdinsight.models' from 'C:\\ToolCache\\Python\\3.12.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv145\\Lib\\site-packages\\azure\\mgmt\\hdinsight\\models\\__init__.py'>