VirtualMachineRunCommandsOperations Class
VirtualMachineRunCommandsOperations 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.objectVirtualMachineRunCommandsOperations
Constructor
VirtualMachineRunCommandsOperations(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 run command. |
| begin_delete |
The operation to delete the run command. |
| begin_update |
The operation to update the run command. |
| get |
Gets specific run command for a subscription in a location. |
| get_by_virtual_machine |
The operation to get the run command. |
| list |
Lists all available run commands for a subscription in a location. |
| list_by_virtual_machine |
The operation to get all run commands of a Virtual Machine. |
begin_create_or_update
The operation to create or update the run command.
async begin_create_or_update(resource_group_name: str, vm_name: str, run_command_name: str, run_command: azure.mgmt.compute.v2021_04_01.models._models_py3.VirtualMachineRunCommand, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2021_04_01.models._models_py3.VirtualMachineRunCommand]
Parameters
- vm_name
- str
The name of the virtual machine where the run command should be created or updated.
- run_command
- VirtualMachineRunCommand
Parameters supplied to the Create Virtual Machine RunCommand 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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in 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 AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response)
Return type
Exceptions
begin_delete
The operation to delete the run command.
async begin_delete(resource_group_name: str, vm_name: str, run_command_name: str, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in 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 AsyncLROPoller that returns either None or the result of cls(response)
Return type
Exceptions
begin_update
The operation to update the run command.
async begin_update(resource_group_name: str, vm_name: str, run_command_name: str, run_command: azure.mgmt.compute.v2021_04_01.models._models_py3.VirtualMachineRunCommandUpdate, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[azure.mgmt.compute.v2021_04_01.models._models_py3.VirtualMachineRunCommand]
Parameters
- run_command
- VirtualMachineRunCommandUpdate
Parameters supplied to the Update Virtual Machine RunCommand 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 AsyncPollingMethod
By default, your polling method will be AsyncARMPolling. Pass in False for this operation to not poll, or pass in 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 AsyncLROPoller that returns either VirtualMachineRunCommand or the result of cls(response)
Return type
Exceptions
get
Gets specific run command for a subscription in a location.
async get(location: str, command_id: str, **kwargs: Any) -> azure.mgmt.compute.v2021_04_01.models._models_py3.RunCommandDocument
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
RunCommandDocument, or the result of cls(response)
Return type
Exceptions
get_by_virtual_machine
The operation to get the run command.
async get_by_virtual_machine(resource_group_name: str, vm_name: str, run_command_name: str, expand: Optional[str] = None, **kwargs: Any) -> azure.mgmt.compute.v2021_04_01.models._models_py3.VirtualMachineRunCommand
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
VirtualMachineRunCommand, or the result of cls(response)
Return type
Exceptions
list
Lists all available run commands for a subscription in a location.
list(location: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_04_01.models._models_py3.RunCommandListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either RunCommandListResult or the result of cls(response)
Return type
Exceptions
list_by_virtual_machine
The operation to get all run commands of a Virtual Machine.
list_by_virtual_machine(resource_group_name: str, vm_name: str, expand: Optional[str] = None, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_04_01.models._models_py3.VirtualMachineRunCommandsListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either VirtualMachineRunCommandsListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2021_04_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2021_04_01\\models\\__init__.py'>
Feedback
Submit and view feedback for