public interface 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.
|
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.
|
OperationResponse beginCreatingDataDisk(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
serviceName - 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.Future<OperationResponse> beginCreatingDataDiskAsync(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters)
serviceName - 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.OperationResponse beginDeletingDataDisk(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, boolean deleteFromStorage) throws IOException, ServiceException
serviceName - 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.Future<OperationResponse> beginDeletingDataDiskAsync(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, boolean deleteFromStorage)
serviceName - 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.OperationStatusResponse createDataDisk(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException
serviceName - 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.Future<OperationStatusResponse> createDataDiskAsync(String serviceName, String deploymentName, String roleName, VirtualMachineDataDiskCreateParameters parameters)
serviceName - 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.VirtualMachineDiskCreateResponse createDisk(VirtualMachineDiskCreateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException, URISyntaxException
parameters - 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.Future<VirtualMachineDiskCreateResponse> createDiskAsync(VirtualMachineDiskCreateParameters parameters)
parameters - Required. Parameters supplied to the Create Virtual
Machine Disk operation.OperationStatusResponse deleteDataDisk(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, boolean deleteFromStorage) throws InterruptedException, ExecutionException, ServiceException, IOException
serviceName - 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.Future<OperationStatusResponse> deleteDataDiskAsync(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, boolean deleteFromStorage)
serviceName - 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.OperationResponse deleteDisk(String name, boolean deleteFromStorage) throws IOException, ServiceException
name - 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.Future<OperationResponse> deleteDiskAsync(String name, boolean deleteFromStorage)
name - Required. The name of the disk to delete.deleteFromStorage - Required. Specifies that the source blob for the
disk should also be deleted from storage.VirtualMachineDataDiskGetResponse getDataDisk(String serviceName, String deploymentName, String roleName, int logicalUnitNumber) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
serviceName - 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.Future<VirtualMachineDataDiskGetResponse> getDataDiskAsync(String serviceName, String deploymentName, String roleName, int logicalUnitNumber)
serviceName - 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.VirtualMachineDiskGetResponse getDisk(String name) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
name - 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.Future<VirtualMachineDiskGetResponse> getDiskAsync(String name)
name - Required. The name of the disk.VirtualMachineDiskListResponse listDisks() throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
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.Future<VirtualMachineDiskListResponse> listDisksAsync()
OperationResponse updateDataDisk(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, VirtualMachineDataDiskUpdateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
serviceName - 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.Future<OperationResponse> updateDataDiskAsync(String serviceName, String deploymentName, String roleName, int logicalUnitNumber, VirtualMachineDataDiskUpdateParameters parameters)
serviceName - 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.VirtualMachineDiskUpdateResponse updateDisk(String name, VirtualMachineDiskUpdateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException, URISyntaxException
name - 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.Future<VirtualMachineDiskUpdateResponse> updateDiskAsync(String name, VirtualMachineDiskUpdateParameters parameters)
name - Required. The name of the disk being updated.parameters - Required. Parameters supplied to the Update Virtual
Machine Disk operation./**
* 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.
*/