CloudServicesUpdateDomainOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ComputeManagementClient's

<xref:cloud_services_update_domain> attribute.

Inheritance
builtins.object
CloudServicesUpdateDomainOperations

Constructor

CloudServicesUpdateDomainOperations(*args, **kwargs)

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: _models.UpdateDomain | None = None, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group. Required.

cloud_service_name
Required
str

Name of the cloud service. Required.

update_domain
Required
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. Required.

parameters
Required

The update domain object. Is either a UpdateDomain type or a IO[bytes] type. Default value is None.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

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) -> UpdateDomain

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group. Required.

cloud_service_name
Required
str

Name of the cloud service. Required.

update_domain
Required
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. Required.

Returns

Type Description

UpdateDomain or the result of cls(response)

Exceptions

Type Description

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[UpdateDomain]

Parameters

Name Description
resource_group_name
Required
str

Name of the resource group. Required.

cloud_service_name
Required
str

Name of the cloud service. Required.

Returns

Type Description

An iterator like instance of either UpdateDomain or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.compute.v2021_03_01.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\compute\\v2021_03_01\\models\\__init__.py'>