LabVirtualMachine Interface
public interface LabVirtualMachine
An immutable client-side representation of LabVirtualMachine.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract void |
addDataDisk(DataDiskProperties dataDiskProperties)
Attach a new or existing data disk to virtual machine. |
abstract void |
addDataDisk(DataDiskProperties dataDiskProperties, Context context)
Attach a new or existing data disk to virtual machine. |
abstract Boolean |
allowClaim()
Gets the allow |
abstract
Applicable |
applicableSchedule()
Gets the applicable |
abstract void |
applyArtifacts(ApplyArtifactsRequest applyArtifactsRequest)
Apply artifacts to virtual machine. |
abstract void |
applyArtifacts(ApplyArtifactsRequest applyArtifactsRequest, Context context)
Apply artifacts to virtual machine. |
abstract
Artifact |
artifactDeploymentStatus()
Gets the artifact |
abstract
List<Artifact |
artifacts()
Gets the artifacts property: The artifacts to be installed on the virtual machine. |
abstract void |
claim()
Take ownership of an existing virtual machine This operation can take a while to complete. |
abstract void |
claim(Context context)
Take ownership of an existing virtual machine This operation can take a while to complete. |
abstract String |
computeId()
Gets the compute |
abstract
Compute |
computeVm()
Gets the compute |
abstract String |
createdByUser()
Gets the created |
abstract String |
createdByUserId()
Gets the created |
abstract
Offset |
createdDate()
Gets the created |
abstract String |
customImageId()
Gets the custom |
abstract
List<Data |
dataDiskParameters()
Gets the data |
abstract void |
detachDataDisk(DetachDataDiskProperties detachDataDiskProperties)
Detach the specified disk from the virtual machine. |
abstract void |
detachDataDisk(DetachDataDiskProperties detachDataDiskProperties, Context context)
Detach the specified disk from the virtual machine. |
abstract Boolean |
disallowPublicIpAddress()
Gets the disallow |
abstract String |
environmentId()
Gets the environment |
abstract
Offset |
expirationDate()
Gets the expiration |
abstract String |
fqdn()
Gets the fqdn property: The fully-qualified domain name of the virtual machine. |
abstract
Gallery |
galleryImageReference()
Gets the gallery |
abstract
Rdp |
getRdpFileContents()
Gets a string that represents the contents of the RDP file for the virtual machine. |
abstract
Response<Rdp |
getRdpFileContentsWithResponse(Context context)
Gets a string that represents the contents of the RDP file for the virtual machine. |
abstract String |
id()
Gets the id property: Fully qualified resource Id for the resource. |
abstract
Lab |
innerModel()
Gets the inner com. |
abstract Boolean |
isAuthenticationWithSshKey()
Gets the is |
abstract String |
labSubnetName()
Gets the lab |
abstract String |
labVirtualNetworkId()
Gets the lab |
abstract String |
lastKnownPowerState()
Gets the last |
abstract
Applicable |
listApplicableSchedules()
Lists the applicable start/stop schedules, if any. |
abstract
Response<Applicable |
listApplicableSchedulesWithResponse(Context context)
Lists the applicable start/stop schedules, if any. |
abstract String |
location()
Gets the location property: The geo-location where the resource lives. |
abstract String |
name()
Gets the name property: The name of the resource. |
abstract
Network |
networkInterface()
Gets the network |
abstract String |
notes()
Gets the notes property: The notes of the virtual machine. |
abstract String |
osType()
Gets the os |
abstract String |
ownerObjectId()
Gets the owner |
abstract String |
ownerUserPrincipalName()
Gets the owner |
abstract String |
password()
Gets the password property: The password of the virtual machine administrator. |
abstract String |
planId()
Gets the plan |
abstract String |
provisioningState()
Gets the provisioning |
abstract void |
redeploy()
Redeploy a virtual machine This operation can take a while to complete. |
abstract void |
redeploy(Context context)
Redeploy a virtual machine This operation can take a while to complete. |
abstract
Lab |
refresh()
Refreshes the resource to sync with Azure. |
abstract
Lab |
refresh(Context context)
Refreshes the resource to sync with Azure. |
abstract Region |
region()
Gets the region of the resource. |
abstract String |
regionName()
Gets the name of the resource region. |
abstract void |
resize(ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)
Resize Virtual Machine. |
abstract void |
resize(ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, Context context)
Resize Virtual Machine. |
abstract String |
resourceGroupName()
Gets the name of the resource group. |
abstract void |
restart()
Restart a virtual machine. |
abstract void |
restart(Context context)
Restart a virtual machine. |
abstract
List<Schedule |
scheduleParameters()
Gets the schedule |
abstract String |
size()
Gets the size property: The size of the virtual machine. |
abstract String |
sshKey()
Gets the ssh |
abstract void |
start()
Start a virtual machine. |
abstract void |
start(Context context)
Start a virtual machine. |
abstract void |
stop()
Stop a virtual machine This operation can take a while to complete. |
abstract void |
stop(Context context)
Stop a virtual machine This operation can take a while to complete. |
abstract String |
storageType()
Gets the storage |
abstract Map<String,String> |
tags()
Gets the tags property: Resource tags. |
abstract void |
transferDisks()
Transfers all data disks attached to the virtual machine to be owned by the current user. |
abstract void |
transferDisks(Context context)
Transfers all data disks attached to the virtual machine to be owned by the current user. |
abstract String |
type()
Gets the type property: The type of the resource. |
abstract void |
unClaim()
Release ownership of an existing virtual machine This operation can take a while to complete. |
abstract void |
unClaim(Context context)
Release ownership of an existing virtual machine This operation can take a while to complete. |
abstract String |
uniqueIdentifier()
Gets the unique |
abstract Update |
update()
Begins update for the Lab |
abstract String |
username()
Gets the username property: The user name of the virtual machine. |
abstract
Virtual |
virtualMachineCreationSource()
Gets the virtual |
Method Details
addDataDisk
public abstract void addDataDisk(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(DataDiskProperties dataDiskProperties, Context context)
Attach a new or existing data disk to virtual machine. This operation can take a while to complete.
Parameters:
allowClaim
public abstract Boolean allowClaim()
Gets the allowClaim property: Indicates whether another user can take ownership of the virtual machine.
Returns:
applicableSchedule
public abstract ApplicableSchedule applicableSchedule()
Gets the applicableSchedule property: The applicable schedule for the virtual machine.
Returns:
applyArtifacts
public abstract void applyArtifacts(ApplyArtifactsRequest applyArtifactsRequest)
Apply artifacts to virtual machine. This operation can take a while to complete.
Parameters:
applyArtifacts
public abstract void applyArtifacts(ApplyArtifactsRequest applyArtifactsRequest, Context context)
Apply artifacts to virtual machine. This operation can take a while to complete.
Parameters:
artifactDeploymentStatus
public abstract ArtifactDeploymentStatusProperties artifactDeploymentStatus()
Gets the artifactDeploymentStatus property: The artifact deployment status for the virtual machine.
Returns:
artifacts
public abstract List
Gets the artifacts property: The artifacts to be installed on the virtual machine.
Returns:
claim
public abstract void claim()
Take ownership of an existing virtual machine This operation can take a while to complete.
claim
public abstract void claim(Context context)
Take ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
computeId
public abstract String computeId()
Gets the computeId property: The resource identifier (Microsoft.Compute) of the virtual machine.
Returns:
computeVm
public abstract ComputeVmProperties computeVm()
Gets the computeVm property: The compute virtual machine properties.
Returns:
createdByUser
public abstract String createdByUser()
Gets the createdByUser property: The email address of creator of the virtual machine.
Returns:
createdByUserId
public abstract String createdByUserId()
Gets the createdByUserId property: The object identifier of the creator of the virtual machine.
Returns:
createdDate
public abstract OffsetDateTime createdDate()
Gets the createdDate property: The creation date of the virtual machine.
Returns:
customImageId
public abstract String customImageId()
Gets the customImageId property: The custom image identifier of the virtual machine.
Returns:
dataDiskParameters
public abstract List
Gets the dataDiskParameters property: New or existing data disks to attach to the virtual machine after creation.
Returns:
detachDataDisk
public abstract void detachDataDisk(DetachDataDiskProperties detachDataDiskProperties)
Detach the specified disk from the virtual machine. This operation can take a while to complete.
Parameters:
detachDataDisk
public abstract void detachDataDisk(DetachDataDiskProperties detachDataDiskProperties, Context context)
Detach the specified disk from the virtual machine. This operation can take a while to complete.
Parameters:
disallowPublicIpAddress
public abstract Boolean disallowPublicIpAddress()
Gets the disallowPublicIpAddress property: Indicates whether the virtual machine is to be created without a public IP address.
Returns:
environmentId
public abstract String environmentId()
Gets the environmentId property: The resource ID of the environment that contains this virtual machine, if any.
Returns:
expirationDate
public abstract OffsetDateTime expirationDate()
Gets the expirationDate property: The expiration date for VM.
Returns:
fqdn
public abstract String fqdn()
Gets the fqdn property: The fully-qualified domain name of the virtual machine.
Returns:
galleryImageReference
public abstract GalleryImageReference galleryImageReference()
Gets the galleryImageReference property: The Microsoft Azure Marketplace image reference of the virtual machine.
Returns:
getRdpFileContents
public abstract RdpConnection getRdpFileContents()
Gets a string that represents the contents of the RDP file for the virtual machine.
Returns:
getRdpFileContentsWithResponse
public abstract Response
Gets a string that represents the contents of the RDP file for the virtual machine.
Parameters:
Returns:
id
public abstract String id()
Gets the id property: Fully qualified resource Id for the resource.
Returns:
innerModel
public abstract LabVirtualMachineInner innerModel()
Gets the inner com.azure.resourcemanager.devtestlabs.fluent.models.LabVirtualMachineInner object.
Returns:
isAuthenticationWithSshKey
public abstract Boolean isAuthenticationWithSshKey()
Gets the isAuthenticationWithSshKey property: Indicates whether this virtual machine uses an SSH key for authentication.
Returns:
labSubnetName
public abstract String labSubnetName()
Gets the labSubnetName property: The lab subnet name of the virtual machine.
Returns:
labVirtualNetworkId
public abstract String labVirtualNetworkId()
Gets the labVirtualNetworkId property: The lab virtual network identifier of the virtual machine.
Returns:
lastKnownPowerState
public abstract String lastKnownPowerState()
Gets the lastKnownPowerState property: Last known compute power state captured in DTL.
Returns:
listApplicableSchedules
public abstract ApplicableSchedule listApplicableSchedules()
Lists the applicable start/stop schedules, if any.
Returns:
listApplicableSchedulesWithResponse
public abstract Response
Lists the applicable start/stop schedules, if any.
Parameters:
Returns:
location
public abstract String location()
Gets the location property: The geo-location where the resource lives.
Returns:
name
public abstract String name()
Gets the name property: The name of the resource.
Returns:
networkInterface
public abstract NetworkInterfaceProperties networkInterface()
Gets the networkInterface property: The network interface properties.
Returns:
notes
public abstract String notes()
Gets the notes property: The notes of the virtual machine.
Returns:
osType
public abstract String osType()
Gets the osType property: The OS type of the virtual machine.
Returns:
ownerObjectId
public abstract String ownerObjectId()
Gets the ownerObjectId property: The object identifier of the owner of the virtual machine.
Returns:
ownerUserPrincipalName
public abstract String ownerUserPrincipalName()
Gets the ownerUserPrincipalName property: The user principal name of the virtual machine owner.
Returns:
password
public abstract String password()
Gets the password property: The password of the virtual machine administrator.
Returns:
planId
public abstract String planId()
Gets the planId property: The id of the plan associated with the virtual machine image.
Returns:
provisioningState
public abstract String provisioningState()
Gets the provisioningState property: The provisioning status of the resource.
Returns:
redeploy
public abstract void redeploy()
Redeploy a virtual machine This operation can take a while to complete.
redeploy
public abstract void redeploy(Context context)
Redeploy a virtual machine This operation can take a while to complete.
Parameters:
refresh
public abstract LabVirtualMachine refresh()
Refreshes the resource to sync with Azure.
Returns:
refresh
public abstract LabVirtualMachine refresh(Context context)
Refreshes the resource to sync with Azure.
Parameters:
Returns:
region
public abstract Region region()
Gets the region of the resource.
Returns:
regionName
public abstract String regionName()
Gets the name of the resource region.
Returns:
resize
public abstract void resize(ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)
Resize Virtual Machine. This operation can take a while to complete.
Parameters:
resize
public abstract void resize(ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, Context context)
Resize Virtual Machine. This operation can take a while to complete.
Parameters:
resourceGroupName
public abstract String resourceGroupName()
Gets the name of the resource group.
Returns:
restart
public abstract void restart()
Restart a virtual machine. This operation can take a while to complete.
restart
public abstract void restart(Context context)
Restart a virtual machine. This operation can take a while to complete.
Parameters:
scheduleParameters
public abstract List
Gets the scheduleParameters property: Virtual Machine schedules to be created.
Returns:
size
public abstract String size()
Gets the size property: The size of the virtual machine.
Returns:
sshKey
public abstract String sshKey()
Gets the sshKey property: The SSH key of the virtual machine administrator.
Returns:
start
public abstract void start()
Start a virtual machine. This operation can take a while to complete.
start
public abstract void start(Context context)
Start a virtual machine. This operation can take a while to complete.
Parameters:
stop
public abstract void stop()
Stop a virtual machine This operation can take a while to complete.
stop
public abstract void stop(Context context)
Stop a virtual machine This operation can take a while to complete.
Parameters:
storageType
public abstract String storageType()
Gets the storageType property: Storage type to use for virtual machine (i.e. Standard, Premium).
Returns:
tags
public abstract Map
Gets the tags property: Resource tags.
Returns:
transferDisks
public abstract void transferDisks()
Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.
transferDisks
public abstract void transferDisks(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:
type
public abstract String type()
Gets the type property: The type of the resource.
Returns:
unClaim
public abstract void unClaim()
Release ownership of an existing virtual machine This operation can take a while to complete.
unClaim
public abstract void unClaim(Context context)
Release ownership of an existing virtual machine This operation can take a while to complete.
Parameters:
uniqueIdentifier
public abstract String uniqueIdentifier()
Gets the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).
Returns:
update
public abstract LabVirtualMachine.Update update()
Begins update for the LabVirtualMachine resource.
Returns:
username
public abstract String username()
Gets the username property: The user name of the virtual machine.
Returns:
virtualMachineCreationSource
public abstract VirtualMachineCreationSource virtualMachineCreationSource()
Gets the virtualMachineCreationSource property: Tells source of creation of lab virtual machine. Output property only.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for