ScriptExecutionsOperations Class

ScriptExecutionsOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Inheritance
builtins.object
ScriptExecutionsOperations

Constructor

ScriptExecutionsOperations(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

api_version

The API version to use for this operation. Constant value: "2021-06-01".

Methods

create_or_update

Create or update a script execution resource in a private cloud.

delete

Cancel a ScriptExecution in a private cloud.

get

Get an script execution resource by name in a private cloud.

get_execution_logs

Return the logs for a script execution resource.

list

Get an script execution resource by name in a private cloud.

create_or_update

Create or update a script execution resource in a private cloud.

create_or_update(resource_group_name, private_cloud_name, script_execution_name, script_execution, custom_headers=None, raw=False, polling=True, **operation_config)

Parameters

resource_group_name
str
Required

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

private_cloud_name
str
Required

The name of the private cloud.

script_execution_name
str
Required

Name of the user-invoked script execution resource

script_execution
ScriptExecution
Required

A script running in the private cloud

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

The poller return type is ClientRawResponse, the direct response alongside the deserialized response

polling
default value: True

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns ScriptExecution or ClientRawResponse if raw==True

Return type

Exceptions

delete

Cancel a ScriptExecution in a private cloud.

delete(resource_group_name, private_cloud_name, script_execution_name, custom_headers=None, raw=False, polling=True, **operation_config)

Parameters

resource_group_name
str
Required

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

private_cloud_name
str
Required

Name of the private cloud

script_execution_name
str
Required

Name of the user-invoked script execution resource

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

The poller return type is ClientRawResponse, the direct response alongside the deserialized response

polling
default value: True

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

Returns

An instance of LROPoller that returns None or ClientRawResponse if raw==True

Return type

Exceptions

get

Get an script execution resource by name in a private cloud.

get(resource_group_name, private_cloud_name, script_execution_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

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

private_cloud_name
str
Required

Name of the private cloud

script_execution_name
str
Required

Name of the user-invoked script execution resource

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

ScriptExecution or ClientRawResponse if raw=true

Return type

Exceptions

get_execution_logs

Return the logs for a script execution resource.

get_execution_logs(resource_group_name, private_cloud_name, script_execution_name, script_output_stream_type=None, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

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

private_cloud_name
str
Required

Name of the private cloud

script_execution_name
str
Required

Name of the user-invoked script execution resource

script_output_stream_type
list[str or ScriptOutputStreamType]
default value: None

Name of the desired output stream to return. If not provided, will return all. An empty array will return nothing

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

ScriptExecution or ClientRawResponse if raw=true

Return type

Exceptions

list

Get an script execution resource by name in a private cloud.

list(resource_group_name, private_cloud_name, custom_headers=None, raw=False, **operation_config)

Parameters

resource_group_name
str
Required

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

private_cloud_name
str
Required

Name of the private cloud

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

An iterator like instance of ScriptExecution

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.avs.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\avs\\models\\__init__.py'>