VirtualMachinesClient Interface
public interface VirtualMachinesClient
An instance of this class provides access to all the operations defined in VirtualMachinesClient.
Method Summary
Method Details
addDataDisk
public abstract void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties)
Attach a new or existing data disk to virtual machine. This operation can take a while to complete.
Parameters:
addDataDisk
public abstract void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, Context context)
Attach a new or existing data disk to virtual machine. This operation can take a while to complete.
Parameters:
applyArtifacts
public abstract void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest)
Apply artifacts to virtual machine. This operation can take a while to complete.
Parameters:
applyArtifacts
public abstract void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, Context context)
Apply artifacts to virtual machine. This operation can take a while to complete.
Parameters:
beginAddDataDisk
public abstract SyncPoller<PollResult<Void>,Void> beginAddDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties)
Attach a new or existing data disk to virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginAddDataDisk
public abstract SyncPoller<PollResult<Void>,Void> beginAddDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, Context context)
Attach a new or existing data disk to virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginApplyArtifacts
public abstract SyncPoller<PollResult<Void>,Void> beginApplyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest)
Apply artifacts to virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginApplyArtifacts
public abstract SyncPoller<PollResult<Void>,Void> beginApplyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, Context context)
Apply artifacts to virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginClaim
public abstract SyncPoller<PollResult<Void>,Void> beginClaim(String resourceGroupName, String labName, String name)
Take ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
Returns:
beginClaim
public abstract SyncPoller<PollResult<Void>,Void> beginClaim(String resourceGroupName, String labName, String name, Context context)
Take ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
Returns:
beginCreateOrUpdate
public abstract SyncPoller<PollResult<LabVirtualMachineInner>,LabVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine)
Create or replace an existing virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginCreateOrUpdate
public abstract SyncPoller<PollResult<LabVirtualMachineInner>,LabVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, Context context)
Create or replace an existing virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginDelete
public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name)
Delete virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginDelete
public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name, Context context)
Delete virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginDetachDataDisk
public abstract SyncPoller<PollResult<Void>,Void> beginDetachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties)
Detach the specified disk from the virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginDetachDataDisk
public abstract SyncPoller<PollResult<Void>,Void> beginDetachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, Context context)
Detach the specified disk from the virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginRedeploy
public abstract SyncPoller<PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String labName, String name)
Redeploy a virtual machine This operation can take a while to complete.
Parameters:
Returns:
beginRedeploy
public abstract SyncPoller<PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String labName, String name, Context context)
Redeploy a virtual machine This operation can take a while to complete.
Parameters:
Returns:
beginResize
public abstract SyncPoller<PollResult<Void>,Void> beginResize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)
Resize Virtual Machine. This operation can take a while to complete.
Parameters:
Returns:
beginResize
public abstract SyncPoller<PollResult<Void>,Void> beginResize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, Context context)
Resize Virtual Machine. This operation can take a while to complete.
Parameters:
Returns:
beginRestart
public abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String labName, String name)
Restart a virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginRestart
public abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String labName, String name, Context context)
Restart a virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginStart
public abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String name)
Start a virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginStart
public abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String name, Context context)
Start a virtual machine. This operation can take a while to complete.
Parameters:
Returns:
beginStop
public abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String name)
Stop a virtual machine This operation can take a while to complete.
Parameters:
Returns:
beginStop
public abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String name, Context context)
Stop a virtual machine This operation can take a while to complete.
Parameters:
Returns:
beginTransferDisks
public abstract SyncPoller<PollResult<Void>,Void> beginTransferDisks(String resourceGroupName, String labName, String name)
Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.
Parameters:
Returns:
beginTransferDisks
public abstract SyncPoller<PollResult<Void>,Void> beginTransferDisks(String resourceGroupName, String labName, String name, Context context)
Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.
Parameters:
Returns:
beginUnClaim
public abstract SyncPoller<PollResult<Void>,Void> beginUnClaim(String resourceGroupName, String labName, String name)
Release ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
Returns:
beginUnClaim
public abstract SyncPoller<PollResult<Void>,Void> beginUnClaim(String resourceGroupName, String labName, String name, Context context)
Release ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
Returns:
claim
public abstract void claim(String resourceGroupName, String labName, String name)
Take ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
claim
public abstract void claim(String resourceGroupName, String labName, String name, Context context)
Take ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
createOrUpdate
public abstract LabVirtualMachineInner createOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine)
Create or replace an existing virtual machine. This operation can take a while to complete.
Parameters:
Returns:
createOrUpdate
public abstract LabVirtualMachineInner createOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, Context context)
Create or replace an existing virtual machine. This operation can take a while to complete.
Parameters:
Returns:
delete
public abstract void delete(String resourceGroupName, String labName, String name)
Delete virtual machine. This operation can take a while to complete.
Parameters:
delete
public abstract void delete(String resourceGroupName, String labName, String name, Context context)
Delete virtual machine. This operation can take a while to complete.
Parameters:
detachDataDisk
public abstract void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties)
Detach the specified disk from the virtual machine. This operation can take a while to complete.
Parameters:
detachDataDisk
public abstract void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, Context context)
Detach the specified disk from the virtual machine. This operation can take a while to complete.
Parameters:
get
public abstract LabVirtualMachineInner get(String resourceGroupName, String labName, String name)
Get virtual machine.
Parameters:
Returns:
getRdpFileContents
public abstract RdpConnectionInner getRdpFileContents(String resourceGroupName, String labName, String name)
Gets a string that represents the contents of the RDP file for the virtual machine.
Parameters:
Returns:
getRdpFileContentsWithResponse
public abstract Response<RdpConnectionInner> getRdpFileContentsWithResponse(String resourceGroupName, String labName, String name, Context context)
Gets a string that represents the contents of the RDP file for the virtual machine.
Parameters:
Returns:
getWithResponse
public abstract Response<LabVirtualMachineInner> getWithResponse(String resourceGroupName, String labName, String name, String expand, Context context)
Get virtual machine.
Parameters:
Returns:
list
public abstract PagedIterable<LabVirtualMachineInner> list(String resourceGroupName, String labName)
List virtual machines in a given lab.
Parameters:
Returns:
list
public abstract PagedIterable<LabVirtualMachineInner> list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, Context context)
List virtual machines in a given lab.
Parameters:
Returns:
listApplicableSchedules
public abstract ApplicableScheduleInner listApplicableSchedules(String resourceGroupName, String labName, String name)
Lists the applicable start/stop schedules, if any.
Parameters:
Returns:
listApplicableSchedulesWithResponse
public abstract Response<ApplicableScheduleInner> listApplicableSchedulesWithResponse(String resourceGroupName, String labName, String name, Context context)
Lists the applicable start/stop schedules, if any.
Parameters:
Returns:
redeploy
public abstract void redeploy(String resourceGroupName, String labName, String name)
Redeploy a virtual machine This operation can take a while to complete.
Parameters:
redeploy
public abstract void redeploy(String resourceGroupName, String labName, String name, Context context)
Redeploy a virtual machine This operation can take a while to complete.
Parameters:
resize
public abstract void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)
Resize Virtual Machine. This operation can take a while to complete.
Parameters:
resize
public abstract void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, Context context)
Resize Virtual Machine. This operation can take a while to complete.
Parameters:
restart
public abstract void restart(String resourceGroupName, String labName, String name)
Restart a virtual machine. This operation can take a while to complete.
Parameters:
restart
public abstract void restart(String resourceGroupName, String labName, String name, Context context)
Restart a virtual machine. This operation can take a while to complete.
Parameters:
start
public abstract void start(String resourceGroupName, String labName, String name)
Start a virtual machine. This operation can take a while to complete.
Parameters:
start
public abstract void start(String resourceGroupName, String labName, String name, Context context)
Start a virtual machine. This operation can take a while to complete.
Parameters:
stop
public abstract void stop(String resourceGroupName, String labName, String name)
Stop a virtual machine This operation can take a while to complete.
Parameters:
stop
public abstract void stop(String resourceGroupName, String labName, String name, Context context)
Stop a virtual machine This operation can take a while to complete.
Parameters:
transferDisks
public abstract void transferDisks(String resourceGroupName, String labName, String name)
Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.
Parameters:
transferDisks
public abstract void transferDisks(String resourceGroupName, String labName, String name, Context context)
Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.
Parameters:
unClaim
public abstract void unClaim(String resourceGroupName, String labName, String name)
Release ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
unClaim
public abstract void unClaim(String resourceGroupName, String labName, String name, Context context)
Release ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
update
public abstract LabVirtualMachineInner update(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine)
Allows modifying tags of virtual machines. All other properties will be ignored.
Parameters:
Returns:
updateWithResponse
public abstract Response<LabVirtualMachineInner> updateWithResponse(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine, Context context)
Allows modifying tags of virtual machines. All other properties will be ignored.
Parameters:
Returns: