import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PollerLike, PollOperationState } from "@azure/core-lro"; import { Lab, LabsListBySubscriptionOptionalParams, LabsListByResourceGroupOptionalParams, LabVhd, LabsListVhdsOptionalParams, LabsGetOptionalParams, LabsGetResponse, LabsCreateOrUpdateOptionalParams, LabsCreateOrUpdateResponse, LabsDeleteOptionalParams, LabFragment, LabsUpdateOptionalParams, LabsUpdateResponse, LabsClaimAnyVmOptionalParams, LabVirtualMachineCreationParameter, LabsCreateEnvironmentOptionalParams, ExportResourceUsageParameters, LabsExportResourceUsageOptionalParams, GenerateUploadUriParameter, LabsGenerateUploadUriOptionalParams, LabsGenerateUploadUriResponse, ImportLabVirtualMachineRequest, LabsImportVirtualMachineOptionalParams } from "../models"; /** Interface representing a Labs. */ export interface Labs { /** * List labs in a subscription. * @param options The options parameters. */ listBySubscription(options?: LabsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; /** * List labs in a resource group. * @param resourceGroupName The name of the resource group. * @param options The options parameters. */ listByResourceGroup(resourceGroupName: string, options?: LabsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; /** * List disk images available for custom image creation. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param options The options parameters. */ listVhds(resourceGroupName: string, name: string, options?: LabsListVhdsOptionalParams): PagedAsyncIterableIterator; /** * Get lab. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param options The options parameters. */ get(resourceGroupName: string, name: string, options?: LabsGetOptionalParams): Promise; /** * Create or replace an existing lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param lab A lab. * @param options The options parameters. */ beginCreateOrUpdate(resourceGroupName: string, name: string, lab: Lab, options?: LabsCreateOrUpdateOptionalParams): Promise, LabsCreateOrUpdateResponse>>; /** * Create or replace an existing lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param lab A lab. * @param options The options parameters. */ beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, lab: Lab, options?: LabsCreateOrUpdateOptionalParams): Promise; /** * Delete lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param options The options parameters. */ beginDelete(resourceGroupName: string, name: string, options?: LabsDeleteOptionalParams): Promise, void>>; /** * Delete lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param options The options parameters. */ beginDeleteAndWait(resourceGroupName: string, name: string, options?: LabsDeleteOptionalParams): Promise; /** * Allows modifying tags of labs. All other properties will be ignored. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param lab A lab. * @param options The options parameters. */ update(resourceGroupName: string, name: string, lab: LabFragment, options?: LabsUpdateOptionalParams): Promise; /** * Claim a random claimable virtual machine in the lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param options The options parameters. */ beginClaimAnyVm(resourceGroupName: string, name: string, options?: LabsClaimAnyVmOptionalParams): Promise, void>>; /** * Claim a random claimable virtual machine in the lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param options The options parameters. */ beginClaimAnyVmAndWait(resourceGroupName: string, name: string, options?: LabsClaimAnyVmOptionalParams): Promise; /** * Create virtual machines in a lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param labVirtualMachineCreationParameter Properties for creating a virtual machine. * @param options The options parameters. */ beginCreateEnvironment(resourceGroupName: string, name: string, labVirtualMachineCreationParameter: LabVirtualMachineCreationParameter, options?: LabsCreateEnvironmentOptionalParams): Promise, void>>; /** * Create virtual machines in a lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param labVirtualMachineCreationParameter Properties for creating a virtual machine. * @param options The options parameters. */ beginCreateEnvironmentAndWait(resourceGroupName: string, name: string, labVirtualMachineCreationParameter: LabVirtualMachineCreationParameter, options?: LabsCreateEnvironmentOptionalParams): Promise; /** * Exports the lab resource usage into a storage account This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param exportResourceUsageParameters The parameters of the export operation. * @param options The options parameters. */ beginExportResourceUsage(resourceGroupName: string, name: string, exportResourceUsageParameters: ExportResourceUsageParameters, options?: LabsExportResourceUsageOptionalParams): Promise, void>>; /** * Exports the lab resource usage into a storage account This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param exportResourceUsageParameters The parameters of the export operation. * @param options The options parameters. */ beginExportResourceUsageAndWait(resourceGroupName: string, name: string, exportResourceUsageParameters: ExportResourceUsageParameters, options?: LabsExportResourceUsageOptionalParams): Promise; /** * Generate a URI for uploading custom disk images to a Lab. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param generateUploadUriParameter Properties for generating an upload URI. * @param options The options parameters. */ generateUploadUri(resourceGroupName: string, name: string, generateUploadUriParameter: GenerateUploadUriParameter, options?: LabsGenerateUploadUriOptionalParams): Promise; /** * Import a virtual machine into a different lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param importLabVirtualMachineRequest This represents the payload required to import a virtual * machine from a different lab into the current one * @param options The options parameters. */ beginImportVirtualMachine(resourceGroupName: string, name: string, importLabVirtualMachineRequest: ImportLabVirtualMachineRequest, options?: LabsImportVirtualMachineOptionalParams): Promise, void>>; /** * Import a virtual machine into a different lab. This operation can take a while to complete. * @param resourceGroupName The name of the resource group. * @param name The name of the lab. * @param importLabVirtualMachineRequest This represents the payload required to import a virtual * machine from a different lab into the current one * @param options The options parameters. */ beginImportVirtualMachineAndWait(resourceGroupName: string, name: string, importLabVirtualMachineRequest: ImportLabVirtualMachineRequest, options?: LabsImportVirtualMachineOptionalParams): Promise; } //# sourceMappingURL=labs.d.ts.map