azure.mgmt.resource.deploymentscripts.v2020_10_01.operations package

class azure.mgmt.resource.deploymentscripts.v2020_10_01.operations.DeploymentScriptsOperations(client, config, serializer, deserializer)[source]

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.

Variables

models – Alias to model classes used in this operation group.

Parameters
  • client – Client for service requests.

  • config – Configuration of service client.

  • serializer – An object model serializer.

  • deserializer – An object model deserializer.

begin_create(resource_group_name: str, script_name: str, deployment_script: ‘models.DeploymentScript’, **kwargs: Any) → LROPoller[‘models.DeploymentScript’][source]

Creates a deployment script.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • script_name (str) – Name of the deployment script.

  • deployment_script (DeploymentScript) – Deployment script supplied to the operation.

Keyword Arguments
  • 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) – True for ARMPolling, False for no polling, or a polling object for 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

LROPoller[DeploymentScript]

Raises

HttpResponseError

delete(resource_group_name: str, script_name: str, **kwargs: Any)None[source]

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

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • script_name (str) – Name of the deployment script.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

None, or the result of cls(response)

Return type

None

Raises

~azure.core.exceptions.HttpResponseError

get(resource_group_name: str, script_name: str, **kwargs: Any) → ’models.DeploymentScript’[source]

Gets a deployment script with a given name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • script_name (str) – Name of the deployment script.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

DeploymentScript, or the result of cls(response)

Return type

DeploymentScript

Raises

~azure.core.exceptions.HttpResponseError

get_logs(resource_group_name: str, script_name: str, **kwargs: Any) → ’models.ScriptLogsList’[source]

Gets deployment script logs for a given deployment script name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • script_name (str) – Name of the deployment script.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ScriptLogsList, or the result of cls(response)

Return type

ScriptLogsList

Raises

~azure.core.exceptions.HttpResponseError

get_logs_default(resource_group_name: str, script_name: str, tail: Optional[int] = None, **kwargs: Any) → ’models.ScriptLog’[source]

Gets deployment script logs for a given deployment script name.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • script_name (str) – Name of the deployment script.

  • tail (int) – 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.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

ScriptLog, or the result of cls(response)

Return type

ScriptLog

Raises

~azure.core.exceptions.HttpResponseError

list_by_resource_group(resource_group_name: str, **kwargs: Any) → Iterable[‘models.DeploymentScriptListResult’][source]

Lists deployments scripts.

Parameters

resource_group_name (str) – The name of the resource group. The name is case insensitive.

Keyword Arguments

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

ItemPaged[DeploymentScriptListResult]

Raises

~azure.core.exceptions.HttpResponseError

list_by_subscription(**kwargs: Any) → Iterable[‘models.DeploymentScriptListResult’][source]

Lists all deployment scripts for a given subscription.

Keyword Arguments

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

ItemPaged[DeploymentScriptListResult]

Raises

~azure.core.exceptions.HttpResponseError

update(resource_group_name: str, script_name: str, deployment_script: Optional[‘models.DeploymentScriptUpdateParameter’] = None, **kwargs: Any) → ’models.DeploymentScript’[source]

Updates deployment script tags with specified values.

Parameters
  • resource_group_name (str) – The name of the resource group. The name is case insensitive.

  • script_name (str) – Name of the deployment script.

  • deployment_script (DeploymentScriptUpdateParameter) – Deployment script resource with the tags to be updated.

Keyword Arguments

cls (callable) – A custom type or function that will be passed the direct response

Returns

DeploymentScript, or the result of cls(response)

Return type

DeploymentScript

Raises

~azure.core.exceptions.HttpResponseError

models = <module 'azure.mgmt.resource.deploymentscripts.v2020_10_01.models' from 'c:\\repo\\azure-sdk-for-python\\sdk\\resources\\azure-mgmt-resource\\.tox\\sphinx\\lib\\site-packages\\azure\\mgmt\\resource\\deploymentscripts\\v2020_10_01\\models\\__init__.py'>