MachinesOperations Class
MachinesOperations 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.objectMachinesOperations
Constructor
MachinesOperations(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
| 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.
delete(resource_group_name: str, machine_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
Retrieves information about the model view or the instance view of a hybrid machine.
get(resource_group_name: str, machine_name: str, expand: Optional[Union[str, _models.InstanceViewTypes]] = None, **kwargs: Any) -> _models.Machine
Parameters
- expand
- str or InstanceViewTypes
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: Any) -> Iterable[_models.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
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: Any) -> Iterable[_models.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'>
Feedback
Submit and view feedback for