public class VirtualMachineDiskOperationsImpl extends Object implements ServiceOperations<ComputeManagementClientImpl>, VirtualMachineDiskOperations
| Modifier and Type | Method and Description |
|---|---|
OperationResponse |
beginCreatingDataDisk(String serviceName,
String deploymentName,
String roleName,
VirtualMachineDataDiskCreateParameters parameters)
The Create Data Disk operation adds a data disk to a virtual machine.
|
Future<OperationResponse> |
beginCreatingDataDiskAsync(String serviceName,
String deploymentName,
String roleName,
VirtualMachineDataDiskCreateParameters parameters)
The Create Data Disk operation adds a data disk to a virtual machine.
|
OperationResponse |
beginDeletingDataDisk(String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber,
boolean deleteFromStorage)
The Begin Deleting Data Disk operation removes the specified data disk
from a virtual machine.
|
Future<OperationResponse> |
beginDeletingDataDiskAsync(String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber,
boolean deleteFromStorage)
The Begin Deleting Data Disk operation removes the specified data disk
from a virtual machine.
|
OperationStatusResponse |
createDataDisk(String serviceName,
String deploymentName,
String roleName,
VirtualMachineDataDiskCreateParameters parameters)
The Create Data Disk operation adds a data disk to a virtual machine.
|
Future<OperationStatusResponse> |
createDataDiskAsync(String serviceName,
String deploymentName,
String roleName,
VirtualMachineDataDiskCreateParameters parameters)
The Create Data Disk operation adds a data disk to a virtual machine.
|
VirtualMachineDiskCreateResponse |
createDisk(VirtualMachineDiskCreateParameters parameters)
The Create Disk operation adds a disk to the user image repository.
|
Future<VirtualMachineDiskCreateResponse> |
createDiskAsync(VirtualMachineDiskCreateParameters parameters)
The Create Disk operation adds a disk to the user image repository.
|
OperationStatusResponse |
deleteDataDisk(String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber,
boolean deleteFromStorage)
The Delete Data Disk operation removes the specified data disk from a
virtual machine.
|
Future<OperationStatusResponse> |
deleteDataDiskAsync(String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber,
boolean deleteFromStorage)
The Delete Data Disk operation removes the specified data disk from a
virtual machine.
|
OperationResponse |
deleteDisk(String name,
boolean deleteFromStorage)
The Delete Disk operation deletes the specified data or operating system
disk from your image repository.
|
Future<OperationResponse> |
deleteDiskAsync(String name,
boolean deleteFromStorage)
The Delete Disk operation deletes the specified data or operating system
disk from your image repository.
|
ComputeManagementClientImpl |
getClient()
Gets a reference to the
microsoft.windowsazure.management.compute.ComputeManagementClientImpl.
|
VirtualMachineDataDiskGetResponse |
getDataDisk(String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber)
The Get Data Disk operation retrieves the specified data disk from a
virtual machine.
|
Future<VirtualMachineDataDiskGetResponse> |
getDataDiskAsync(String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber)
The Get Data Disk operation retrieves the specified data disk from a
virtual machine.
|
VirtualMachineDiskGetResponse |
getDisk(String name)
The Get Disk operation retrieves a disk from the user image repository.
|
Future<VirtualMachineDiskGetResponse> |
getDiskAsync(String name)
The Get Disk operation retrieves a disk from the user image repository.
|
VirtualMachineDiskListResponse |
listDisks()
The List Disks operation retrieves a list of the disks in your image
repository.
|
Future<VirtualMachineDiskListResponse> |
listDisksAsync()
The List Disks operation retrieves a list of the disks in your image
repository.
|
OperationResponse |
updateDataDisk(String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber,
VirtualMachineDataDiskUpdateParameters parameters)
The Update Data Disk operation updates the specified data disk attached
to the specified virtual machine.
|
Future<OperationResponse> |
updateDataDiskAsync(String serviceName,
String deploymentName,
String roleName,
int logicalUnitNumber,
VirtualMachineDataDiskUpdateParameters parameters)
The Update Data Disk operation updates the specified data disk attached
to the specified virtual machine.
|
VirtualMachineDiskUpdateResponse |
updateDisk(String name,
VirtualMachineDiskUpdateParameters parameters)
The Add Disk operation adds a disk to the user image repository.
|
Future<VirtualMachineDiskUpdateResponse> |
updateDiskAsync(String name,
VirtualMachineDiskUpdateParameters parameters)
The Add Disk operation adds a disk to the user image repository.
|
public ComputeManagementClientImpl getClient()
getClient in interface ServiceOperations<ComputeManagementClientImpl>public Future<OperationResponse> beginCreatingDataDiskAsync(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters)
beginCreatingDataDiskAsync in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to add the data disk to.parameters - Required. Parameters supplied to the Create Virtual
Machine Data Disk operation.public OperationResponse beginCreatingDataDisk(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
beginCreatingDataDisk in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to add the data disk to.parameters - Required. Parameters supplied to the Create Virtual
Machine Data Disk operation.ParserConfigurationException - Thrown if there was an error
configuring the parser for the response body.SAXException - Thrown if there was an error parsing the response
body.TransformerException - Thrown if there was an error creating the
DOM transformer.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<OperationResponse> beginDeletingDataDiskAsync(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, boolean deleteFromStorage)
beginDeletingDataDiskAsync in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to delete the data disk
from.logicalUnitNumber - Required. The logical unit number of the disk.deleteFromStorage - Required. Specifies that the source blob for the
disk should also be deleted from storage.public OperationResponse beginDeletingDataDisk(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, boolean deleteFromStorage) throws IOException, ServiceException
beginDeletingDataDisk in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to delete the data disk
from.logicalUnitNumber - Required. The logical unit number of the disk.deleteFromStorage - Required. Specifies that the source blob for the
disk should also be deleted from storage.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<OperationStatusResponse> createDataDiskAsync(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters)
createDataDiskAsync in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to add the data disk to.parameters - Required. Parameters supplied to the Create Virtual
Machine Data Disk operation.public OperationStatusResponse createDataDisk(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException
createDataDisk in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to add the data disk to.parameters - Required. Parameters supplied to the Create Virtual
Machine Data Disk 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.ServiceException - Thrown if the server returned an error for the
request.IOException - Thrown if there was an error setting up tracing for
the request.public Future<VirtualMachineDiskCreateResponse> createDiskAsync(VirtualMachineDiskCreateParameters parameters)
createDiskAsync in interface VirtualMachineDiskOperationsparameters - Required. Parameters supplied to the Create Virtual
Machine Disk operation.public VirtualMachineDiskCreateResponse createDisk(VirtualMachineDiskCreateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException, URISyntaxException
createDisk in interface VirtualMachineDiskOperationsparameters - Required. Parameters supplied to the Create Virtual
Machine Disk operation.ParserConfigurationException - Thrown if there was an error
configuring the parser for the response body.SAXException - Thrown if there was an error parsing the response
body.TransformerException - Thrown if there was an error creating the
DOM transformer.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<OperationStatusResponse> deleteDataDiskAsync(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, boolean deleteFromStorage)
deleteDataDiskAsync in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to delete the data disk
from.logicalUnitNumber - Required. The logical unit number of the disk.deleteFromStorage - Required. Specifies that the source blob for the
disk should also be deleted from storage.public OperationStatusResponse deleteDataDisk(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, boolean deleteFromStorage) throws InterruptedException, ExecutionException, ServiceException, IOException
deleteDataDisk in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to delete the data disk
from.logicalUnitNumber - Required. The logical unit number of the disk.deleteFromStorage - Required. Specifies that the source blob for the
disk should also be deleted from storage.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.ServiceException - Thrown if the server returned an error for the
request.IOException - Thrown if there was an error setting up tracing for
the request.public Future<OperationResponse> deleteDiskAsync(String name, boolean deleteFromStorage)
deleteDiskAsync in interface VirtualMachineDiskOperationsname - Required. The name of the disk to delete.deleteFromStorage - Required. Specifies that the source blob for the
disk should also be deleted from storage.public OperationResponse deleteDisk(String name, boolean deleteFromStorage) throws IOException, ServiceException
deleteDisk in interface VirtualMachineDiskOperationsname - Required. The name of the disk to delete.deleteFromStorage - Required. Specifies that the source blob for the
disk should also be deleted from storage.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<VirtualMachineDataDiskGetResponse> getDataDiskAsync(String serviceName, String deploymentName, String roleName, int logicalUnitNumber)
getDataDiskAsync in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role.logicalUnitNumber - Required. The logical unit number of the disk.public VirtualMachineDataDiskGetResponse getDataDisk(String serviceName, String deploymentName, String roleName, int logicalUnitNumber) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
getDataDisk in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role.logicalUnitNumber - Required. The logical unit number of the disk.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.ParserConfigurationException - Thrown if there was a serious
configuration error with the document parser.SAXException - Thrown if there was an error parsing the XML
response.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<VirtualMachineDiskGetResponse> getDiskAsync(String name)
getDiskAsync in interface VirtualMachineDiskOperationsname - Required. The name of the disk.public VirtualMachineDiskGetResponse getDisk(String name) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
getDisk in interface VirtualMachineDiskOperationsname - Required. The name of the disk.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.ParserConfigurationException - Thrown if there was a serious
configuration error with the document parser.SAXException - Thrown if there was an error parsing the XML
response.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<VirtualMachineDiskListResponse> listDisksAsync()
listDisksAsync in interface VirtualMachineDiskOperationspublic VirtualMachineDiskListResponse listDisks() throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
listDisks in interface VirtualMachineDiskOperationsIOException - 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.ParserConfigurationException - Thrown if there was a serious
configuration error with the document parser.SAXException - Thrown if there was an error parsing the XML
response.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public Future<OperationResponse> updateDataDiskAsync(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, VirtualMachineDataDiskUpdateParameters parameters)
updateDataDiskAsync in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to add the data disk to.logicalUnitNumber - Required. The logical unit number of the disk.parameters - Required. Parameters supplied to the Update Virtual
Machine Data Disk operation.public OperationResponse updateDataDisk(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, VirtualMachineDataDiskUpdateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
updateDataDisk in interface VirtualMachineDiskOperationsserviceName - Required. The name of your service.deploymentName - Required. The name of the deployment.roleName - Required. The name of the role to add the data disk to.logicalUnitNumber - Required. The logical unit number of the disk.parameters - Required. Parameters supplied to the Update Virtual
Machine Data Disk operation.ParserConfigurationException - Thrown if there was an error
configuring the parser for the response body.SAXException - Thrown if there was an error parsing the response
body.TransformerException - Thrown if there was an error creating the
DOM transformer.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<VirtualMachineDiskUpdateResponse> updateDiskAsync(String name, VirtualMachineDiskUpdateParameters parameters)
updateDiskAsync in interface VirtualMachineDiskOperationsname - Required. The name of the disk being updated.parameters - Required. Parameters supplied to the Update Virtual
Machine Disk operation.public VirtualMachineDiskUpdateResponse updateDisk(String name, VirtualMachineDiskUpdateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException, URISyntaxException
updateDisk in interface VirtualMachineDiskOperationsname - Required. The name of the disk being updated.parameters - Required. Parameters supplied to the Update Virtual
Machine Disk operation.ParserConfigurationException - Thrown if there was an error
configuring the parser for the response body.SAXException - Thrown if there was an error parsing the response
body.TransformerException - Thrown if there was an error creating the
DOM transformer.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./**
* 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.
*/