public class HostedServiceOperationsImpl extends Object implements ServiceOperations<ComputeManagementClientImpl>, HostedServiceOperations
| Modifier and Type | Method and Description |
|---|---|
OperationStatusResponse |
addExtension(String serviceName,
HostedServiceAddExtensionParameters parameters)
The Add Extension operation adds an available extension to your cloud
service.
|
Future<OperationStatusResponse> |
addExtensionAsync(String serviceName,
HostedServiceAddExtensionParameters parameters)
The Add Extension operation adds an available extension to your cloud
service.
|
OperationResponse |
beginAddingExtension(String serviceName,
HostedServiceAddExtensionParameters parameters)
The Begin Adding Extension operation adds an available extension to your
cloud service.
|
Future<OperationResponse> |
beginAddingExtensionAsync(String serviceName,
HostedServiceAddExtensionParameters parameters)
The Begin Adding Extension operation adds an available extension to your
cloud service.
|
OperationResponse |
beginDeletingAll(String serviceName)
The DeleteAll Hosted Service operation deletes the specified cloud
service as well as operating system disk, attached data disks, and the
source blobs for the disks from storage from Microsoft Azure.
|
Future<OperationResponse> |
beginDeletingAllAsync(String serviceName)
The DeleteAll Hosted Service operation deletes the specified cloud
service as well as operating system disk, attached data disks, and the
source blobs for the disks from storage from Microsoft Azure.
|
OperationResponse |
beginDeletingExtension(String serviceName,
String extensionId)
The Begin Deleting Extension operation deletes the specified extension
from a cloud service.
|
Future<OperationResponse> |
beginDeletingExtensionAsync(String serviceName,
String extensionId)
The Begin Deleting Extension operation deletes the specified extension
from a cloud service.
|
HostedServiceCheckNameAvailabilityResponse |
checkNameAvailability(String serviceName)
The Check Hosted Service Name Availability operation checks for the
availability of the specified cloud service name.
|
Future<HostedServiceCheckNameAvailabilityResponse> |
checkNameAvailabilityAsync(String serviceName)
The Check Hosted Service Name Availability operation checks for the
availability of the specified cloud service name.
|
OperationResponse |
create(HostedServiceCreateParameters parameters)
The Create Hosted Service operation creates a new cloud service in Azure.
|
Future<OperationResponse> |
createAsync(HostedServiceCreateParameters parameters)
The Create Hosted Service operation creates a new cloud service in Azure.
|
OperationResponse |
delete(String serviceName)
The Delete Hosted Service operation deletes the specified cloud service
from Azure.
|
OperationStatusResponse |
deleteAll(String serviceName)
The DeleteAll Hosted Service operation deletes the specified cloud
service as well as operating system disk, attached data disks, and the
source blobs for the disks from storage from Microsoft Azure.
|
Future<OperationStatusResponse> |
deleteAllAsync(String serviceName)
The DeleteAll Hosted Service operation deletes the specified cloud
service as well as operating system disk, attached data disks, and the
source blobs for the disks from storage from Microsoft Azure.
|
Future<OperationResponse> |
deleteAsync(String serviceName)
The Delete Hosted Service operation deletes the specified cloud service
from Azure.
|
OperationStatusResponse |
deleteExtension(String serviceName,
String extensionId)
The Delete Extension operation deletes the specified extension from a
cloud service.
|
Future<OperationStatusResponse> |
deleteExtensionAsync(String serviceName,
String extensionId)
The Delete Extension operation deletes the specified extension from a
cloud service.
|
HostedServiceGetResponse |
get(String serviceName)
The Get Hosted Service Properties operation retrieves system properties
for the specified cloud service.
|
Future<HostedServiceGetResponse> |
getAsync(String serviceName)
The Get Hosted Service Properties operation retrieves system properties
for the specified cloud service.
|
ComputeManagementClientImpl |
getClient()
Gets a reference to the
microsoft.windowsazure.management.compute.ComputeManagementClientImpl.
|
HostedServiceGetDetailedResponse |
getDetailed(String serviceName)
The Get Detailed Hosted Service Properties operation retrieves system
properties for the specified cloud service.
|
Future<HostedServiceGetDetailedResponse> |
getDetailedAsync(String serviceName)
The Get Detailed Hosted Service Properties operation retrieves system
properties for the specified cloud service.
|
HostedServiceGetExtensionResponse |
getExtension(String serviceName,
String extensionId)
The Get Extension operation retrieves information about a specified
extension that was added to a cloud service.
|
Future<HostedServiceGetExtensionResponse> |
getExtensionAsync(String serviceName,
String extensionId)
The Get Extension operation retrieves information about a specified
extension that was added to a cloud service.
|
HostedServiceListResponse |
list()
The List Hosted Services operation lists the cloud services available
under the current subscription.
|
Future<HostedServiceListResponse> |
listAsync()
The List Hosted Services operation lists the cloud services available
under the current subscription.
|
HostedServiceListAvailableExtensionsResponse |
listAvailableExtensions()
The List Available Extensions operation lists the extensions that are
available to add to your cloud service.
|
Future<HostedServiceListAvailableExtensionsResponse> |
listAvailableExtensionsAsync()
The List Available Extensions operation lists the extensions that are
available to add to your cloud service.
|
HostedServiceListExtensionsResponse |
listExtensions(String serviceName)
The List Extensions operation lists all of the extensions that were added
to a cloud service.
|
Future<HostedServiceListExtensionsResponse> |
listExtensionsAsync(String serviceName)
The List Extensions operation lists all of the extensions that were added
to a cloud service.
|
HostedServiceListAvailableExtensionsResponse |
listExtensionVersions(String providerNamespace,
String extensionType)
The List Extension Versions operation lists the versions of an extension
that are available to add to a cloud service.
|
Future<HostedServiceListAvailableExtensionsResponse> |
listExtensionVersionsAsync(String providerNamespace,
String extensionType)
The List Extension Versions operation lists the versions of an extension
that are available to add to a cloud service.
|
OperationResponse |
update(String serviceName,
HostedServiceUpdateParameters parameters)
The Update Hosted Service operation can update the label or description
of a cloud service in Azure.
|
Future<OperationResponse> |
updateAsync(String serviceName,
HostedServiceUpdateParameters parameters)
The Update Hosted Service operation can update the label or description
of a cloud service in Azure.
|
public ComputeManagementClientImpl getClient()
getClient in interface ServiceOperations<ComputeManagementClientImpl>public Future<OperationStatusResponse> addExtensionAsync(String serviceName, HostedServiceAddExtensionParameters parameters)
addExtensionAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.parameters - Required. Parameters supplied to the Add Extension
operation.public OperationStatusResponse addExtension(String serviceName, HostedServiceAddExtensionParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException
addExtension in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.parameters - Required. Parameters supplied to the Add Extension
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.public Future<OperationResponse> beginAddingExtensionAsync(String serviceName, HostedServiceAddExtensionParameters parameters)
beginAddingExtensionAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.parameters - Required. Parameters supplied to the Begin Adding
Extension operation.public OperationResponse beginAddingExtension(String serviceName, HostedServiceAddExtensionParameters parameters) throws ParserConfigurationException, SAXException, TransformerException, IOException, ServiceException
beginAddingExtension in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.parameters - Required. Parameters supplied to the Begin Adding
Extension 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<OperationResponse> beginDeletingAllAsync(String serviceName)
beginDeletingAllAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.public OperationResponse beginDeletingAll(String serviceName) throws IOException, ServiceException
beginDeletingAll in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.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> beginDeletingExtensionAsync(String serviceName, String extensionId)
beginDeletingExtensionAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.extensionId - Required. The identifier that was assigned to the
extension when it was added to the cloud servicepublic OperationResponse beginDeletingExtension(String serviceName, String extensionId) throws IOException, ServiceException
beginDeletingExtension in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.extensionId - Required. The identifier that was assigned to the
extension when it was added to the cloud serviceIOException - 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<HostedServiceCheckNameAvailabilityResponse> checkNameAvailabilityAsync(String serviceName)
checkNameAvailabilityAsync in interface HostedServiceOperationsserviceName - Required. The cloud service name that you would like
to use.public HostedServiceCheckNameAvailabilityResponse checkNameAvailability(String serviceName) throws IOException, ServiceException, ParserConfigurationException, SAXException
checkNameAvailability in interface HostedServiceOperationsserviceName - Required. The cloud service name that you would like
to use.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.public Future<OperationResponse> createAsync(HostedServiceCreateParameters parameters)
createAsync in interface HostedServiceOperationsparameters - Required. Parameters supplied to the Create Hosted
Service operation.public OperationResponse create(HostedServiceCreateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException, ParserConfigurationException, SAXException, TransformerException, URISyntaxException
create in interface HostedServiceOperationsparameters - Required. Parameters supplied to the Create Hosted
Service 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 serviceName)
deleteAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.public OperationResponse delete(String serviceName) throws IOException, ServiceException, InterruptedException, ExecutionException
delete in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.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<OperationStatusResponse> deleteAllAsync(String serviceName)
deleteAllAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.public OperationStatusResponse deleteAll(String serviceName) throws InterruptedException, ExecutionException, ServiceException, IOException
deleteAll in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.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> deleteExtensionAsync(String serviceName, String extensionId)
deleteExtensionAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.extensionId - Required. The identifier that was assigned to the
extension when it was added to the cloud servicepublic OperationStatusResponse deleteExtension(String serviceName, String extensionId) throws InterruptedException, ExecutionException, ServiceException, IOException
deleteExtension in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.extensionId - Required. The identifier that was assigned to the
extension when it was added to the cloud serviceInterruptedException - 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<HostedServiceGetResponse> getAsync(String serviceName)
getAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.public HostedServiceGetResponse get(String serviceName) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
get in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.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<HostedServiceGetDetailedResponse> getDetailedAsync(String serviceName)
getDetailedAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.public HostedServiceGetDetailedResponse getDetailed(String serviceName) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
getDetailed in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.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<HostedServiceGetExtensionResponse> getExtensionAsync(String serviceName, String extensionId)
getExtensionAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.extensionId - Required. The identifier that was assigned to the
extension when it was added to the cloud servicepublic HostedServiceGetExtensionResponse getExtension(String serviceName, String extensionId) throws IOException, ServiceException, ParserConfigurationException, SAXException
getExtension in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.extensionId - Required. The identifier that was assigned to the
extension when it was added to the cloud serviceIOException - 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.public Future<HostedServiceListResponse> listAsync()
listAsync in interface HostedServiceOperationspublic HostedServiceListResponse list() throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
list in interface HostedServiceOperationsIOException - 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<HostedServiceListAvailableExtensionsResponse> listAvailableExtensionsAsync()
listAvailableExtensionsAsync in interface HostedServiceOperationspublic HostedServiceListAvailableExtensionsResponse listAvailableExtensions() throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
listAvailableExtensions in interface HostedServiceOperationsIOException - 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<HostedServiceListExtensionsResponse> listExtensionsAsync(String serviceName)
listExtensionsAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.public HostedServiceListExtensionsResponse listExtensions(String serviceName) throws IOException, ServiceException, ParserConfigurationException, SAXException
listExtensions in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.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.public Future<HostedServiceListAvailableExtensionsResponse> listExtensionVersionsAsync(String providerNamespace, String extensionType)
listExtensionVersionsAsync in interface HostedServiceOperationsproviderNamespace - Required. The provider namespace.extensionType - Required. The extension type name.public HostedServiceListAvailableExtensionsResponse listExtensionVersions(String providerNamespace, String extensionType) throws IOException, ServiceException, ParserConfigurationException, SAXException, URISyntaxException
listExtensionVersions in interface HostedServiceOperationsproviderNamespace - Required. The provider namespace.extensionType - Required. The extension type name.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<OperationResponse> updateAsync(String serviceName, HostedServiceUpdateParameters parameters)
updateAsync in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.parameters - Required. Parameters supplied to the Update Hosted
Service operation.public OperationResponse update(String serviceName, HostedServiceUpdateParameters parameters) throws InterruptedException, ExecutionException, ServiceException, IOException, ParserConfigurationException, SAXException, TransformerException, URISyntaxException
update in interface HostedServiceOperationsserviceName - Required. The name of the cloud service.parameters - Required. Parameters supplied to the Update Hosted
Service 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.
*/