UNPKG

@azure/arm-compute

Version:
156 lines 11 kB
import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { DiskEncryptionSets } from "../operationsInterfaces/index.js"; import { ComputeManagementClient } from "../computeManagementClient.js"; import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DiskEncryptionSet, DiskEncryptionSetsListOptionalParams, DiskEncryptionSetsListByResourceGroupOptionalParams, DiskEncryptionSetsListAssociatedResourcesOptionalParams, DiskEncryptionSetsGetOptionalParams, DiskEncryptionSetsGetResponse, DiskEncryptionSetsCreateOrUpdateOptionalParams, DiskEncryptionSetsCreateOrUpdateResponse, DiskEncryptionSetUpdate, DiskEncryptionSetsUpdateOptionalParams, DiskEncryptionSetsUpdateResponse, DiskEncryptionSetsDeleteOptionalParams } from "../models/index.js"; /** Class containing DiskEncryptionSets operations. */ export declare class DiskEncryptionSetsImpl implements DiskEncryptionSets { private readonly client; /** * Initialize a new instance of the class DiskEncryptionSets class. * @param client Reference to the service client */ constructor(client: ComputeManagementClient); /** * Lists all the disk encryption sets under a subscription. * @param options The options parameters. */ list(options?: DiskEncryptionSetsListOptionalParams): PagedAsyncIterableIterator<DiskEncryptionSet>; private listPagingPage; private listPagingAll; /** * Lists all the disk encryption sets under a resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup(resourceGroupName: string, options?: DiskEncryptionSetsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DiskEncryptionSet>; private listByResourceGroupPagingPage; private listByResourceGroupPagingAll; /** * Lists all resources that are encrypted with this disk encryption set. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param options The options parameters. */ listAssociatedResources(resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams): PagedAsyncIterableIterator<string>; private listAssociatedResourcesPagingPage; private listAssociatedResourcesPagingAll; /** * Lists all the disk encryption sets under a subscription. * @param options The options parameters. */ private _list; /** * Lists all the disk encryption sets under a resource group. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup; /** * Gets information about a disk encryption set. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param options The options parameters. */ get(resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsGetOptionalParams): Promise<DiskEncryptionSetsGetResponse>; /** * Creates or updates a disk encryption set * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption * set operation. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, options?: DiskEncryptionSetsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DiskEncryptionSetsCreateOrUpdateResponse>, DiskEncryptionSetsCreateOrUpdateResponse>>; /** * Creates or updates a disk encryption set * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param diskEncryptionSet disk encryption set object supplied in the body of the Put disk encryption * set operation. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, options?: DiskEncryptionSetsCreateOrUpdateOptionalParams): Promise<DiskEncryptionSetsCreateOrUpdateResponse>; /** * Updates (patches) a disk encryption set. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk * encryption set operation. * @param options The options parameters. */ beginUpdate(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, options?: DiskEncryptionSetsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<DiskEncryptionSetsUpdateResponse>, DiskEncryptionSetsUpdateResponse>>; /** * Updates (patches) a disk encryption set. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param diskEncryptionSet disk encryption set object supplied in the body of the Patch disk * encryption set operation. * @param options The options parameters. */ beginUpdateAndWait(resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, options?: DiskEncryptionSetsUpdateOptionalParams): Promise<DiskEncryptionSetsUpdateResponse>; /** * Deletes a disk encryption set. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param options The options parameters. */ beginDelete(resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>; /** * Deletes a disk encryption set. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsDeleteOptionalParams): Promise<void>; /** * Lists all resources that are encrypted with this disk encryption set. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param options The options parameters. */ private _listAssociatedResources; /** * ListNext * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext; /** * ListByResourceGroupNext * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ private _listByResourceGroupNext; /** * ListAssociatedResourcesNext * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name * can't be changed after the disk encryption set is created. Supported characters for the name are * a-z, A-Z, 0-9, _ and -. The maximum name length is 80 characters. * @param nextLink The nextLink from the previous successful call to the ListAssociatedResources * method. * @param options The options parameters. */ private _listAssociatedResourcesNext; } //# sourceMappingURL=diskEncryptionSets.d.ts.map