Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.containerservice.implementation;
import com.microsoft.azure.AzureClient;
import com.microsoft.azure.AzureServiceClient;
import com.microsoft.rest.credentials.ServiceClientCredentials;
import com.microsoft.rest.RestClient;
Initializes a new instance of the ContainerServiceManagementClientImpl class.
/**
* Initializes a new instance of the ContainerServiceManagementClientImpl class.
*/
public class ContainerServiceManagementClientImpl extends AzureServiceClient {
the AzureClient
used for long running operations. /** the {@link AzureClient} used for long running operations. */
private AzureClient azureClient;
Gets the AzureClient
used for long running operations. Returns: the azure client;
/**
* Gets the {@link AzureClient} used for long running operations.
* @return the azure client;
*/
public AzureClient getAzureClient() {
return this.azureClient;
}
Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /** Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. */
private String subscriptionId;
Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Returns: the subscriptionId value.
/**
* Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
*
* @return the subscriptionId value.
*/
public String subscriptionId() {
return this.subscriptionId;
}
Sets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
Params: - subscriptionId – the subscriptionId value.
Returns: the service client itself
/**
* Sets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
*
* @param subscriptionId the subscriptionId value.
* @return the service client itself
*/
public ContainerServiceManagementClientImpl withSubscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
The preferred language for the response. /** The preferred language for the response. */
private String acceptLanguage;
Gets The preferred language for the response.
Returns: the acceptLanguage value.
/**
* Gets The preferred language for the response.
*
* @return the acceptLanguage value.
*/
public String acceptLanguage() {
return this.acceptLanguage;
}
Sets The preferred language for the response.
Params: - acceptLanguage – the acceptLanguage value.
Returns: the service client itself
/**
* Sets The preferred language for the response.
*
* @param acceptLanguage the acceptLanguage value.
* @return the service client itself
*/
public ContainerServiceManagementClientImpl withAcceptLanguage(String acceptLanguage) {
this.acceptLanguage = acceptLanguage;
return this;
}
The retry timeout in seconds for Long Running Operations. Default value is 30. /** The retry timeout in seconds for Long Running Operations. Default value is 30. */
private int longRunningOperationRetryTimeout;
Gets The retry timeout in seconds for Long Running Operations. Default value is 30.
Returns: the longRunningOperationRetryTimeout value.
/**
* Gets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @return the longRunningOperationRetryTimeout value.
*/
public int longRunningOperationRetryTimeout() {
return this.longRunningOperationRetryTimeout;
}
Sets The retry timeout in seconds for Long Running Operations. Default value is 30.
Params: - longRunningOperationRetryTimeout – the longRunningOperationRetryTimeout value.
Returns: the service client itself
/**
* Sets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value.
* @return the service client itself
*/
public ContainerServiceManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) {
this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout;
return this;
}
Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. /** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
private boolean generateClientRequestId;
Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
Returns: the generateClientRequestId value.
/**
* Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @return the generateClientRequestId value.
*/
public boolean generateClientRequestId() {
return this.generateClientRequestId;
}
Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
Params: - generateClientRequestId – the generateClientRequestId value.
Returns: the service client itself
/**
* Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
*/
public ContainerServiceManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) {
this.generateClientRequestId = generateClientRequestId;
return this;
}
The OpenShiftManagedClustersInner object to access its operations.
/**
* The OpenShiftManagedClustersInner object to access its operations.
*/
private OpenShiftManagedClustersInner openShiftManagedClusters;
Gets the OpenShiftManagedClustersInner object to access its operations.
Returns: the OpenShiftManagedClustersInner object.
/**
* Gets the OpenShiftManagedClustersInner object to access its operations.
* @return the OpenShiftManagedClustersInner object.
*/
public OpenShiftManagedClustersInner openShiftManagedClusters() {
return this.openShiftManagedClusters;
}
The ContainerServicesInner object to access its operations.
/**
* The ContainerServicesInner object to access its operations.
*/
private ContainerServicesInner containerServices;
Gets the ContainerServicesInner object to access its operations.
Returns: the ContainerServicesInner object.
/**
* Gets the ContainerServicesInner object to access its operations.
* @return the ContainerServicesInner object.
*/
public ContainerServicesInner containerServices() {
return this.containerServices;
}
The OperationsInner object to access its operations.
/**
* The OperationsInner object to access its operations.
*/
private OperationsInner operations;
Gets the OperationsInner object to access its operations.
Returns: the OperationsInner object.
/**
* Gets the OperationsInner object to access its operations.
* @return the OperationsInner object.
*/
public OperationsInner operations() {
return this.operations;
}
The ManagedClustersInner object to access its operations.
/**
* The ManagedClustersInner object to access its operations.
*/
private ManagedClustersInner managedClusters;
Gets the ManagedClustersInner object to access its operations.
Returns: the ManagedClustersInner object.
/**
* Gets the ManagedClustersInner object to access its operations.
* @return the ManagedClustersInner object.
*/
public ManagedClustersInner managedClusters() {
return this.managedClusters;
}
The AgentPoolsInner object to access its operations.
/**
* The AgentPoolsInner object to access its operations.
*/
private AgentPoolsInner agentPools;
Gets the AgentPoolsInner object to access its operations.
Returns: the AgentPoolsInner object.
/**
* Gets the AgentPoolsInner object to access its operations.
* @return the AgentPoolsInner object.
*/
public AgentPoolsInner agentPools() {
return this.agentPools;
}
The PrivateEndpointConnectionsInner object to access its operations.
/**
* The PrivateEndpointConnectionsInner object to access its operations.
*/
private PrivateEndpointConnectionsInner privateEndpointConnections;
Gets the PrivateEndpointConnectionsInner object to access its operations.
Returns: the PrivateEndpointConnectionsInner object.
/**
* Gets the PrivateEndpointConnectionsInner object to access its operations.
* @return the PrivateEndpointConnectionsInner object.
*/
public PrivateEndpointConnectionsInner privateEndpointConnections() {
return this.privateEndpointConnections;
}
The PrivateLinkResourcesInner object to access its operations.
/**
* The PrivateLinkResourcesInner object to access its operations.
*/
private PrivateLinkResourcesInner privateLinkResources;
Gets the PrivateLinkResourcesInner object to access its operations.
Returns: the PrivateLinkResourcesInner object.
/**
* Gets the PrivateLinkResourcesInner object to access its operations.
* @return the PrivateLinkResourcesInner object.
*/
public PrivateLinkResourcesInner privateLinkResources() {
return this.privateLinkResources;
}
The ResolvePrivateLinkServiceIdsInner object to access its operations.
/**
* The ResolvePrivateLinkServiceIdsInner object to access its operations.
*/
private ResolvePrivateLinkServiceIdsInner resolvePrivateLinkServiceIds;
Gets the ResolvePrivateLinkServiceIdsInner object to access its operations.
Returns: the ResolvePrivateLinkServiceIdsInner object.
/**
* Gets the ResolvePrivateLinkServiceIdsInner object to access its operations.
* @return the ResolvePrivateLinkServiceIdsInner object.
*/
public ResolvePrivateLinkServiceIdsInner resolvePrivateLinkServiceIds() {
return this.resolvePrivateLinkServiceIds;
}
Initializes an instance of ContainerServiceManagementClient client.
Params: - credentials – the management credentials for Azure
/**
* Initializes an instance of ContainerServiceManagementClient client.
*
* @param credentials the management credentials for Azure
*/
public ContainerServiceManagementClientImpl(ServiceClientCredentials credentials) {
this("https://management.azure.com", credentials);
}
Initializes an instance of ContainerServiceManagementClient client.
Params: - baseUrl – the base URL of the host
- credentials – the management credentials for Azure
/**
* Initializes an instance of ContainerServiceManagementClient client.
*
* @param baseUrl the base URL of the host
* @param credentials the management credentials for Azure
*/
public ContainerServiceManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) {
super(baseUrl, credentials);
initialize();
}
Initializes an instance of ContainerServiceManagementClient client.
Params: - restClient – the REST client to connect to Azure.
/**
* Initializes an instance of ContainerServiceManagementClient client.
*
* @param restClient the REST client to connect to Azure.
*/
public ContainerServiceManagementClientImpl(RestClient restClient) {
super(restClient);
initialize();
}
protected void initialize() {
this.acceptLanguage = "en-US";
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
this.openShiftManagedClusters = new OpenShiftManagedClustersInner(restClient().retrofit(), this);
this.containerServices = new ContainerServicesInner(restClient().retrofit(), this);
this.operations = new OperationsInner(restClient().retrofit(), this);
this.managedClusters = new ManagedClustersInner(restClient().retrofit(), this);
this.agentPools = new AgentPoolsInner(restClient().retrofit(), this);
this.privateEndpointConnections = new PrivateEndpointConnectionsInner(restClient().retrofit(), this);
this.privateLinkResources = new PrivateLinkResourcesInner(restClient().retrofit(), this);
this.resolvePrivateLinkServiceIds = new ResolvePrivateLinkServiceIdsInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
}
Gets the User-Agent header for the client.
Returns: the user agent string.
/**
* Gets the User-Agent header for the client.
*
* @return the user agent string.
*/
@Override
public String userAgent() {
return String.format("%s (%s)", super.userAgent(), "ContainerServiceManagementClient");
}
}