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.objectDeploymentScriptsOperations
Constructor
DeploymentScriptsOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- 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
- 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
- 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
- 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
- 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. 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
- 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
- deployment_script
- DeploymentScriptUpdateParameter
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'>
Feedback
Submit and view feedback for