import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { Disks } from "../operationsInterfaces"; import { DevTestLabsClient } from "../devTestLabsClient"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { Disk, DisksListOptionalParams, DisksGetOptionalParams, DisksGetResponse, DisksCreateOrUpdateOptionalParams, DisksCreateOrUpdateResponse, DisksDeleteOptionalParams, DiskFragment, DisksUpdateOptionalParams, DisksUpdateResponse, AttachDiskProperties, DisksAttachOptionalParams, DetachDiskProperties, DisksDetachOptionalParams } from "../models"; /** Class containing Disks operations. */ export declare class DisksImpl implements Disks { private readonly client; /** * Initialize a new instance of the class Disks class. * @param client Reference to the service client */ constructor(client: DevTestLabsClient); /** * List disks in a given user profile. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param options The options parameters. */ list(resourceGroupName: string, labName: string, userName: string, options?: DisksListOptionalParams): PagedAsyncIterableIterator; private listPagingPage; private listPagingAll; /** * List disks in a given user profile. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param options The options parameters. */ private _list; /** * Get disk. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param options The options parameters. */ get(resourceGroupName: string, labName: string, userName: string, name: string, options?: DisksGetOptionalParams): Promise; /** * Create or replace an existing disk. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param disk A Disk. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, labName: string, userName: string, name: string, disk: Disk, options?: DisksCreateOrUpdateOptionalParams): Promise, DisksCreateOrUpdateResponse>>; /** * Create or replace an existing disk. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param disk A Disk. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, labName: string, userName: string, name: string, disk: Disk, options?: DisksCreateOrUpdateOptionalParams): Promise; /** * Delete disk. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param options The options parameters. */ beginDelete(resourceGroupName: string, labName: string, userName: string, name: string, options?: DisksDeleteOptionalParams): Promise, void>>; /** * Delete disk. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, labName: string, userName: string, name: string, options?: DisksDeleteOptionalParams): Promise; /** * Allows modifying tags of disks. All other properties will be ignored. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param disk A Disk. * @param options The options parameters. */ update(resourceGroupName: string, labName: string, userName: string, name: string, disk: DiskFragment, options?: DisksUpdateOptionalParams): Promise; /** * Attach and create the lease of the disk to the virtual machine. This operation can take a while to * complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param attachDiskProperties Properties of the disk to attach. * @param options The options parameters. */ beginAttach(resourceGroupName: string, labName: string, userName: string, name: string, attachDiskProperties: AttachDiskProperties, options?: DisksAttachOptionalParams): Promise, void>>; /** * Attach and create the lease of the disk to the virtual machine. This operation can take a while to * complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param attachDiskProperties Properties of the disk to attach. * @param options The options parameters. */ beginAttachAndWait(resourceGroupName: string, labName: string, userName: string, name: string, attachDiskProperties: AttachDiskProperties, options?: DisksAttachOptionalParams): Promise; /** * Detach and break the lease of the disk attached to the virtual machine. This operation can take a * while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param detachDiskProperties Properties of the disk to detach. * @param options The options parameters. */ beginDetach(resourceGroupName: string, labName: string, userName: string, name: string, detachDiskProperties: DetachDiskProperties, options?: DisksDetachOptionalParams): Promise, void>>; /** * Detach and break the lease of the disk attached to the virtual machine. This operation can take a * while to complete. * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param name The name of the disk. * @param detachDiskProperties Properties of the disk to detach. * @param options The options parameters. */ beginDetachAndWait(resourceGroupName: string, labName: string, userName: string, name: string, detachDiskProperties: DetachDiskProperties, options?: DisksDetachOptionalParams): Promise; /** * ListNext * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param userName The name of the user profile. * @param nextLink The nextLink from the previous successful call to the List method. * @param options The options parameters. */ private _listNext; } //# sourceMappingURL=disks.d.ts.map