public class VirtualMachineVMImageOperationsImpl extends Object implements ServiceOperations<ComputeManagementClientImpl>, 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.
|
ComputeManagementClientImpl |
getClient()
Gets a reference to the
microsoft.windowsazure.management.compute.ComputeManagementClientImpl.
|
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.
|
public ComputeManagementClientImpl getClient()
getClient in interface ServiceOperations<ComputeManagementClientImpl>public Future<OperationResponse> beginDeletingAsync(String vmImageName, boolean deleteFromStorage)
beginDeletingAsync in interface VirtualMachineVMImageOperationsvmImageName - 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.public OperationResponse beginDeleting(String vmImageName, boolean deleteFromStorage) throws IOException, ServiceException
beginDeleting in interface VirtualMachineVMImageOperationsvmImageName - 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.public Future<OperationResponse> beginSharingAsync(String vmImageName, String permission)
beginSharingAsync in interface VirtualMachineVMImageOperationsvmImageName - Required. The name of the virtual machine image to
share.permission - Required. The sharing permission: public, msdn, or
private.public OperationResponse beginSharing(String vmImageName, String permission) throws IOException, ServiceException
beginSharing in interface VirtualMachineVMImageOperationsvmImageName - 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.public Future<OperationResponse> beginUnreplicatingAsync(String vmImageName)
beginUnreplicatingAsync in interface VirtualMachineVMImageOperationsvmImageName - 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.public OperationResponse beginUnreplicating(String vmImageName) throws IOException, ServiceException
beginUnreplicating in interface VirtualMachineVMImageOperationsvmImageName - 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.public Future<OperationStatusResponse> deleteAsync(String vmImageName, boolean deleteFromStorage)
deleteAsync in interface VirtualMachineVMImageOperationsvmImageName - 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.public OperationStatusResponse delete(String vmImageName, boolean deleteFromStorage) throws IOException, ServiceException, InterruptedException, ExecutionException
delete in interface VirtualMachineVMImageOperationsvmImageName - 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.public Future<VirtualMachineVMImageGetDetailsResponse> getDetailsAsync(String vmImageName)
getDetailsAsync in interface VirtualMachineVMImageOperationsvmImageName - Required. The name of the virtual machine image to
replicate.public VirtualMachineVMImageGetDetailsResponse getDetails(String vmImageName) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
getDetails in interface VirtualMachineVMImageOperationsvmImageName - 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.public Future<VirtualMachineVMImageListResponse> listAsync()
listAsync in interface VirtualMachineVMImageOperationspublic VirtualMachineVMImageListResponse list() throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
list in interface VirtualMachineVMImageOperationsIOException - 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<VirtualMachineVMImageReplicateResponse> replicateAsync(String vmImageName, VirtualMachineVMImageReplicateParameters parameters)
replicateAsync in interface VirtualMachineVMImageOperationsvmImageName - Required. The name of the virtual machine image to
replicate.parameters - Required. Parameters supplied to the Replicate Virtual
Machine Image operation.public VirtualMachineVMImageReplicateResponse replicate(String vmImageName, VirtualMachineVMImageReplicateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
replicate in interface VirtualMachineVMImageOperationsvmImageName - 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.public Future<OperationStatusResponse> shareAsync(String vmImageName, String permission)
shareAsync in interface VirtualMachineVMImageOperationsvmImageName - Required. The name of the virtual machine image to
share.permission - Required. The sharing permission: public, msdn, or
private.public OperationStatusResponse share(String vmImageName, String permission) throws InterruptedException, ExecutionException, ServiceException, IOException
share in interface VirtualMachineVMImageOperationsvmImageName - 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.public Future<OperationStatusResponse> unreplicateAsync(String vmImageName)
unreplicateAsync in interface VirtualMachineVMImageOperationsvmImageName - 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.public OperationStatusResponse unreplicate(String vmImageName) throws InterruptedException, ExecutionException, ServiceException, IOException
unreplicate in interface VirtualMachineVMImageOperationsvmImageName - 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.public Future<OperationResponse> updateAsync(String imageName, VirtualMachineVMImageUpdateParameters parameters)
updateAsync in interface VirtualMachineVMImageOperationsimageName - Required. The name of the virtual machine image to be
updated.parameters - Required. Parameters supplied to the Update Virtual
Machine Image operation.public OperationResponse update(String imageName, VirtualMachineVMImageUpdateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException, ParserConfigurationException, SAXException, TransformerException, URISyntaxException
update in interface VirtualMachineVMImageOperationsimageName - 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./**
* 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.
*/