MachineExtensionsOperations Class

MachineExtensionsOperations 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
MachineExtensionsOperations

Constructor

MachineExtensionsOperations(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_or_update

The operation to create or update the extension.

begin_delete

The operation to delete the extension.

begin_update

The operation to create or update the extension.

get

The operation to get the extension.

list

The operation to get all extensions of a non-Azure machine.

begin_create_or_update

The operation to create or update the extension.

begin_create_or_update(resource_group_name: str, machine_name: str, extension_name: str, extension_parameters: _models.MachineExtension, **kwargs: Any) -> LROPoller[_models.MachineExtension]

Parameters

resource_group_name
str
Required

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

machine_name
str
Required

The name of the machine where the extension should be created or updated.

extension_name
str
Required

The name of the machine extension.

extension_parameters
MachineExtension
Required

Parameters supplied to the Create Machine Extension 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

Pass in True if you'd like the ARMPolling polling method, False for no polling, or 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 MachineExtension or the result of cls(response)

Return type

Exceptions

begin_delete

The operation to delete the extension.

begin_delete(resource_group_name: str, machine_name: str, extension_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

resource_group_name
str
Required

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

machine_name
str
Required

The name of the machine where the extension should be deleted.

extension_name
str
Required

The name of the machine extension.

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

Pass in True if you'd like the ARMPolling polling method, False for no polling, or 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 None or the result of cls(response)

Return type

Exceptions

begin_update

The operation to create or update the extension.

begin_update(resource_group_name: str, machine_name: str, extension_name: str, extension_parameters: _models.MachineExtensionUpdate, **kwargs: Any) -> LROPoller[_models.MachineExtension]

Parameters

resource_group_name
str
Required

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

machine_name
str
Required

The name of the machine where the extension should be created or updated.

extension_name
str
Required

The name of the machine extension.

extension_parameters
MachineExtensionUpdate
Required

Parameters supplied to the Create Machine Extension 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

Pass in True if you'd like the ARMPolling polling method, False for no polling, or 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 MachineExtension or the result of cls(response)

Return type

Exceptions

get

The operation to get the extension.

get(resource_group_name: str, machine_name: str, extension_name: str, **kwargs: Any) -> _models.MachineExtension

Parameters

resource_group_name
str
Required

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

machine_name
str
Required

The name of the machine containing the extension.

extension_name
str
Required

The name of the machine extension.

cls
callable

A custom type or function that will be passed the direct response

Returns

MachineExtension, or the result of cls(response)

Return type

Exceptions

list

The operation to get all extensions of a non-Azure machine.

list(resource_group_name: str, machine_name: str, expand: Optional[str] = None, **kwargs: Any) -> Iterable[_models.MachineExtensionsListResult]

Parameters

resource_group_name
str
Required

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

machine_name
str
Required

The name of the machine containing the extension.

expand
str
default value: None

The expand expression to apply on the operation.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either MachineExtensionsListResult or the result of cls(response)

Return type

Exceptions

Attributes

models

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