DeploymentScriptsOperations Class

DeploymentScriptsOperations 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.

begin_create(resource_group_name, script_name, deployment_script, **kwargs)

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 PollingMethod

By default, your polling method will be ARMPolling. 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 LROPoller that returns either DeploymentScript or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

delete

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

delete(resource_group_name, script_name, **kwargs)

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

~azure.core.exceptions.HttpResponseError

get

Gets a deployment script with a given name.

get(resource_group_name, script_name, **kwargs)

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

~azure.core.exceptions.HttpResponseError

get_logs

Gets deployment script logs for a given deployment script name.

get_logs(resource_group_name, script_name, **kwargs)

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

~azure.core.exceptions.HttpResponseError

get_logs_default

Gets deployment script logs for a given deployment script name.

get_logs_default(resource_group_name, script_name, tail=None, **kwargs)

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
default value: None

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.

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

~azure.core.exceptions.HttpResponseError

list_by_resource_group

Lists deployments scripts.

list_by_resource_group(resource_group_name, **kwargs)

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

~azure.core.exceptions.HttpResponseError

list_by_subscription

Lists all deployment scripts for a given subscription.

list_by_subscription(**kwargs)

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

~azure.core.exceptions.HttpResponseError

update

Updates deployment script tags with specified values.

update(resource_group_name, script_name, deployment_script=None, **kwargs)

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
default value: None

Deployment script resource with the tags to be updated.

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

~azure.core.exceptions.HttpResponseError

Attributes

models

models = <module 'azure.mgmt.resource.deploymentscripts.v2019_10_01_preview.models' from 'c:\\hostedtoolcache\\windows\\python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\resource\\deploymentscripts\\v2019_10_01_preview\\models\\__init__.py'>