public class VirtualMachineOSImageOperationsImpl extends Object implements ServiceOperations<ComputeManagementClientImpl>, VirtualMachineOSImageOperations
| Modifier and Type | Method and Description |
|---|---|
OperationResponse |
beginSharing(String imageName,
String permission)
Share an already replicated OS image.
|
Future<OperationResponse> |
beginSharingAsync(String imageName,
String permission)
Share an already replicated OS image.
|
OperationResponse |
beginUnreplicating(String imageName)
Unreplicate an OS image to multiple target locations.
|
Future<OperationResponse> |
beginUnreplicatingAsync(String imageName)
Unreplicate an OS image to multiple target locations.
|
VirtualMachineOSImageCreateResponse |
create(VirtualMachineOSImageCreateParameters parameters)
The Create OS Image operation adds an operating system image that is
stored in a storage account and is available from the image repository.
|
Future<VirtualMachineOSImageCreateResponse> |
createAsync(VirtualMachineOSImageCreateParameters parameters)
The Create OS Image operation adds an operating system image that is
stored in a storage account and is available from the image repository.
|
OperationResponse |
delete(String imageName,
boolean deleteFromStorage)
The Delete OS Image operation deletes the specified OS image from your
image repository.
|
Future<OperationResponse> |
deleteAsync(String imageName,
boolean deleteFromStorage)
The Delete OS Image operation deletes the specified OS image from your
image repository.
|
VirtualMachineOSImageGetResponse |
get(String imageName)
The Get OS Image operation retrieves the details for an operating system
image from the image repository.
|
Future<VirtualMachineOSImageGetResponse> |
getAsync(String imageName)
The Get OS Image operation retrieves the details for an operating system
image from the image repository.
|
ComputeManagementClientImpl |
getClient()
Gets a reference to the
microsoft.windowsazure.management.compute.ComputeManagementClientImpl.
|
VirtualMachineOSImageGetDetailsResponse |
getDetails(String imageName)
Gets OS Image's properties and its replication details.
|
Future<VirtualMachineOSImageGetDetailsResponse> |
getDetailsAsync(String imageName)
Gets OS Image's properties and its replication details.
|
VirtualMachineOSImageListResponse |
list()
The List OS Images operation retrieves a list of the operating system
images from the image repository.
|
Future<VirtualMachineOSImageListResponse> |
listAsync()
The List OS Images operation retrieves a list of the operating system
images from the image repository.
|
VirtualMachineOSImageReplicateResponse |
replicate(String imageName,
VirtualMachineOSImageReplicateParameters parameters)
Replicate an OS image to multiple target locations.
|
Future<VirtualMachineOSImageReplicateResponse> |
replicateAsync(String imageName,
VirtualMachineOSImageReplicateParameters parameters)
Replicate an OS image to multiple target locations.
|
OperationStatusResponse |
share(String imageName,
String permission)
Share an already replicated OS image.
|
Future<OperationStatusResponse> |
shareAsync(String imageName,
String permission)
Share an already replicated OS image.
|
OperationStatusResponse |
unreplicate(String imageName)
Unreplicate an OS image to multiple target locations.
|
Future<OperationStatusResponse> |
unreplicateAsync(String imageName)
Unreplicate an OS image to multiple target locations.
|
VirtualMachineOSImageUpdateResponse |
update(String imageName,
VirtualMachineOSImageUpdateParameters parameters)
The Update OS Image operation updates an OS image that in your image
repository.
|
Future<VirtualMachineOSImageUpdateResponse> |
updateAsync(String imageName,
VirtualMachineOSImageUpdateParameters parameters)
The Update OS Image operation updates an OS image that in your image
repository.
|
public ComputeManagementClientImpl getClient()
getClient in interface ServiceOperations<ComputeManagementClientImpl>public Future<OperationResponse> beginSharingAsync(String imageName, String permission)
beginSharingAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine image to share.permission - Required. The sharing permission: public, msdn, or
private.public OperationResponse beginSharing(String imageName, String permission) throws IOException, ServiceException
beginSharing in interface VirtualMachineOSImageOperationsimageName - 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 imageName)
beginUnreplicatingAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine image to
replicate. Note: The OS Image Name should be the user OS Image, not the
published name of the OS Image.public OperationResponse beginUnreplicating(String imageName) throws IOException, ServiceException
beginUnreplicating in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine image to
replicate. Note: The OS Image Name should be the user OS Image, not the
published name of the OS 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<VirtualMachineOSImageCreateResponse> createAsync(VirtualMachineOSImageCreateParameters parameters)
createAsync in interface VirtualMachineOSImageOperationsparameters - Required. Parameters supplied to the Create Virtual
Machine Image operation.public VirtualMachineOSImageCreateResponse create(VirtualMachineOSImageCreateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException, ParserConfigurationException, SAXException, TransformerException, URISyntaxException
create in interface VirtualMachineOSImageOperationsparameters - Required. Parameters supplied to the Create 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.public Future<OperationResponse> deleteAsync(String imageName, boolean deleteFromStorage)
deleteAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the image to delete.deleteFromStorage - Required. Specifies that the source blob for the
image should also be deleted from storage.public OperationResponse delete(String imageName, boolean deleteFromStorage) throws IOException, ServiceException, InterruptedException, ExecutionException
delete in interface VirtualMachineOSImageOperationsimageName - Required. The name of the 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<VirtualMachineOSImageGetResponse> getAsync(String imageName)
getAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the OS image to retrieve.public VirtualMachineOSImageGetResponse get(String imageName) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
get in interface VirtualMachineOSImageOperationsimageName - Required. The name of the OS image to retrieve.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<VirtualMachineOSImageGetDetailsResponse> getDetailsAsync(String imageName)
getDetailsAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine image to
replicate.public VirtualMachineOSImageGetDetailsResponse getDetails(String imageName) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
getDetails in interface VirtualMachineOSImageOperationsimageName - 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<VirtualMachineOSImageListResponse> listAsync()
listAsync in interface VirtualMachineOSImageOperationspublic VirtualMachineOSImageListResponse list() throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
list in interface VirtualMachineOSImageOperationsIOException - 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<VirtualMachineOSImageReplicateResponse> replicateAsync(String imageName, VirtualMachineOSImageReplicateParameters parameters)
replicateAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine OS image to
replicate.parameters - Required. Parameters supplied to the Replicate Virtual
Machine Image operation.public VirtualMachineOSImageReplicateResponse replicate(String imageName, VirtualMachineOSImageReplicateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
replicate in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine OS 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 imageName, String permission)
shareAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine image to share.permission - Required. The sharing permission: public, msdn, or
private.public OperationStatusResponse share(String imageName, String permission) throws InterruptedException, ExecutionException, ServiceException, IOException
share in interface VirtualMachineOSImageOperationsimageName - 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 imageName)
unreplicateAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine image to
replicate. Note: The OS Image Name should be the user OS Image, not the
published name of the OS Image.public OperationStatusResponse unreplicate(String imageName) throws InterruptedException, ExecutionException, ServiceException, IOException
unreplicate in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine image to
replicate. Note: The OS Image Name should be the user OS Image, not the
published name of the OS 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<VirtualMachineOSImageUpdateResponse> updateAsync(String imageName, VirtualMachineOSImageUpdateParameters parameters)
updateAsync in interface VirtualMachineOSImageOperationsimageName - Required. The name of the virtual machine image to be
updated.parameters - Required. Parameters supplied to the Update Virtual
Machine Image operation.public VirtualMachineOSImageUpdateResponse update(String imageName, VirtualMachineOSImageUpdateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException, ParserConfigurationException, SAXException, TransformerException, URISyntaxException
update in interface VirtualMachineOSImageOperationsimageName - 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.
*/