public class VirtualMachineOperationsImpl extends Object implements ServiceOperations<ComputeManagementClientImpl>, VirtualMachineOperations
| Modifier and Type | Method and Description |
|---|---|
ComputeOperationResponse |
beginCapturing(String resourceGroupName,
String vmName,
VirtualMachineCaptureParameters parameters)
Captures the VM by copying VirtualHardDisks of the VM and outputs a
template that can be used to create similar VMs.
|
Future<ComputeOperationResponse> |
beginCapturingAsync(String resourceGroupName,
String vmName,
VirtualMachineCaptureParameters parameters)
Captures the VM by copying VirtualHardDisks of the VM and outputs a
template that can be used to create similar VMs.
|
VirtualMachineCreateOrUpdateResponse |
beginCreatingOrUpdating(String resourceGroupName,
VirtualMachine parameters)
The operation to create or update a virtual machine.
|
Future<VirtualMachineCreateOrUpdateResponse> |
beginCreatingOrUpdatingAsync(String resourceGroupName,
VirtualMachine parameters)
The operation to create or update a virtual machine.
|
ComputeOperationResponse |
beginDeallocating(String resourceGroupName,
String vmName)
Shuts down the Virtual Machine and releases the compute resources.
|
Future<ComputeOperationResponse> |
beginDeallocatingAsync(String resourceGroupName,
String vmName)
Shuts down the Virtual Machine and releases the compute resources.
|
DeleteOperationResponse |
beginDeleting(String resourceGroupName,
String vmName)
The operation to delete a virtual machine.
|
Future<DeleteOperationResponse> |
beginDeletingAsync(String resourceGroupName,
String vmName)
The operation to delete a virtual machine.
|
ComputeOperationResponse |
beginPoweringOff(String resourceGroupName,
String vmName)
The operation to power off (stop) a virtual machine.
|
Future<ComputeOperationResponse> |
beginPoweringOffAsync(String resourceGroupName,
String vmName)
The operation to power off (stop) a virtual machine.
|
ComputeOperationResponse |
beginRestarting(String resourceGroupName,
String vmName)
The operation to restart a virtual machine.
|
Future<ComputeOperationResponse> |
beginRestartingAsync(String resourceGroupName,
String vmName)
The operation to restart a virtual machine.
|
ComputeOperationResponse |
beginStarting(String resourceGroupName,
String vmName)
The operation to start a virtual machine.
|
Future<ComputeOperationResponse> |
beginStartingAsync(String resourceGroupName,
String vmName)
The operation to start a virtual machine.
|
ComputeLongRunningOperationResponse |
capture(String resourceGroupName,
String vmName,
VirtualMachineCaptureParameters parameters)
Captures the VM by copying VirtualHardDisks of the VM and outputs a
template that can be used to create similar VMs.
|
Future<ComputeLongRunningOperationResponse> |
captureAsync(String resourceGroupName,
String vmName,
VirtualMachineCaptureParameters parameters)
Captures the VM by copying VirtualHardDisks of the VM and outputs a
template that can be used to create similar VMs.
|
ComputeLongRunningOperationResponse |
createOrUpdate(String resourceGroupName,
VirtualMachine parameters)
The operation to create or update a virtual machine.
|
Future<ComputeLongRunningOperationResponse> |
createOrUpdateAsync(String resourceGroupName,
VirtualMachine parameters)
The operation to create or update a virtual machine.
|
ComputeLongRunningOperationResponse |
deallocate(String resourceGroupName,
String vmName)
Shuts down the Virtual Machine and releases the compute resources.
|
Future<ComputeLongRunningOperationResponse> |
deallocateAsync(String resourceGroupName,
String vmName)
Shuts down the Virtual Machine and releases the compute resources.
|
DeleteOperationResponse |
delete(String resourceGroupName,
String vmName)
The operation to delete a virtual machine.
|
Future<DeleteOperationResponse> |
deleteAsync(String resourceGroupName,
String vmName)
The operation to delete a virtual machine.
|
OperationResponse |
generalize(String resourceGroupName,
String vmName)
Sets the state of the VM as Generalized.
|
Future<OperationResponse> |
generalizeAsync(String resourceGroupName,
String vmName)
Sets the state of the VM as Generalized.
|
VirtualMachineGetResponse |
get(String resourceGroupName,
String vmName)
The operation to get a virtual machine.
|
Future<VirtualMachineGetResponse> |
getAsync(String resourceGroupName,
String vmName)
The operation to get a virtual machine.
|
ComputeManagementClientImpl |
getClient()
Gets a reference to the
microsoft.azure.management.compute.ComputeManagementClientImpl.
|
VirtualMachineGetResponse |
getWithInstanceView(String resourceGroupName,
String vmName)
The operation to get a virtual machine along with its instance view.
|
Future<VirtualMachineGetResponse> |
getWithInstanceViewAsync(String resourceGroupName,
String vmName)
The operation to get a virtual machine along with its instance view.
|
VirtualMachineListResponse |
list(String resourceGroupName)
The operation to list virtual machines under a resource group.
|
VirtualMachineListResponse |
listAll(ListParameters parameters)
Gets the list of Virtual Machines in the subscription.
|
Future<VirtualMachineListResponse> |
listAllAsync(ListParameters parameters)
Gets the list of Virtual Machines in the subscription.
|
Future<VirtualMachineListResponse> |
listAsync(String resourceGroupName)
The operation to list virtual machines under a resource group.
|
VirtualMachineSizeListResponse |
listAvailableSizes(String resourceGroupName,
String vmName)
Lists virtual-machine-sizes available to be used for a virtual machine.
|
Future<VirtualMachineSizeListResponse> |
listAvailableSizesAsync(String resourceGroupName,
String vmName)
Lists virtual-machine-sizes available to be used for a virtual machine.
|
VirtualMachineListResponse |
listNext(String nextLink)
Gets the next page of Virtual Machines.
|
Future<VirtualMachineListResponse> |
listNextAsync(String nextLink)
Gets the next page of Virtual Machines.
|
ComputeLongRunningOperationResponse |
powerOff(String resourceGroupName,
String vmName)
The operation to power off (stop) a virtual machine.
|
Future<ComputeLongRunningOperationResponse> |
powerOffAsync(String resourceGroupName,
String vmName)
The operation to power off (stop) a virtual machine.
|
ComputeLongRunningOperationResponse |
restart(String resourceGroupName,
String vmName)
The operation to restart a virtual machine.
|
Future<ComputeLongRunningOperationResponse> |
restartAsync(String resourceGroupName,
String vmName)
The operation to restart a virtual machine.
|
ComputeLongRunningOperationResponse |
start(String resourceGroupName,
String vmName)
The operation to start a virtual machine.
|
Future<ComputeLongRunningOperationResponse> |
startAsync(String resourceGroupName,
String vmName)
The operation to start a virtual machine.
|
public ComputeManagementClientImpl getClient()
getClient in interface ServiceOperations<ComputeManagementClientImpl>public Future<ComputeOperationResponse> beginCapturingAsync(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters)
beginCapturingAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.parameters - Required. Parameters supplied to the Capture Virtual
Machine operation.public ComputeOperationResponse beginCapturing(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters) throws IOException, ServiceException
beginCapturing in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.parameters - Required. Parameters supplied to the Capture Virtual
Machine operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<VirtualMachineCreateOrUpdateResponse> beginCreatingOrUpdatingAsync(String resourceGroupName, VirtualMachine parameters)
beginCreatingOrUpdatingAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.parameters - Required. Parameters supplied to the Create Virtual
Machine operation.public VirtualMachineCreateOrUpdateResponse beginCreatingOrUpdating(String resourceGroupName, VirtualMachine parameters) throws IOException, ServiceException, URISyntaxException
beginCreatingOrUpdating in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.parameters - Required. Parameters supplied to the Create Virtual
Machine operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<ComputeOperationResponse> beginDeallocatingAsync(String resourceGroupName, String vmName)
beginDeallocatingAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public ComputeOperationResponse beginDeallocating(String resourceGroupName, String vmName) throws IOException, ServiceException
beginDeallocating in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<DeleteOperationResponse> beginDeletingAsync(String resourceGroupName, String vmName)
beginDeletingAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public DeleteOperationResponse beginDeleting(String resourceGroupName, String vmName) throws IOException, ServiceException
beginDeleting in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<ComputeOperationResponse> beginPoweringOffAsync(String resourceGroupName, String vmName)
beginPoweringOffAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public ComputeOperationResponse beginPoweringOff(String resourceGroupName, String vmName) throws IOException, ServiceException
beginPoweringOff in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<ComputeOperationResponse> beginRestartingAsync(String resourceGroupName, String vmName)
beginRestartingAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public ComputeOperationResponse beginRestarting(String resourceGroupName, String vmName) throws IOException, ServiceException
beginRestarting in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<ComputeOperationResponse> beginStartingAsync(String resourceGroupName, String vmName)
beginStartingAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public ComputeOperationResponse beginStarting(String resourceGroupName, String vmName) throws IOException, ServiceException
beginStarting in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<ComputeLongRunningOperationResponse> captureAsync(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters)
captureAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.parameters - Required. Parameters supplied to the Capture Virtual
Machine operation.public ComputeLongRunningOperationResponse capture(String resourceGroupName, String vmName, VirtualMachineCaptureParameters parameters) throws InterruptedException, ExecutionException, IOException
capture in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.parameters - Required. Parameters supplied to the Capture Virtual
Machine operation.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.public Future<ComputeLongRunningOperationResponse> createOrUpdateAsync(String resourceGroupName, VirtualMachine parameters)
createOrUpdateAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.parameters - Required. Parameters supplied to the Create Virtual
Machine operation.public ComputeLongRunningOperationResponse createOrUpdate(String resourceGroupName, VirtualMachine parameters) throws IOException, ServiceException, InterruptedException, ExecutionException
createOrUpdate in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.parameters - Required. Parameters supplied to the Create Virtual
Machine operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.public Future<ComputeLongRunningOperationResponse> deallocateAsync(String resourceGroupName, String vmName)
deallocateAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public ComputeLongRunningOperationResponse deallocate(String resourceGroupName, String vmName) throws InterruptedException, ExecutionException, IOException
deallocate in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.public Future<DeleteOperationResponse> deleteAsync(String resourceGroupName, String vmName)
deleteAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public DeleteOperationResponse delete(String resourceGroupName, String vmName) throws IOException, ServiceException, InterruptedException, ExecutionException
delete in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.public Future<OperationResponse> generalizeAsync(String resourceGroupName, String vmName)
generalizeAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public OperationResponse generalize(String resourceGroupName, String vmName) throws IOException, ServiceException
generalize in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<VirtualMachineGetResponse> getAsync(String resourceGroupName, String vmName)
getAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public VirtualMachineGetResponse get(String resourceGroupName, String vmName) throws IOException, ServiceException, URISyntaxException
get in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<VirtualMachineGetResponse> getWithInstanceViewAsync(String resourceGroupName, String vmName)
getWithInstanceViewAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public VirtualMachineGetResponse getWithInstanceView(String resourceGroupName, String vmName) throws IOException, ServiceException, URISyntaxException
getWithInstanceView in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<VirtualMachineListResponse> listAsync(String resourceGroupName)
listAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.public VirtualMachineListResponse list(String resourceGroupName) throws IOException, ServiceException, URISyntaxException
list in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<VirtualMachineListResponse> listAllAsync(ListParameters parameters)
listAllAsync in interface VirtualMachineOperationsparameters - Optional.public VirtualMachineListResponse listAll(ListParameters parameters) throws IOException, ServiceException, URISyntaxException
listAll in interface VirtualMachineOperationsparameters - Optional.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<VirtualMachineSizeListResponse> listAvailableSizesAsync(String resourceGroupName, String vmName)
listAvailableSizesAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public VirtualMachineSizeListResponse listAvailableSizes(String resourceGroupName, String vmName) throws IOException, ServiceException
listAvailableSizes in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.public Future<VirtualMachineListResponse> listNextAsync(String nextLink)
listNextAsync in interface VirtualMachineOperationsnextLink - Required. NextLink from the previous successful call to
ListVirtualMachines operation.public VirtualMachineListResponse listNext(String nextLink) throws IOException, ServiceException, URISyntaxException
listNext in interface VirtualMachineOperationsnextLink - Required. NextLink from the previous successful call to
ListVirtualMachines operation.IOException - Signals that an I/O exception of some sort has
occurred. This class is the general class of exceptions produced by
failed or interrupted I/O operations.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<ComputeLongRunningOperationResponse> powerOffAsync(String resourceGroupName, String vmName)
powerOffAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public ComputeLongRunningOperationResponse powerOff(String resourceGroupName, String vmName) throws InterruptedException, ExecutionException, IOException
powerOff in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.public Future<ComputeLongRunningOperationResponse> restartAsync(String resourceGroupName, String vmName)
restartAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public ComputeLongRunningOperationResponse restart(String resourceGroupName, String vmName) throws InterruptedException, ExecutionException, IOException
restart in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request.public Future<ComputeLongRunningOperationResponse> startAsync(String resourceGroupName, String vmName)
startAsync in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.public ComputeLongRunningOperationResponse start(String resourceGroupName, String vmName) throws InterruptedException, ExecutionException, IOException
start in interface VirtualMachineOperationsresourceGroupName - Required. The name of the resource group.vmName - Required. The name of the virtual machine.InterruptedException - Thrown when a thread is waiting, sleeping,
or otherwise occupied, and the thread is interrupted, either before or
during the activity. Occasionally a method may wish to test whether the
current thread has been interrupted, and if so, to immediately throw
this exception. The following code can be used to achieve this effect:ExecutionException - Thrown when attempting to retrieve the result
of a task that aborted by throwing an exception. This exception can be
inspected using the Throwable.getCause() method.IOException - Thrown if there was an error setting up tracing for
the request./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/