VirtualMachinesClient Interface

public interface VirtualMachinesClient

An instance of this class provides access to all the operations defined in VirtualMachinesClient.

Method Summary

Modifier and Type Method and Description
abstract VirtualMachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name)

The operation to assess patches on a vSphere VMware machine identity in Azure.

abstract VirtualMachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name, Context context)

The operation to assess patches on a vSphere VMware machine identity in Azure.

abstract SyncPoller<PollResult<VirtualMachineAssessPatchesResultInner>,VirtualMachineAssessPatchesResultInner> beginAssessPatches(String resourceGroupName, String name)

The operation to assess patches on a vSphere VMware machine identity in Azure.

abstract SyncPoller<PollResult<VirtualMachineAssessPatchesResultInner>,VirtualMachineAssessPatchesResultInner> beginAssessPatches(String resourceGroupName, String name, Context context)

The operation to assess patches on a vSphere VMware machine identity in Azure.

abstract SyncPoller<PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body)

Implements virtual machine PUT method.

abstract SyncPoller<PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, Context context)

Implements virtual machine PUT method.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain)

Deletes an virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, Context context)

Deletes an virtual machine.

abstract SyncPoller<PollResult<VirtualMachineInstallPatchesResultInner>,VirtualMachineInstallPatchesResultInner> beginInstallPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput)

The operation to install patches on a vSphere VMware machine identity in Azure.

abstract SyncPoller<PollResult<VirtualMachineInstallPatchesResultInner>,VirtualMachineInstallPatchesResultInner> beginInstallPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput, Context context)

The operation to install patches on a vSphere VMware machine identity in Azure.

abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String virtualMachineName)

Implements the operation to restart a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String virtualMachineName, Context context)

Implements the operation to restart a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String virtualMachineName)

Implements the operation to start a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String virtualMachineName, Context context)

Implements the operation to start a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body)

Implements the operation to stop a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, Context context)

Implements the operation to stop a virtual machine.

abstract SyncPoller<PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body)

Updates a virtual machine.

abstract SyncPoller<PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, Context context)

Updates a virtual machine.

abstract VirtualMachineInner create(String resourceGroupName, String virtualMachineName)

Implements virtual machine PUT method.

abstract VirtualMachineInner create(String resourceGroupName, String virtualMachineName, VirtualMachineInner body)

Implements virtual machine PUT method.

abstract VirtualMachineInner create(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, Context context)

Implements virtual machine PUT method.

abstract void delete(String resourceGroupName, String virtualMachineName)

Deletes an virtual machine.

abstract void delete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain)

Deletes an virtual machine.

abstract void delete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, Context context)

Deletes an virtual machine.

abstract VirtualMachineInner getByResourceGroup(String resourceGroupName, String virtualMachineName)

Gets a virtual machine.

abstract Response<VirtualMachineInner> getByResourceGroupWithResponse(String resourceGroupName, String virtualMachineName, Context context)

Gets a virtual machine.

abstract VirtualMachineInstallPatchesResultInner installPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput)

The operation to install patches on a vSphere VMware machine identity in Azure.

abstract VirtualMachineInstallPatchesResultInner installPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput, Context context)

The operation to install patches on a vSphere VMware machine identity in Azure.

abstract PagedIterable<VirtualMachineInner> list()

Implements GET virtualMachines in a subscription.

abstract PagedIterable<VirtualMachineInner> list(Context context)

Implements GET virtualMachines in a subscription.

abstract PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName)

Implements GET virtualMachines in a resource group.

abstract PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName, Context context)

Implements GET virtualMachines in a resource group.

abstract void restart(String resourceGroupName, String virtualMachineName)

Implements the operation to restart a virtual machine.

abstract void restart(String resourceGroupName, String virtualMachineName, Context context)

Implements the operation to restart a virtual machine.

abstract void start(String resourceGroupName, String virtualMachineName)

Implements the operation to start a virtual machine.

abstract void start(String resourceGroupName, String virtualMachineName, Context context)

Implements the operation to start a virtual machine.

abstract void stop(String resourceGroupName, String virtualMachineName)

Implements the operation to stop a virtual machine.

abstract void stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body)

Implements the operation to stop a virtual machine.

abstract void stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, Context context)

Implements the operation to stop a virtual machine.

abstract VirtualMachineInner update(String resourceGroupName, String virtualMachineName)

Updates a virtual machine.

abstract VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body)

Updates a virtual machine.

abstract VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, Context context)

Updates a virtual machine.

Method Details

assessPatches

public abstract VirtualMachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name)

The operation to assess patches on a vSphere VMware machine identity in Azure.

Parameters:

resourceGroupName - The name of the resource group.
name - The name of the vSphere VMware machine.

Returns:

describes the properties of an AssessPatches result.

assessPatches

public abstract VirtualMachineAssessPatchesResultInner assessPatches(String resourceGroupName, String name, Context context)

