@azure/arm-compute
Version:
A generated SDK for ComputeManagementClient.
137 lines • 8.9 kB
TypeScript
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
import type { CloudServiceRoleInstances } from "../operationsInterfaces/index.js";
import type { ComputeManagementClient } from "../computeManagementClient.js";
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
import type { RoleInstance, CloudServiceRoleInstancesListOptionalParams, CloudServiceRoleInstancesDeleteOptionalParams, CloudServiceRoleInstancesGetOptionalParams, CloudServiceRoleInstancesGetResponse, CloudServiceRoleInstancesGetInstanceViewOptionalParams, CloudServiceRoleInstancesGetInstanceViewResponse, CloudServiceRoleInstancesRestartOptionalParams, CloudServiceRoleInstancesReimageOptionalParams, CloudServiceRoleInstancesRebuildOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileResponse } from "../models/index.js";
/** Class containing CloudServiceRoleInstances operations. */
export declare class CloudServiceRoleInstancesImpl implements CloudServiceRoleInstances {
private readonly client;
/**
* Initialize a new instance of the class CloudServiceRoleInstances class.
* @param client Reference to the service client
*/
constructor(client: ComputeManagementClient);
/**
* Gets the list of all role instances in a cloud service. Use nextLink property in the response to get
* the next page of role instances. Do this till nextLink is null to fetch all the role instances.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
list(resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesListOptionalParams): PagedAsyncIterableIterator<RoleInstance>;
private listPagingPage;
private listPagingAll;
/**
* Deletes a role instance from a cloud service.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
beginDelete(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
/**
* Deletes a role instance from a cloud service.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
beginDeleteAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesDeleteOptionalParams): Promise<void>;
/**
* Gets a role instance from a cloud service.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
get(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesGetOptionalParams): Promise<CloudServiceRoleInstancesGetResponse>;
/**
* Retrieves information about the run-time state of a role instance in a cloud service.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
getInstanceView(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams): Promise<CloudServiceRoleInstancesGetInstanceViewResponse>;
/**
* Gets the list of all role instances in a cloud service. Use nextLink property in the response to get
* the next page of role instances. Do this till nextLink is null to fetch all the role instances.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
private _list;
/**
* The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud
* service.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
beginRestart(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
/**
* The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud
* service.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
beginRestartAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRestartOptionalParams): Promise<void>;
/**
* The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web
* roles or worker roles.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
beginReimage(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
/**
* The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web
* roles or worker roles.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
beginReimageAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesReimageOptionalParams): Promise<void>;
/**
* The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web
* roles or worker roles and initializes the storage resources that are used by them. If you do not
* want to initialize storage resources, you can use Reimage Role Instance.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
beginRebuild(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
/**
* The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web
* roles or worker roles and initializes the storage resources that are used by them. If you do not
* want to initialize storage resources, you can use Reimage Role Instance.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
beginRebuildAndWait(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesRebuildOptionalParams): Promise<void>;
/**
* Gets a remote desktop file for a role instance in a cloud service.
* @param roleInstanceName Name of the role instance.
* @param resourceGroupName Name of the resource group.
* @param cloudServiceName Name of the cloud service.
* @param options The options parameters.
*/
getRemoteDesktopFile(roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams): Promise<CloudServiceRoleInstancesGetRemoteDesktopFileResponse>;
/**
* ListNext
* @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 List method.
* @param options The options parameters.
*/
private _listNext;
}
//# sourceMappingURL=cloudServiceRoleInstances.d.ts.map