CloudServicesUpdateDomainOperations Class
CloudServicesUpdateDomainOperations 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.objectCloudServicesUpdateDomainOperations
Constructor
CloudServicesUpdateDomainOperations(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_walk_update_domain |
Updates the role instances in the specified update domain. |
| get_update_domain |
Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains. |
| list_update_domains |
Gets a list of all update domains in a cloud service. |
begin_walk_update_domain
Updates the role instances in the specified update domain.
async begin_walk_update_domain(resource_group_name: str, cloud_service_name: str, update_domain: int, parameters: Optional[azure.mgmt.compute.v2021_03_01.models._models_py3.UpdateDomain] = None, **kwargs: Any) -> azure.core.polling._async_poller.AsyncLROPoller[None]
Parameters
- update_domain
- int
Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.
- 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
get_update_domain
Gets the specified update domain of a cloud service. Use nextLink property in the response to get the next page of update domains. Do this till nextLink is null to fetch all the update domains.
async get_update_domain(resource_group_name: str, cloud_service_name: str, update_domain: int, **kwargs: Any) -> azure.mgmt.compute.v2021_03_01.models._models_py3.UpdateDomain
Parameters
- update_domain
- int
Specifies an integer value that identifies the update domain. Update domains are identified with a zero-based index: the first update domain has an ID of 0, the second has an ID of 1, and so on.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
UpdateDomain, or the result of cls(response)
Return type
Exceptions
list_update_domains
Gets a list of all update domains in a cloud service.
list_update_domains(resource_group_name: str, cloud_service_name: str, **kwargs: Any) -> AsyncIterable[azure.mgmt.compute.v2021_03_01.models._models_py3.UpdateDomainListResult]
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
An iterator like instance of either UpdateDomainListResult or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.compute.v2021_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2021_03_01\\models\\__init__.py'>
Feedback
Submit and view feedback for