CloudServicesUpdateDomainOperations Class

CloudServicesUpdateDomainOperations 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
CloudServicesUpdateDomainOperations

Constructor

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

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.

begin_walk_update_domain(resource_group_name: str, cloud_service_name: str, update_domain: int, parameters: Optional[_models.UpdateDomain] = None, **kwargs: Any) -> LROPoller[None]

Parameters

resource_group_name
str
Required

Name of the resource group.

cloud_service_name
str
Required

Name of the cloud service.

update_domain
int
Required

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.

parameters
UpdateDomain
default value: None

The update domain object.

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

By default, your polling method will be ARMPolling. 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 LROPoller 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.

get_update_domain(resource_group_name: str, cloud_service_name: str, update_domain: int, **kwargs: Any) -> _models.UpdateDomain

Parameters

resource_group_name
str
Required

Name of the resource group.

cloud_service_name
str
Required

Name of the cloud service.

update_domain
int
Required

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) -> Iterable[_models.UpdateDomainListResult]

Parameters

resource_group_name
str
Required

Name of the resource group.

cloud_service_name
str
Required

Name of the cloud service.

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.v2020_10_01_preview.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\compute\\v2020_10_01_preview\\models\\__init__.py'>