public class ComputeManagementClientImpl extends ServiceClient<ComputeManagementClient> implements ComputeManagementClient
| Constructor and Description |
|---|
ComputeManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService,
SubscriptionCloudCredentials credentials)
Initializes a new instance of the ComputeManagementClientImpl class.
|
ComputeManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService,
SubscriptionCloudCredentials credentials,
URI baseUri)
Initializes a new instance of the ComputeManagementClientImpl class.
|
ComputeManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService,
SubscriptionCloudCredentials credentials,
URI baseUri,
String apiVersion,
int longRunningOperationInitialTimeout,
int longRunningOperationRetryTimeout)
Initializes a new instance of the ComputeManagementClientImpl class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getApiVersion()
Gets the API version.
|
URI |
getBaseUri()
Gets the URI used as the base for all cloud service requests.
|
SubscriptionCloudCredentials |
getCredentials()
Gets subscription credentials which uniquely identify Microsoft Azure
subscription.
|
DeploymentOperations |
getDeploymentsOperations()
The Service Management API includes operations for managing the
deployments in your subscription.
|
DNSServerOperations |
getDnsServerOperations()
The Compute Management API includes operations for managing the dns
servers for your subscription.
|
ExtensionImageOperations |
getExtensionImagesOperations()
The Service Management API includes operations for managing the service
and virtual machine extension images in your publisher subscription.
|
HostedServiceOperations |
getHostedServicesOperations()
The Service Management API includes operations for managing the hosted
services beneath your subscription.
|
LoadBalancerOperations |
getLoadBalancersOperations()
The Compute Management API includes operations for managing the load
balancers for your subscription.
|
int |
getLongRunningOperationInitialTimeout()
Gets or sets the initial timeout for Long Running Operations.
|
int |
getLongRunningOperationRetryTimeout()
Gets or sets the retry timeout for Long Running Operations.
|
OperatingSystemOperations |
getOperatingSystemsOperations()
Operations for determining the version of the Azure Guest Operating
System on which your service is running.
|
OperationStatusResponse |
getOperationStatus(String requestId)
The Get Operation Status operation returns the status of the specified
operation.
|
Future<OperationStatusResponse> |
getOperationStatusAsync(String requestId)
The Get Operation Status operation returns the status of the specified
operation.
|
ServiceCertificateOperations |
getServiceCertificatesOperations()
Operations for managing service certificates for your subscription.
|
VirtualMachineDiskOperations |
getVirtualMachineDisksOperations()
The Service Management API includes operations for managing the disks in
your subscription.
|
VirtualMachineExtensionOperations |
getVirtualMachineExtensionsOperations()
The Service Management API includes operations for managing the virtual
machine extensions in your subscription.
|
VirtualMachineOSImageOperations |
getVirtualMachineOSImagesOperations()
The Service Management API includes operations for managing the OS images
in your subscription.
|
VirtualMachineOperations |
getVirtualMachinesOperations()
The Service Management API includes operations for managing the virtual
machines in your subscription.
|
VirtualMachineVMImageOperations |
getVirtualMachineVMImagesOperations()
The Service Management API includes operations for managing the virtual
machine templates in your subscription.
|
protected ComputeManagementClientImpl |
newInstance(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService)
Initializes a new instance of the ComputeManagementClientImpl class.
|
void |
setLongRunningOperationInitialTimeout(int longRunningOperationInitialTimeoutValue)
Gets or sets the initial timeout for Long Running Operations.
|
void |
setLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeoutValue)
Gets or sets the retry timeout for Long Running Operations.
|
close, getExecutorService, getHttpClient, withRequestFilterFirst, withRequestFilterLast, withResponseFilterFirst, withResponseFilterLastclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithRequestFilterFirst, withRequestFilterLast, withResponseFilterFirst, withResponseFilterLast@Inject
public ComputeManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService,
@Named(value="com.microsoft.windowsazure.Configuration.credentials")
SubscriptionCloudCredentials credentials,
@Named(value="management.uri")
URI baseUri)
httpBuilder - The HTTP client builder.executorService - The executor service.credentials - Required. Gets subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.baseUri - Required. Gets the URI used as the base for all cloud
service requests.public ComputeManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService,
SubscriptionCloudCredentials credentials)
throws URISyntaxException
httpBuilder - The HTTP client builder.executorService - The executor service.credentials - Required. Gets subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.URISyntaxException - Thrown if there was an error parsing a URI in
the response.public ComputeManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService,
SubscriptionCloudCredentials credentials,
URI baseUri,
String apiVersion,
int longRunningOperationInitialTimeout,
int longRunningOperationRetryTimeout)
httpBuilder - The HTTP client builder.executorService - The executor service.credentials - Required. Gets subscription credentials which uniquely
identify Microsoft Azure subscription. The subscription ID forms part of
the URI for every service call.baseUri - Required. Gets the URI used as the base for all cloud
service requests.apiVersion - Required. Gets the API version.longRunningOperationInitialTimeout - Required. Gets or sets the
initial timeout for Long Running Operations.longRunningOperationRetryTimeout - Required. Gets or sets the retry
timeout for Long Running Operations.public String getApiVersion()
getApiVersion in interface ComputeManagementClientpublic URI getBaseUri()
getBaseUri in interface ComputeManagementClientpublic SubscriptionCloudCredentials getCredentials()
getCredentials in interface ComputeManagementClientpublic int getLongRunningOperationInitialTimeout()
getLongRunningOperationInitialTimeout in interface ComputeManagementClientpublic void setLongRunningOperationInitialTimeout(int longRunningOperationInitialTimeoutValue)
setLongRunningOperationInitialTimeout in interface ComputeManagementClientlongRunningOperationInitialTimeoutValue - The
LongRunningOperationInitialTimeout value.public int getLongRunningOperationRetryTimeout()
getLongRunningOperationRetryTimeout in interface ComputeManagementClientpublic void setLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeoutValue)
setLongRunningOperationRetryTimeout in interface ComputeManagementClientlongRunningOperationRetryTimeoutValue - The
LongRunningOperationRetryTimeout value.public DeploymentOperations getDeploymentsOperations()
getDeploymentsOperations in interface ComputeManagementClientpublic DNSServerOperations getDnsServerOperations()
getDnsServerOperations in interface ComputeManagementClientpublic ExtensionImageOperations getExtensionImagesOperations()
getExtensionImagesOperations in interface ComputeManagementClientpublic HostedServiceOperations getHostedServicesOperations()
getHostedServicesOperations in interface ComputeManagementClientpublic LoadBalancerOperations getLoadBalancersOperations()
getLoadBalancersOperations in interface ComputeManagementClientpublic OperatingSystemOperations getOperatingSystemsOperations()
getOperatingSystemsOperations in interface ComputeManagementClientpublic ServiceCertificateOperations getServiceCertificatesOperations()
getServiceCertificatesOperations in interface ComputeManagementClientpublic VirtualMachineDiskOperations getVirtualMachineDisksOperations()
getVirtualMachineDisksOperations in interface ComputeManagementClientpublic VirtualMachineExtensionOperations getVirtualMachineExtensionsOperations()
getVirtualMachineExtensionsOperations in interface ComputeManagementClientpublic VirtualMachineOperations getVirtualMachinesOperations()
getVirtualMachinesOperations in interface ComputeManagementClientpublic VirtualMachineOSImageOperations getVirtualMachineOSImagesOperations()
getVirtualMachineOSImagesOperations in interface ComputeManagementClientpublic VirtualMachineVMImageOperations getVirtualMachineVMImagesOperations()
getVirtualMachineVMImagesOperations in interface ComputeManagementClientprotected ComputeManagementClientImpl newInstance(org.apache.http.impl.client.HttpClientBuilder httpBuilder, ExecutorService executorService)
newInstance in class ServiceClient<ComputeManagementClient>httpBuilder - The HTTP client builder.executorService - The executor service.public Future<OperationStatusResponse> getOperationStatusAsync(String requestId)
getOperationStatusAsync in interface ComputeManagementClientrequestId - Required. The request ID for the request you wish to
track. The request ID is returned in the x-ms-request-id response header
for every request.public OperationStatusResponse getOperationStatus(String requestId) throws IOException, ServiceException, ParserConfigurationException, SAXException
getOperationStatus in interface ComputeManagementClientrequestId - Required. The request ID for the request you wish to
track. The request ID is returned in the x-ms-request-id response header
for every request.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./**
* 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.
*/