DeploymentScriptsOperations Class

DeploymentScriptsOperations async operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
DeploymentScriptsOperations

Constructor

DeploymentScriptsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

Methods

begin_create

Creates a deployment script.

delete

Deletes a deployment script. When operation completes, status code 200 returned without content.

get

Gets a deployment script with a given name.

get_logs

Gets deployment script logs for a given deployment script name.

get_logs_default

Gets deployment script logs for a given deployment script name.

list_by_resource_group

Lists deployments scripts.

list_by_subscription

Lists all deployment scripts for a given subscription.

update

Updates deployment script tags with specified values.

begin_create

Creates a deployment script.

async begin_create(resource_group_name: str, script_name: str, deployment_script: azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.DeploymentScript, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.DeploymentScript]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

script_name
str
Required

Name of the deployment script.

deployment_script
DeploymentScript
Required

Deployment script supplied to the operation.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or AsyncPollingMethod

By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of AsyncLROPoller that returns either DeploymentScript or the result of cls(response)

Return type

Exceptions

delete

Deletes a deployment script. When operation completes, status code 200 returned without content.

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

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

script_name
str
Required

Name of the deployment script.

cls
callable

A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

Exceptions

get

Gets a deployment script with a given name.

async get(resource_group_name: str, script_name: str, **kwargs: Any) -> azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.DeploymentScript

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

script_name
str
Required

Name of the deployment script.

cls
callable

A custom type or function that will be passed the direct response

Returns

DeploymentScript, or the result of cls(response)

Return type

Exceptions

get_logs

Gets deployment script logs for a given deployment script name.

async get_logs(resource_group_name: str, script_name: str, **kwargs: Any) -> azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.ScriptLogsList

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

script_name
str
Required

Name of the deployment script.

cls
callable

A custom type or function that will be passed the direct response

Returns

ScriptLogsList, or the result of cls(response)

Return type

Exceptions

get_logs_default

Gets deployment script logs for a given deployment script name.

async get_logs_default(resource_group_name: str, script_name: str, tail: Optional[int] = None, **kwargs: Any) -> azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.ScriptLog

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

script_name
str
Required

Name of the deployment script.

tail
int
Required

The number of lines to show from the tail of the deployment script log. Valid value is a positive number up to 1000. If 'tail' is not provided, all available logs are shown up to container instance log capacity of 4mb. Default value is None.

cls
callable

A custom type or function that will be passed the direct response

Returns

ScriptLog, or the result of cls(response)

Return type

Exceptions

list_by_resource_group

Lists deployments scripts.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.DeploymentScriptListResult]

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

cls
callable

A custom type or function that will be passed the direct response

Returns

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

Return type

Exceptions

list_by_subscription

Lists all deployment scripts for a given subscription.

list_by_subscription(**kwargs: Any) -> AsyncIterable[azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.DeploymentScriptListResult]

Parameters

cls
callable

A custom type or function that will be passed the direct response

Returns

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

Return type

Exceptions

update

Updates deployment script tags with specified values.

async update(resource_group_name: str, script_name: str, deployment_script: Optional[azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.DeploymentScriptUpdateParameter] = None, **kwargs: Any) -> azure.mgmt.resource.deploymentscripts.v2020_10_01.models._models_py3.DeploymentScript

Parameters

resource_group_name
str
Required

The name of the resource group. The name is case insensitive.

script_name
str
Required

Name of the deployment script.

deployment_script
DeploymentScriptUpdateParameter
Required

Deployment script resource with the tags to be updated. Default value is None.

cls
callable

A custom type or function that will be passed the direct response

Returns

DeploymentScript, or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.resource.deploymentscripts.v2020_10_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\resource\\deploymentscripts\\v2020_10_01\\models\\__init__.py'>