The operation to assess patches on a vSphere VMware machine identity in Azure.

Parameters:

resourceGroupName - The name of the resource group.
name - The name of the vSphere VMware machine.
context - The context to associate with this operation.

Returns:

describes the properties of an AssessPatches result.

beginAssessPatches

public abstract SyncPoller<PollResult<VirtualMachineAssessPatchesResultInner>,VirtualMachineAssessPatchesResultInner> beginAssessPatches(String resourceGroupName, String name)

The operation to assess patches on a vSphere VMware machine identity in Azure.

Parameters:

resourceGroupName - The name of the resource group.
name - The name of the vSphere VMware machine.

Returns:

the SyncPoller<T,U> for polling of describes the properties of an AssessPatches result.

beginAssessPatches

public abstract SyncPoller<PollResult<VirtualMachineAssessPatchesResultInner>,VirtualMachineAssessPatchesResultInner> beginAssessPatches(String resourceGroupName, String name, Context context)

The operation to assess patches on a vSphere VMware machine identity in Azure.

Parameters:

resourceGroupName - The name of the resource group.
name - The name of the vSphere VMware machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of describes the properties of an AssessPatches result.

beginCreate

public abstract SyncPoller<PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body)

Implements virtual machine PUT method.

Create Or Update virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Request payload.

Returns:

the SyncPoller<T,U> for polling of define the virtualMachine.

beginCreate

public abstract SyncPoller<PollResult<VirtualMachineInner>,VirtualMachineInner> beginCreate(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, Context context)

Implements virtual machine PUT method.

Create Or Update virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Request payload.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of define the virtualMachine.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain)

Deletes an virtual machine.

Implements virtual machine DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
force - Whether force delete was specified.
retain - Whether to just disable the VM from azure and retain the VM in the VMM.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, Context context)

Deletes an virtual machine.

Implements virtual machine DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
force - Whether force delete was specified.
retain - Whether to just disable the VM from azure and retain the VM in the VMM.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginInstallPatches

public abstract SyncPoller<PollResult<VirtualMachineInstallPatchesResultInner>,VirtualMachineInstallPatchesResultInner> beginInstallPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput)

The operation to install patches on a vSphere VMware machine identity in Azure.

Parameters:

resourceGroupName - The name of the resource group.
name - The name of the vSphere VMware machine.
installPatchesInput - Input for InstallPatches as directly received by the API.

Returns:

the SyncPoller<T,U> for polling of the result summary of an installation operation.

beginInstallPatches

public abstract SyncPoller<PollResult<VirtualMachineInstallPatchesResultInner>,VirtualMachineInstallPatchesResultInner> beginInstallPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput, Context context)

The operation to install patches on a vSphere VMware machine identity in Azure.

Parameters:

resourceGroupName - The name of the resource group.
name - The name of the vSphere VMware machine.
installPatchesInput - Input for InstallPatches as directly received by the API.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of the result summary of an installation operation.

beginRestart

public abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String virtualMachineName)

Implements the operation to restart a virtual machine.

Restart virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginRestart

public abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String virtualMachineName, Context context)

Implements the operation to restart a virtual machine.

Restart virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginStart

public abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String virtualMachineName)

Implements the operation to start a virtual machine.

Start virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginStart

public abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String virtualMachineName, Context context)

Implements the operation to start a virtual machine.

Start virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginStop

public abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body)

Implements the operation to stop a virtual machine.

Stop virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Virtualmachine stop action payload.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginStop

public abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, Context context)

Implements the operation to stop a virtual machine.

Stop virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Virtualmachine stop action payload.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginUpdate

public abstract SyncPoller<PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body)

Updates a virtual machine.

API to update certain properties of the virtual machine resource.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Resource properties to update.

Returns:

the SyncPoller<T,U> for polling of define the virtualMachine.

beginUpdate

public abstract SyncPoller<PollResult<VirtualMachineInner>,VirtualMachineInner> beginUpdate(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, Context context)

Updates a virtual machine.

API to update certain properties of the virtual machine resource.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Resource properties to update.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of define the virtualMachine.

create

public abstract VirtualMachineInner create(String resourceGroupName, String virtualMachineName)

Implements virtual machine PUT method.

Create Or Update virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

Returns:

define the virtualMachine.

create

public abstract VirtualMachineInner create(String resourceGroupName, String virtualMachineName, VirtualMachineInner body)

Implements virtual machine PUT method.

Create Or Update virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Request payload.

Returns:

define the virtualMachine.

create

public abstract VirtualMachineInner create(String resourceGroupName, String virtualMachineName, VirtualMachineInner body, Context context)

Implements virtual machine PUT method.

Create Or Update virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Request payload.
context - The context to associate with this operation.

Returns:

define the virtualMachine.

delete

public abstract void delete(String resourceGroupName, String virtualMachineName)

Deletes an virtual machine.

