@azure/arm-compute
Version:
A generated SDK for ComputeManagementClient.
70 lines • 4.49 kB
TypeScript
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
import type { CloudServicesUpdateDomain } from "../operationsInterfaces/index.js";
import type { ComputeManagementClient } from "../computeManagementClient.js";
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
import type { UpdateDomain, CloudServicesUpdateDomainListUpdateDomainsOptionalParams, CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainResponse } from "../models/index.js";
/** Class containing CloudServicesUpdateDomain operations. */
export declare class CloudServicesUpdateDomainImpl implements CloudServicesUpdateDomain {
private readonly client;
/**
* Initialize a new instance of the class CloudServicesUpdateDomain class.
* @param client Reference to the service client
*/
constructor(client: ComputeManagementClient);
/**
* Gets a list of all update domains in a cloud service.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
listUpdateDomains(resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams): PagedAsyncIterableIterator<UpdateDomain>;
private listUpdateDomainsPagingPage;
private listUpdateDomainsPagingAll;
/**
* Updates the role instances in the specified update domain.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param updateDomain 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.
* @param options The options parameters.
*/
beginWalkUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
/**
* Updates the role instances in the specified update domain.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param updateDomain 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.
* @param options The options parameters.
*/
beginWalkUpdateDomainAndWait(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams): Promise<void>;
/**
* 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.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param updateDomain 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.
* @param options The options parameters.
*/
getUpdateDomain(resourceGroupName: string, cloudServiceName: string, updateDomain: number, options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams): Promise<CloudServicesUpdateDomainGetUpdateDomainResponse>;
/**
* Gets a list of all update domains in a cloud service.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
private _listUpdateDomains;
/**
* ListUpdateDomainsNext
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param nextLink The nextLink from the previous successful call to the ListUpdateDomains method.
* @param options The options parameters.
*/
private _listUpdateDomainsNext;
}
//# sourceMappingURL=cloudServicesUpdateDomain.d.ts.map