MachinesOperations Class

MachinesOperations 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.object
MachinesOperations

Constructor

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

delete

The operation to remove a hybrid machine identity in Azure.

get

Retrieves information about the model view or the instance view of a hybrid machine.

list_by_resource_group

Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.

list_by_subscription

Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.

delete

The operation to remove a hybrid machine identity in Azure.

async delete(resource_group_name: str, machine_name: str, **kwargs) -> 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 hybrid machine.

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

Retrieves information about the model view or the instance view of a hybrid machine.

async get(resource_group_name: str, machine_name: str, expand: Optional[Union[str, azure.mgmt.hybridcompute.models._hybrid_compute_management_client_enums.InstanceViewTypes]] = None, **kwargs) -> azure.mgmt.hybridcompute.models._models_py3.Machine

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 hybrid machine.

expand
str or InstanceViewTypes
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

Machine, or the result of cls(response)

Return type

Exceptions

list_by_resource_group

Lists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.

list_by_resource_group(resource_group_name: str, **kwargs) -> AsyncIterable[azure.mgmt.hybridcompute.models._models_py3.MachineListResult]

Parameters

resource_group_name
str
Required

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

cls
callable

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

Returns

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

Return type

Exceptions

list_by_subscription

Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.

list_by_subscription(**kwargs) -> AsyncIterable[azure.mgmt.hybridcompute.models._models_py3.MachineListResult]

Parameters

cls
callable

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

Returns

An iterator like instance of either MachineListResult 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'>