public interface VirtualMachineVMImageOperations
| Modifier and Type | Method and Description |
|---|---|
OperationResponse |
beginDeleting(String vmImageName,
boolean deleteFromStorage)
The Begin Deleting Virtual Machine Image operation deletes the specified
virtual machine image.
|
Future<OperationResponse> |
beginDeletingAsync(String vmImageName,
boolean deleteFromStorage)
The Begin Deleting Virtual Machine Image operation deletes the specified
virtual machine image.
|
OperationResponse |
beginSharing(String vmImageName,
String permission)
Share an already replicated VM image.
|
Future<OperationResponse> |
beginSharingAsync(String vmImageName,
String permission)
Share an already replicated VM image.
|
OperationResponse |
beginUnreplicating(String vmImageName)
Unreplicate an VM image to multiple target locations.
|
Future<OperationResponse> |
beginUnreplicatingAsync(String vmImageName)
Unreplicate an VM image to multiple target locations.
|
OperationStatusResponse |
delete(String vmImageName,
boolean deleteFromStorage)
The Delete Virtual Machine Image operation deletes the specified virtual
machine image.
|
Future<OperationStatusResponse> |
deleteAsync(String vmImageName,
boolean deleteFromStorage)
The Delete Virtual Machine Image operation deletes the specified virtual
machine image.
|
VirtualMachineVMImageGetDetailsResponse |
getDetails(String vmImageName)
Gets VMImage's properties and its replication details.
|
Future<VirtualMachineVMImageGetDetailsResponse> |
getDetailsAsync(String vmImageName)
Gets VMImage's properties and its replication details.
|
VirtualMachineVMImageListResponse |
list()
The List Virtual Machine Images operation retrieves a list of the virtual
machine images.
|
Future<VirtualMachineVMImageListResponse> |
listAsync()
The List Virtual Machine Images operation retrieves a list of the virtual
machine images.
|
VirtualMachineVMImageReplicateResponse |
replicate(String vmImageName,
VirtualMachineVMImageReplicateParameters parameters)
Replicate an VM image to multiple target locations.
|
Future<VirtualMachineVMImageReplicateResponse> |
replicateAsync(String vmImageName,
VirtualMachineVMImageReplicateParameters parameters)
Replicate an VM image to multiple target locations.
|
OperationStatusResponse |
share(String vmImageName,
String permission)
Share an already replicated VM image.
|
Future<OperationStatusResponse> |
shareAsync(String vmImageName,
String permission)
Share an already replicated VM image.
|
OperationStatusResponse |
unreplicate(String vmImageName)
Unreplicate an VM image to multiple target locations.
|
Future<OperationStatusResponse> |
unreplicateAsync(String vmImageName)
Unreplicate an VM image to multiple target locations.
|
OperationResponse |
update(String imageName,
VirtualMachineVMImageUpdateParameters parameters)
The Update VM Image operation updates a VM image that in your image
repository.
|
Future<OperationResponse> |
updateAsync(String imageName,
VirtualMachineVMImageUpdateParameters parameters)
The Update VM Image operation updates a VM image that in your image
repository.
|
OperationResponse beginDeleting(String vmImageName, boolean deleteFromStorage) throws IOException, ServiceException
vmImageName - Required. The name of the virtual machine image to
delete.deleteFromStorage - Required. Specifies that the source blob for the
image 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> beginDeletingAsync(String vmImageName, boolean deleteFromStorage)
vmImageName - Required. The name of the virtual machine image to
delete.deleteFromStorage - Required. Specifies that the source blob for the
image should also be deleted from storage.OperationResponse beginSharing(String vmImageName, String permission) throws IOException, ServiceException
vmImageName - Required. The name of the virtual machine image to
share.permission - Required. The sharing permission: public, msdn, or
private.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> beginSharingAsync(String vmImageName, String permission)
vmImageName - Required. The name of the virtual machine image to
share.permission - Required. The sharing permission: public, msdn, or
private.OperationResponse beginUnreplicating(String vmImageName) throws IOException, ServiceException
vmImageName - Required. The name of the virtual machine image to
replicate. Note: The VM Image Name should be the user VM Image, not the
published name of the VM Image.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> beginUnreplicatingAsync(String vmImageName)
vmImageName - Required. The name of the virtual machine image to
replicate. Note: The VM Image Name should be the user VM Image, not the
published name of the VM Image.OperationStatusResponse delete(String vmImageName, boolean deleteFromStorage) throws IOException, ServiceException, InterruptedException, ExecutionException
vmImageName - Required. The name of the virtual machine image to
delete.deleteFromStorage - Required. Specifies that the source blob for the
image 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.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.Future<OperationStatusResponse> deleteAsync(String vmImageName, boolean deleteFromStorage)
vmImageName - Required. The name of the virtual machine image to
delete.deleteFromStorage - Required. Specifies that the source blob for the
image should also be deleted from storage.VirtualMachineVMImageGetDetailsResponse getDetails(String vmImageName) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
vmImageName - Required. The name of the virtual machine image to
replicate.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<VirtualMachineVMImageGetDetailsResponse> getDetailsAsync(String vmImageName)
vmImageName - Required. The name of the virtual machine image to
replicate.VirtualMachineVMImageListResponse list() 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<VirtualMachineVMImageListResponse> listAsync()
VirtualMachineVMImageReplicateResponse replicate(String vmImageName, VirtualMachineVMImageReplicateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
vmImageName - Required. The name of the virtual machine image to
replicate.parameters - Required. Parameters supplied to the Replicate Virtual
Machine Image 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<VirtualMachineVMImageReplicateResponse> replicateAsync(String vmImageName, VirtualMachineVMImageReplicateParameters parameters)
vmImageName - Required. The name of the virtual machine image to
replicate.parameters - Required. Parameters supplied to the Replicate Virtual
Machine Image operation.OperationStatusResponse share(String vmImageName, String permission) throws InterruptedException, ExecutionException, ServiceException, IOException
vmImageName - Required. The name of the virtual machine image to
share.permission - Required. The sharing permission: public, msdn, or
private.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> shareAsync(String vmImageName, String permission)
vmImageName - Required. The name of the virtual machine image to
share.permission - Required. The sharing permission: public, msdn, or
private.OperationStatusResponse unreplicate(String vmImageName) throws InterruptedException, ExecutionException, ServiceException, IOException
vmImageName - Required. The name of the virtual machine image to
replicate. Note: The VM Image Name should be the user VM Image, not the
published name of the VM Image.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> unreplicateAsync(String vmImageName)
vmImageName - Required. The name of the virtual machine image to
replicate. Note: The VM Image Name should be the user VM Image, not the
published name of the VM Image.OperationResponse update(String imageName, VirtualMachineVMImageUpdateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException, ParserConfigurationException, SAXException, TransformerException, URISyntaxException
imageName - Required. The name of the virtual machine image to be
updated.parameters - Required. Parameters supplied to the Update Virtual
Machine Image 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.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.ServiceException - Thrown if an unexpected response is found.URISyntaxException - Thrown if there was an error parsing a URI in
the response.Future<OperationResponse> updateAsync(String imageName, VirtualMachineVMImageUpdateParameters parameters)
imageName - Required. The name of the virtual machine image to be
updated.parameters - Required. Parameters supplied to the Update Virtual
Machine Image 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.
*/