Share via


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.

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

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

Default value: 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.v2022_09_04.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv86\\Lib\\site-packages\\azure\\mgmt\\compute\\v2022_09_04\\models\\__init__.py'>