Implements virtual machine DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

delete

public abstract void delete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain)

Deletes an virtual machine.

Implements virtual machine DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
force - Whether force delete was specified.
retain - Whether to just disable the VM from azure and retain the VM in the VMM.

delete

public abstract void delete(String resourceGroupName, String virtualMachineName, Boolean force, Boolean retain, Context context)

Deletes an virtual machine.

Implements virtual machine DELETE method.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
force - Whether force delete was specified.
retain - Whether to just disable the VM from azure and retain the VM in the VMM.
context - The context to associate with this operation.

getByResourceGroup

public abstract VirtualMachineInner getByResourceGroup(String resourceGroupName, String virtualMachineName)

Gets a virtual machine.

Implements virtual machine GET method.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

Returns:

define the virtualMachine.

getByResourceGroupWithResponse

public abstract Response<VirtualMachineInner> getByResourceGroupWithResponse(String resourceGroupName, String virtualMachineName, Context context)

Gets a virtual machine.

Implements virtual machine GET method.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
context - The context to associate with this operation.

Returns:

define the virtualMachine along with Response<T>.

installPatches

public abstract VirtualMachineInstallPatchesResultInner installPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput)

The operation to install patches on a vSphere VMware machine identity in Azure.

Parameters:

resourceGroupName - The name of the resource group.
name - The name of the vSphere VMware machine.
installPatchesInput - Input for InstallPatches as directly received by the API.

Returns:

the result summary of an installation operation.

installPatches

public abstract VirtualMachineInstallPatchesResultInner installPatches(String resourceGroupName, String name, VirtualMachineInstallPatchesParameters installPatchesInput, Context context)

The operation to install patches on a vSphere VMware machine identity in Azure.

Parameters:

resourceGroupName - The name of the resource group.
name - The name of the vSphere VMware machine.
installPatchesInput - Input for InstallPatches as directly received by the API.
context - The context to associate with this operation.

Returns:

the result summary of an installation operation.

list

public abstract PagedIterable<VirtualMachineInner> list()

Implements GET virtualMachines in a subscription.

List of virtualMachines in a subscription.

Returns:

list of VirtualMachines as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<VirtualMachineInner> list(Context context)

Implements GET virtualMachines in a subscription.

List of virtualMachines in a subscription.

Parameters:

context - The context to associate with this operation.

Returns:

list of VirtualMachines as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName)

Implements GET virtualMachines in a resource group.

List of virtualMachines in a resource group.

Parameters:

resourceGroupName - The Resource Group Name.

Returns:

list of VirtualMachines as paginated response with PagedIterable<T>.

listByResourceGroup

public abstract PagedIterable<VirtualMachineInner> listByResourceGroup(String resourceGroupName, Context context)

Implements GET virtualMachines in a resource group.

List of virtualMachines in a resource group.

Parameters:

resourceGroupName - The Resource Group Name.
context - The context to associate with this operation.

Returns:

list of VirtualMachines as paginated response with PagedIterable<T>.

restart

public abstract void restart(String resourceGroupName, String virtualMachineName)

Implements the operation to restart a virtual machine.

Restart virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

restart

public abstract void restart(String resourceGroupName, String virtualMachineName, Context context)

Implements the operation to restart a virtual machine.

Restart virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
context - The context to associate with this operation.

start

public abstract void start(String resourceGroupName, String virtualMachineName)

Implements the operation to start a virtual machine.

Start virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

start

public abstract void start(String resourceGroupName, String virtualMachineName, Context context)

Implements the operation to start a virtual machine.

Start virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
context - The context to associate with this operation.

stop

public abstract void stop(String resourceGroupName, String virtualMachineName)

Implements the operation to stop a virtual machine.

Stop virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

stop

public abstract void stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body)

Implements the operation to stop a virtual machine.

Stop virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Virtualmachine stop action payload.

stop

public abstract void stop(String resourceGroupName, String virtualMachineName, StopVirtualMachineOptions body, Context context)

Implements the operation to stop a virtual machine.

Stop virtual machine.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Virtualmachine stop action payload.
context - The context to associate with this operation.

update

public abstract VirtualMachineInner update(String resourceGroupName, String virtualMachineName)

Updates a virtual machine.

API to update certain properties of the virtual machine resource.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.

Returns:

define the virtualMachine.

update

public abstract VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body)

Updates a virtual machine.

API to update certain properties of the virtual machine resource.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Resource properties to update.

Returns:

define the virtualMachine.

update

public abstract VirtualMachineInner update(String resourceGroupName, String virtualMachineName, VirtualMachineUpdate body, Context context)

Updates a virtual machine.

API to update certain properties of the virtual machine resource.

Parameters:

resourceGroupName - The Resource Group Name.
virtualMachineName - Name of the virtual machine resource.
body - Resource properties to update.
context - The context to associate with this operation.

Returns:

define the virtualMachine.

Applies to