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.objectMachineExtensionsOperations
Constructor
MachineExtensionsOperations(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
| 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
- extension_parameters
- MachineExtension
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
- 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
- extension_parameters
- MachineExtensionUpdate
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
- 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
- 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'>
Feedback
Submit and view feedback for