Interface LabsClient
public interface LabsClient
An instance of this class provides access to all the operations defined in LabsClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginClaimAnyVm
(String resourceGroupName, String name) Claim a random claimable virtual machine in the lab.beginClaimAnyVm
(String resourceGroupName, String name, com.azure.core.util.Context context) Claim a random claimable virtual machine in the lab.beginCreateEnvironment
(String resourceGroupName, String name, LabVirtualMachineCreationParameter labVirtualMachineCreationParameter) Create virtual machines in a lab.beginCreateEnvironment
(String resourceGroupName, String name, LabVirtualMachineCreationParameter labVirtualMachineCreationParameter, com.azure.core.util.Context context) Create virtual machines in a lab.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LabInner>,
LabInner> beginCreateOrUpdate
(String resourceGroupName, String name, LabInner lab) Create or replace an existing lab.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LabInner>,
LabInner> beginCreateOrUpdate
(String resourceGroupName, String name, LabInner lab, com.azure.core.util.Context context) Create or replace an existing lab.beginDelete
(String resourceGroupName, String name) Delete lab.beginDelete
(String resourceGroupName, String name, com.azure.core.util.Context context) Delete lab.beginExportResourceUsage
(String resourceGroupName, String name, ExportResourceUsageParameters exportResourceUsageParameters) Exports the lab resource usage into a storage account This operation can take a while to complete.beginExportResourceUsage
(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.beginImportVirtualMachine
(String resourceGroupName, String name, ImportLabVirtualMachineRequest importLabVirtualMachineRequest) Import a virtual machine into a different lab.beginImportVirtualMachine
(String resourceGroupName, String name, ImportLabVirtualMachineRequest importLabVirtualMachineRequest, com.azure.core.util.Context context) Import a virtual machine into a different lab.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.createOrUpdate
(String resourceGroupName, String name, LabInner lab) Create or replace an existing lab.createOrUpdate
(String resourceGroupName, String name, LabInner lab, com.azure.core.util.Context context) Create or replace an existing lab.void
Delete lab.void
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.generateUploadUri
(String resourceGroupName, String name, GenerateUploadUriParameter generateUploadUriParameter) Generate a URI for uploading custom disk images to a Lab.com.azure.core.http.rest.Response<GenerateUploadUriResponseInner>
generateUploadUriWithResponse
(String resourceGroupName, String name, GenerateUploadUriParameter generateUploadUriParameter, com.azure.core.util.Context context) Generate a URI for uploading custom disk images to a Lab.getByResourceGroup
(String resourceGroupName, String name) Get lab.com.azure.core.http.rest.Response<LabInner>
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<LabInner>
list()
List labs in a subscription.com.azure.core.http.rest.PagedIterable<LabInner>
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<LabInner>
listByResourceGroup
(String resourceGroupName) List labs in a resource group.com.azure.core.http.rest.PagedIterable<LabInner>
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<LabVhdInner>
List disk images available for custom image creation.com.azure.core.http.rest.PagedIterable<LabVhdInner>
List disk images available for custom image creation.update
(String resourceGroupName, String name, LabFragment lab) Allows modifying tags of labs.com.azure.core.http.rest.Response<LabInner>
updateWithResponse
(String resourceGroupName, String name, LabFragment lab, com.azure.core.util.Context context) Allows modifying tags of labs.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<LabInner> list()List labs in a subscription.- Returns:
- the response of a list operation as paginated response with
PagedIterable
. - Throws:
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.
-
list
com.azure.core.http.rest.PagedIterable<LabInner> list(String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List labs in a subscription.- Parameters:
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.- Returns:
- the response of a list operation as paginated response with
PagedIterable
. - Throws:
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.
-
listByResourceGroup
List labs in a resource group.- Parameters:
resourceGroupName
- The name of the resource group.- Returns:
- the response of a list operation as paginated response with
PagedIterable
. - Throws:
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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<LabInner> listByResourceGroup(String resourceGroupName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List labs in a resource group.- Parameters:
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.- Returns:
- the response of a list operation as paginated response with
PagedIterable
. - Throws:
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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<LabInner> getByResourceGroupWithResponse(String resourceGroupName, String name, String expand, com.azure.core.util.Context context) Get lab.- Parameters:
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.- Returns:
- lab along with
Response
. - Throws:
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.
-
getByResourceGroup
Get lab.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.- Returns:
- lab.
- Throws:
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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LabInner>,LabInner> beginCreateOrUpdate(String resourceGroupName, String name, LabInner lab) Create or replace an existing lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.lab
- A lab.- Returns:
- the
SyncPoller
for polling of a lab. - Throws:
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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LabInner>,LabInner> beginCreateOrUpdate(String resourceGroupName, String name, LabInner lab, com.azure.core.util.Context context) Create or replace an existing lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.lab
- A lab.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of a lab. - Throws:
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.
-
createOrUpdate
Create or replace an existing lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.lab
- A lab.- Returns:
- a lab.
- Throws:
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.
-
createOrUpdate
LabInner createOrUpdate(String resourceGroupName, String name, LabInner lab, com.azure.core.util.Context context) Create or replace an existing lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.lab
- A lab.context
- The context to associate with this operation.- Returns:
- a lab.
- Throws:
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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String name) Delete lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String name, com.azure.core.util.Context context) Delete lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
delete
Delete lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.- Throws:
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.
-
delete
Delete lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.context
- The context to associate with this operation.- Throws:
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.
-
updateWithResponse
com.azure.core.http.rest.Response<LabInner> updateWithResponse(String resourceGroupName, String name, LabFragment lab, com.azure.core.util.Context context) Allows modifying tags of labs. All other properties will be ignored.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.lab
- A lab.context
- The context to associate with this operation.- Returns:
- a lab along with
Response
. - Throws:
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.
-
update
Allows modifying tags of labs. All other properties will be ignored.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.lab
- A lab.- Returns:
- a lab.
- Throws:
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.
-
beginClaimAnyVm
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginClaimAnyVm(String resourceGroupName, String name) Claim a random claimable virtual machine in the lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
beginClaimAnyVm
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginClaimAnyVm(String resourceGroupName, String name, com.azure.core.util.Context context) Claim a random claimable virtual machine in the lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
claimAnyVm
Claim a random claimable virtual machine in the lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.- Throws:
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.
-
claimAnyVm
Claim a random claimable virtual machine in the lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.context
- The context to associate with this operation.- Throws:
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.
-
beginCreateEnvironment
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginCreateEnvironment(String resourceGroupName, String name, LabVirtualMachineCreationParameter labVirtualMachineCreationParameter) Create virtual machines in a lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.labVirtualMachineCreationParameter
- Properties for creating a virtual machine.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
beginCreateEnvironment
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginCreateEnvironment(String resourceGroupName, String name, LabVirtualMachineCreationParameter labVirtualMachineCreationParameter, com.azure.core.util.Context context) Create virtual machines in a lab. This operation can take a while to complete.- Parameters:
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.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
createEnvironment
void createEnvironment(String resourceGroupName, String name, LabVirtualMachineCreationParameter labVirtualMachineCreationParameter) Create virtual machines in a lab. This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.labVirtualMachineCreationParameter
- Properties for creating a virtual machine.- Throws:
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.
-
createEnvironment
void createEnvironment(String resourceGroupName, String name, LabVirtualMachineCreationParameter labVirtualMachineCreationParameter, com.azure.core.util.Context context) Create virtual machines in a lab. This operation can take a while to complete.- Parameters:
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.- Throws:
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.
-
beginExportResourceUsage
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginExportResourceUsage(String resourceGroupName, String name, ExportResourceUsageParameters exportResourceUsageParameters) Exports the lab resource usage into a storage account This operation can take a while to complete.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.exportResourceUsageParameters
- The parameters of the export operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
beginExportResourceUsage
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginExportResourceUsage(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.- Parameters:
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.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
exportResourceUsage
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.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.exportResourceUsageParameters
- The parameters of the export operation.- Throws:
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.
-
exportResourceUsage
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.- Parameters:
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.- Throws:
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.
-
generateUploadUriWithResponse
com.azure.core.http.rest.Response<GenerateUploadUriResponseInner> generateUploadUriWithResponse(String resourceGroupName, String name, GenerateUploadUriParameter generateUploadUriParameter, com.azure.core.util.Context context) Generate a URI for uploading custom disk images to a Lab.- Parameters:
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.- Returns:
- response body for generating an upload URI along with
Response
. - Throws:
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.
-
generateUploadUri
GenerateUploadUriResponseInner generateUploadUri(String resourceGroupName, String name, GenerateUploadUriParameter generateUploadUriParameter) Generate a URI for uploading custom disk images to a Lab.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.generateUploadUriParameter
- Properties for generating an upload URI.- Returns:
- response body for generating an upload URI.
- Throws:
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.
-
beginImportVirtualMachine
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginImportVirtualMachine(String resourceGroupName, String name, ImportLabVirtualMachineRequest importLabVirtualMachineRequest) Import a virtual machine into a different lab. This operation can take a while to complete.- Parameters:
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.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
beginImportVirtualMachine
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginImportVirtualMachine(String resourceGroupName, String name, ImportLabVirtualMachineRequest importLabVirtualMachineRequest, com.azure.core.util.Context context) Import a virtual machine into a different lab. This operation can take a while to complete.- Parameters:
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.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
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.
-
importVirtualMachine
void importVirtualMachine(String resourceGroupName, String name, ImportLabVirtualMachineRequest importLabVirtualMachineRequest) Import a virtual machine into a different lab. This operation can take a while to complete.- Parameters:
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.- Throws:
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.
-
importVirtualMachine
void importVirtualMachine(String resourceGroupName, String name, ImportLabVirtualMachineRequest importLabVirtualMachineRequest, com.azure.core.util.Context context) Import a virtual machine into a different lab. This operation can take a while to complete.- Parameters:
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.- Throws:
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.
-
listVhds
List disk images available for custom image creation.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.- Returns:
- the response of a list operation as paginated response with
PagedIterable
. - Throws:
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.
-
listVhds
com.azure.core.http.rest.PagedIterable<LabVhdInner> listVhds(String resourceGroupName, String name, com.azure.core.util.Context context) List disk images available for custom image creation.- Parameters:
resourceGroupName
- The name of the resource group.name
- The name of the lab.context
- The context to associate with this operation.- Returns:
- the response of a list operation as paginated response with
PagedIterable
. - Throws:
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.
-