ScriptExecutionsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:script_executions> attribute.
- Inheritance
-
builtins.objectScriptExecutionsOperations
Constructor
ScriptExecutionsOperations(*args, **kwargs)
Methods
begin_create_or_update |
Create or update a script execution in a private cloud. Create or update a script execution in a private cloud. |
begin_delete |
Cancel a ScriptExecution in a private cloud. Cancel a ScriptExecution in a private cloud. |
get |
Get an script execution by name in a private cloud. Get an script execution by name in a private cloud. |
get_execution_logs |
Return the logs for a script execution resource. |
list |
List script executions in a private cloud. List script executions in a private cloud. |
begin_create_or_update
Create or update a script execution in a private cloud.
Create or update a script execution in a private cloud.
begin_create_or_update(resource_group_name: str, private_cloud_name: str, script_execution_name: str, script_execution: _models.ScriptExecution, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.ScriptExecution]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
private_cloud_name
Required
|
The name of the private cloud. Required. |
script_execution_name
Required
|
Name of the user-invoked script execution resource. Required. |
script_execution
Required
|
A script running in the private cloud. Is either a ScriptExecution type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
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
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either ScriptExecution or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Cancel a ScriptExecution in a private cloud.
Cancel a ScriptExecution in a private cloud.
begin_delete(resource_group_name: str, private_cloud_name: str, script_execution_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
private_cloud_name
Required
|
Name of the private cloud. Required. |
script_execution_name
Required
|
Name of the user-invoked script execution resource. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
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
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Get an script execution by name in a private cloud.
Get an script execution by name in a private cloud.
get(resource_group_name: str, private_cloud_name: str, script_execution_name: str, **kwargs: Any) -> ScriptExecution
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
private_cloud_name
Required
|
Name of the private cloud. Required. |
script_execution_name
Required
|
Name of the user-invoked script execution resource. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
ScriptExecution or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get_execution_logs
Return the logs for a script execution resource.
get_execution_logs(resource_group_name: str, private_cloud_name: str, script_execution_name: str, script_output_stream_type: List[str | _models.ScriptOutputStreamType] | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> _models.ScriptExecution
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
private_cloud_name
Required
|
Name of the private cloud. Required. |
script_execution_name
Required
|
Name of the user-invoked script execution resource. Required. |
script_output_stream_type
Required
|
Name of the desired output stream to return. If not provided, will return all. An empty array will return nothing. Is either a [Union[str, "_models.ScriptOutputStreamType"]] type or a IO type. Default value is None. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
ScriptExecution or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
List script executions in a private cloud.
List script executions in a private cloud.
list(resource_group_name: str, private_cloud_name: str, **kwargs: Any) -> Iterable[ScriptExecution]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
private_cloud_name
Required
|
Name of the private cloud. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either ScriptExecution or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.avs.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\avs\\models\\__init__.py'>
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for