public class ResourceManagementClientImpl extends ServiceClient<ResourceManagementClient> implements ResourceManagementClient
| Constructor and Description |
|---|
ResourceManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService)
Initializes a new instance of the ResourceManagementClientImpl class.
|
ResourceManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService,
SubscriptionCloudCredentials credentials)
Initializes a new instance of the ResourceManagementClientImpl class.
|
ResourceManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService,
SubscriptionCloudCredentials credentials,
URI baseUri)
Initializes a new instance of the ResourceManagementClientImpl class.
|
ResourceManagementClientImpl(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 ResourceManagementClientImpl 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.
|
DeploymentOperationOperations |
getDeploymentOperationsOperations()
Operations for managing deployment operations.
|
DeploymentOperations |
getDeploymentsOperations()
Operations for managing deployments.
|
int |
getLongRunningOperationInitialTimeout()
Gets or sets the initial timeout for Long Running Operations.
|
int |
getLongRunningOperationRetryTimeout()
Gets or sets the retry timeout for Long Running Operations.
|
LongRunningOperationResponse |
getLongRunningOperationStatus(String operationStatusLink)
The Get Operation Status operation returns the status of the specified
operation.
|
Future<LongRunningOperationResponse> |
getLongRunningOperationStatusAsync(String operationStatusLink)
The Get Operation Status operation returns the status of the specified
operation.
|
ProviderOperationsMetadataOperations |
getProviderOperationsMetadataOperations()
Operations for getting provider operations metadata.
|
ProviderOperations |
getProvidersOperations()
Operations for managing providers.
|
ResourceGroupOperations |
getResourceGroupsOperations()
Operations for managing resource groups.
|
ResourceProviderOperationDetailsOperations |
getResourceProviderOperationDetailsOperations()
Operations for managing Resource provider operations.
|
ResourceOperations |
getResourcesOperations()
Operations for managing resources.
|
TagOperations |
getTagsOperations()
Operations for managing tags.
|
protected ResourceManagementClientImpl |
newInstance(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService)
Initializes a new instance of the ResourceManagementClientImpl 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, withResponseFilterLastpublic ResourceManagementClientImpl(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
ExecutorService executorService)
httpBuilder - The HTTP client builder.executorService - The executor service.@Inject
public ResourceManagementClientImpl(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 - Optional. Gets the URI used as the base for all cloud
service requests.public ResourceManagementClientImpl(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 ResourceManagementClientImpl(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 - Optional. Gets the URI used as the base for all cloud
service requests.apiVersion - Optional. 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 ResourceManagementClientpublic URI getBaseUri()
getBaseUri in interface ResourceManagementClientpublic SubscriptionCloudCredentials getCredentials()
getCredentials in interface ResourceManagementClientpublic int getLongRunningOperationInitialTimeout()
getLongRunningOperationInitialTimeout in interface ResourceManagementClientpublic void setLongRunningOperationInitialTimeout(int longRunningOperationInitialTimeoutValue)
setLongRunningOperationInitialTimeout in interface ResourceManagementClientlongRunningOperationInitialTimeoutValue - The
LongRunningOperationInitialTimeout value.public int getLongRunningOperationRetryTimeout()
getLongRunningOperationRetryTimeout in interface ResourceManagementClientpublic void setLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeoutValue)
setLongRunningOperationRetryTimeout in interface ResourceManagementClientlongRunningOperationRetryTimeoutValue - The
LongRunningOperationRetryTimeout value.public DeploymentOperationOperations getDeploymentOperationsOperations()
getDeploymentOperationsOperations in interface ResourceManagementClientpublic DeploymentOperations getDeploymentsOperations()
getDeploymentsOperations in interface ResourceManagementClientpublic ProviderOperations getProvidersOperations()
getProvidersOperations in interface ResourceManagementClientpublic ProviderOperationsMetadataOperations getProviderOperationsMetadataOperations()
getProviderOperationsMetadataOperations in interface ResourceManagementClientpublic ResourceGroupOperations getResourceGroupsOperations()
getResourceGroupsOperations in interface ResourceManagementClientpublic ResourceOperations getResourcesOperations()
getResourcesOperations in interface ResourceManagementClientpublic ResourceProviderOperationDetailsOperations getResourceProviderOperationDetailsOperations()
getResourceProviderOperationDetailsOperations in interface ResourceManagementClientpublic TagOperations getTagsOperations()
getTagsOperations in interface ResourceManagementClientprotected ResourceManagementClientImpl newInstance(org.apache.http.impl.client.HttpClientBuilder httpBuilder, ExecutorService executorService)
newInstance in class ServiceClient<ResourceManagementClient>httpBuilder - The HTTP client builder.executorService - The executor service.public Future<LongRunningOperationResponse> getLongRunningOperationStatusAsync(String operationStatusLink)
getLongRunningOperationStatusAsync in interface ResourceManagementClientoperationStatusLink - Required. Location value returned by the Begin
operation.public LongRunningOperationResponse getLongRunningOperationStatus(String operationStatusLink) throws IOException, ServiceException
getLongRunningOperationStatus in interface ResourceManagementClientoperationStatusLink - Required. Location value returned by the Begin
operation.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./**
* 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.
*/