public interface 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.
|
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.
|
OperationResponse beginSharing(String imageName, String permission) throws IOException, ServiceException
imageName - 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 imageName, String permission)
imageName - Required. The name of the virtual machine image to share.permission - Required. The sharing permission: public, msdn, or
private.OperationResponse beginUnreplicating(String imageName) throws IOException, ServiceException
imageName - 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.Future<OperationResponse> beginUnreplicatingAsync(String imageName)
imageName - 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.VirtualMachineOSImageCreateResponse create(VirtualMachineOSImageCreateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException, ParserConfigurationException, SAXException, TransformerException, URISyntaxException
parameters - 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.Future<VirtualMachineOSImageCreateResponse> createAsync(VirtualMachineOSImageCreateParameters parameters)
parameters - Required. Parameters supplied to the Create Virtual
Machine Image operation.OperationResponse delete(String imageName, boolean deleteFromStorage) throws IOException, ServiceException, InterruptedException, ExecutionException
imageName - 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.Future<OperationResponse> deleteAsync(String imageName, boolean deleteFromStorage)
imageName - Required. The name of the image to delete.deleteFromStorage - Required. Specifies that the source blob for the
image should also be deleted from storage.VirtualMachineOSImageGetResponse get(String imageName) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
imageName - 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.Future<VirtualMachineOSImageGetResponse> getAsync(String imageName)
imageName - Required. The name of the OS image to retrieve.VirtualMachineOSImageGetDetailsResponse getDetails(String imageName) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
imageName - 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<VirtualMachineOSImageGetDetailsResponse> getDetailsAsync(String imageName)
imageName - Required. The name of the virtual machine image to
replicate.VirtualMachineOSImageListResponse 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<VirtualMachineOSImageListResponse> listAsync()
VirtualMachineOSImageReplicateResponse replicate(String imageName, VirtualMachineOSImageReplicateParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
imageName - 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.Future<VirtualMachineOSImageReplicateResponse> replicateAsync(String imageName, VirtualMachineOSImageReplicateParameters parameters)
imageName - Required. The name of the virtual machine OS image to
replicate.parameters - Required. Parameters supplied to the Replicate Virtual
Machine Image operation.OperationStatusResponse share(String imageName, String permission) throws InterruptedException, ExecutionException, ServiceException, IOException
imageName - 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 imageName, String permission)
imageName - Required. The name of the virtual machine image to share.permission - Required. The sharing permission: public, msdn, or
private.OperationStatusResponse unreplicate(String imageName) throws InterruptedException, ExecutionException, ServiceException, IOException
imageName - 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.Future<OperationStatusResponse> unreplicateAsync(String imageName)
imageName - 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.VirtualMachineOSImageUpdateResponse update(String imageName, VirtualMachineOSImageUpdateParameters 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<VirtualMachineOSImageUpdateResponse> updateAsync(String imageName, VirtualMachineOSImageUpdateParameters 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.
*/