public interface Labs
Modifier and Type | Method and Description |
---|---|
void |
claimAnyVm(String resourceGroupName,
String name)
Claim a random claimable virtual machine in the lab.
|
void |
claimAnyVm(String resourceGroupName,
String name,
com.azure.core.util.Context context)
Claim a random claimable virtual machine in the lab.
|
void |
createEnvironment(String resourceGroupName,
String name,
LabVirtualMachineCreationParameter labVirtualMachineCreationParameter)
Create virtual machines in a lab.
|
void |
createEnvironment(String resourceGroupName,
String name,
LabVirtualMachineCreationParameter labVirtualMachineCreationParameter,
com.azure.core.util.Context context)
Create virtual machines in a lab.
|
Lab.DefinitionStages.Blank |
define(String name)
Begins definition for a new Lab resource.
|
void |
delete(String resourceGroupName,
String name,
com.azure.core.util.Context context)
Delete lab.
|
void |
deleteById(String id)
Delete lab.
|
void |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Delete lab.
|
void |
deleteByResourceGroup(String resourceGroupName,
String name)
Delete lab.
|
void |
exportResourceUsage(String resourceGroupName,
String name,
ExportResourceUsageParameters exportResourceUsageParameters)
Exports the lab resource usage into a storage account This operation can take a while to complete.
|
void |
exportResourceUsage(String resourceGroupName,
String name,
ExportResourceUsageParameters exportResourceUsageParameters,
com.azure.core.util.Context context)
Exports the lab resource usage into a storage account This operation can take a while to complete.
|
GenerateUploadUriResponse |
generateUploadUri(String resourceGroupName,
String name,
GenerateUploadUriParameter generateUploadUriParameter)
Generate a URI for uploading custom disk images to a Lab.
|
com.azure.core.http.rest.Response<GenerateUploadUriResponse> |
generateUploadUriWithResponse(String resourceGroupName,
String name,
GenerateUploadUriParameter generateUploadUriParameter,
com.azure.core.util.Context context)
Generate a URI for uploading custom disk images to a Lab.
|
Lab |
getById(String id)
Get lab.
|
com.azure.core.http.rest.Response<Lab> |
getByIdWithResponse(String id,
String expand,
com.azure.core.util.Context context)
Get lab.
|
Lab |
getByResourceGroup(String resourceGroupName,
String name)
Get lab.
|
com.azure.core.http.rest.Response<Lab> |
getByResourceGroupWithResponse(String resourceGroupName,
String name,
String expand,
com.azure.core.util.Context context)
Get lab.
|
void |
importVirtualMachine(String resourceGroupName,
String name,
ImportLabVirtualMachineRequest importLabVirtualMachineRequest)
Import a virtual machine into a different lab.
|
void |
importVirtualMachine(String resourceGroupName,
String name,
ImportLabVirtualMachineRequest importLabVirtualMachineRequest,
com.azure.core.util.Context context)
Import a virtual machine into a different lab.
|
com.azure.core.http.rest.PagedIterable<Lab> |
list()
List labs in a subscription.
|
com.azure.core.http.rest.PagedIterable<Lab> |
list(String expand,
String filter,
Integer top,
String orderby,
com.azure.core.util.Context context)
List labs in a subscription.
|
com.azure.core.http.rest.PagedIterable<Lab> |
listByResourceGroup(String resourceGroupName)
List labs in a resource group.
|
com.azure.core.http.rest.PagedIterable<Lab> |
listByResourceGroup(String resourceGroupName,
String expand,
String filter,
Integer top,
String orderby,
com.azure.core.util.Context context)
List labs in a resource group.
|
com.azure.core.http.rest.PagedIterable<LabVhd> |
listVhds(String resourceGroupName,
String name)
List disk images available for custom image creation.
|
com.azure.core.http.rest.PagedIterable<LabVhd> |
listVhds(String resourceGroupName,
String name,
com.azure.core.util.Context context)
List disk images available for custom image creation.
|
com.azure.core.http.rest.PagedIterable<Lab> list()
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<Lab> list(String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context)
expand
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<Lab> listByResourceGroup(String resourceGroupName)
resourceGroupName
- The name of the resource group.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<Lab> listByResourceGroup(String resourceGroupName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.expand
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.filter
- The filter to apply to the operation. Example: '$filter=contains(name,'myName').top
- The maximum number of resources to return from the operation. Example: '$top=10'.orderby
- The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Lab getByResourceGroup(String resourceGroupName, String name)
resourceGroupName
- The name of the resource group.name
- The name of the lab.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Lab> getByResourceGroupWithResponse(String resourceGroupName, String name, String expand, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the lab.expand
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void deleteByResourceGroup(String resourceGroupName, String name)
resourceGroupName
- The name of the resource group.name
- The name of the lab.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void delete(String resourceGroupName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the lab.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void claimAnyVm(String resourceGroupName, String name)
resourceGroupName
- The name of the resource group.name
- The name of the lab.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void claimAnyVm(String resourceGroupName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the lab.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void createEnvironment(String resourceGroupName, String name, LabVirtualMachineCreationParameter labVirtualMachineCreationParameter)
resourceGroupName
- The name of the resource group.name
- The name of the lab.labVirtualMachineCreationParameter
- Properties for creating a virtual machine.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void createEnvironment(String resourceGroupName, String name, LabVirtualMachineCreationParameter labVirtualMachineCreationParameter, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the lab.labVirtualMachineCreationParameter
- Properties for creating a virtual machine.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void exportResourceUsage(String resourceGroupName, String name, ExportResourceUsageParameters exportResourceUsageParameters)
resourceGroupName
- The name of the resource group.name
- The name of the lab.exportResourceUsageParameters
- The parameters of the export operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void exportResourceUsage(String resourceGroupName, String name, ExportResourceUsageParameters exportResourceUsageParameters, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the lab.exportResourceUsageParameters
- The parameters of the export operation.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.GenerateUploadUriResponse generateUploadUri(String resourceGroupName, String name, GenerateUploadUriParameter generateUploadUriParameter)
resourceGroupName
- The name of the resource group.name
- The name of the lab.generateUploadUriParameter
- Properties for generating an upload URI.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<GenerateUploadUriResponse> generateUploadUriWithResponse(String resourceGroupName, String name, GenerateUploadUriParameter generateUploadUriParameter, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the lab.generateUploadUriParameter
- Properties for generating an upload URI.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void importVirtualMachine(String resourceGroupName, String name, ImportLabVirtualMachineRequest importLabVirtualMachineRequest)
resourceGroupName
- The name of the resource group.name
- The name of the lab.importLabVirtualMachineRequest
- This represents the payload required to import a virtual machine from a
different lab into the current one.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void importVirtualMachine(String resourceGroupName, String name, ImportLabVirtualMachineRequest importLabVirtualMachineRequest, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the lab.importLabVirtualMachineRequest
- This represents the payload required to import a virtual machine from a
different lab into the current one.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<LabVhd> listVhds(String resourceGroupName, String name)
resourceGroupName
- The name of the resource group.name
- The name of the lab.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.PagedIterable<LabVhd> listVhds(String resourceGroupName, String name, com.azure.core.util.Context context)
resourceGroupName
- The name of the resource group.name
- The name of the lab.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Lab getById(String id)
id
- the resource ID.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.com.azure.core.http.rest.Response<Lab> getByIdWithResponse(String id, String expand, com.azure.core.util.Context context)
id
- the resource ID.expand
- Specify the $expand query. Example: 'properties($select=defaultStorageAccount)'.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void deleteById(String id)
id
- the resource ID.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
id
- the resource ID.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Lab.DefinitionStages.Blank define(String name)
name
- resource name.Copyright © 2021 Microsoft Corporation. All rights reserved.