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.graphrbac.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 GraphRbacManagementClientImpl class.
/** * Initializes a new instance of the GraphRbacManagementClientImpl class. */
public class GraphRbacManagementClientImpl 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; }
Client API version.
/** Client API version. */
private String apiVersion;
Gets Client API version.
Returns:the apiVersion value.
/** * Gets Client API version. * * @return the apiVersion value. */
public String apiVersion() { return this.apiVersion; }
The tenant ID.
/** The tenant ID. */
private String tenantID;
Gets The tenant ID.
Returns:the tenantID value.
/** * Gets The tenant ID. * * @return the tenantID value. */
public String tenantID() { return this.tenantID; }
Sets The tenant ID.
Params:
  • tenantID – the tenantID value.
Returns:the service client itself
/** * Sets The tenant ID. * * @param tenantID the tenantID value. * @return the service client itself */
public GraphRbacManagementClientImpl withTenantID(String tenantID) { this.tenantID = tenantID; return this; }
Gets or sets the preferred language for the response.
/** Gets or sets the preferred language for the response. */
private String acceptLanguage;
Gets Gets or sets the preferred language for the response.
Returns:the acceptLanguage value.
/** * Gets Gets or sets the preferred language for the response. * * @return the acceptLanguage value. */
public String acceptLanguage() { return this.acceptLanguage; }
Sets Gets or sets the preferred language for the response.
Params:
  • acceptLanguage – the acceptLanguage value.
Returns:the service client itself
/** * Sets Gets or sets the preferred language for the response. * * @param acceptLanguage the acceptLanguage value. * @return the service client itself */
public GraphRbacManagementClientImpl withAcceptLanguage(String acceptLanguage) { this.acceptLanguage = acceptLanguage; return this; }
Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
/** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */
private int longRunningOperationRetryTimeout;
Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
Returns:the longRunningOperationRetryTimeout value.
/** * Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. * * @return the longRunningOperationRetryTimeout value. */
public int longRunningOperationRetryTimeout() { return this.longRunningOperationRetryTimeout; }
Sets Gets or 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 Gets or 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 GraphRbacManagementClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout) { this.longRunningOperationRetryTimeout = longRunningOperationRetryTimeout; return this; }
When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
/** 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 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 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 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 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 GraphRbacManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; return this; }
The ObjectsInner object to access its operations.
/** * The ObjectsInner object to access its operations. */
private ObjectsInner objects;
Gets the ObjectsInner object to access its operations.
Returns:the ObjectsInner object.
/** * Gets the ObjectsInner object to access its operations. * @return the ObjectsInner object. */
public ObjectsInner objects() { return this.objects; }
The ApplicationsInner object to access its operations.
/** * The ApplicationsInner object to access its operations. */
private ApplicationsInner applications;
Gets the ApplicationsInner object to access its operations.
Returns:the ApplicationsInner object.
/** * Gets the ApplicationsInner object to access its operations. * @return the ApplicationsInner object. */
public ApplicationsInner applications() { return this.applications; }
The GroupsInner object to access its operations.
/** * The GroupsInner object to access its operations. */
private GroupsInner groups;
Gets the GroupsInner object to access its operations.
Returns:the GroupsInner object.
/** * Gets the GroupsInner object to access its operations. * @return the GroupsInner object. */
public GroupsInner groups() { return this.groups; }
The ServicePrincipalsInner object to access its operations.
/** * The ServicePrincipalsInner object to access its operations. */
private ServicePrincipalsInner servicePrincipals;
Gets the ServicePrincipalsInner object to access its operations.
Returns:the ServicePrincipalsInner object.
/** * Gets the ServicePrincipalsInner object to access its operations. * @return the ServicePrincipalsInner object. */
public ServicePrincipalsInner servicePrincipals() { return this.servicePrincipals; }
The UsersInner object to access its operations.
/** * The UsersInner object to access its operations. */
private UsersInner users;
Gets the UsersInner object to access its operations.
Returns:the UsersInner object.
/** * Gets the UsersInner object to access its operations. * @return the UsersInner object. */
public UsersInner users() { return this.users; }
The DomainsInner object to access its operations.
/** * The DomainsInner object to access its operations. */
private DomainsInner domains;
Gets the DomainsInner object to access its operations.
Returns:the DomainsInner object.
/** * Gets the DomainsInner object to access its operations. * @return the DomainsInner object. */
public DomainsInner domains() { return this.domains; }
Initializes an instance of GraphRbacManagementClient client.
Params:
  • credentials – the management credentials for Azure
/** * Initializes an instance of GraphRbacManagementClient client. * * @param credentials the management credentials for Azure */
public GraphRbacManagementClientImpl(ServiceClientCredentials credentials) { this("https://graph.windows.net", credentials); }
Initializes an instance of GraphRbacManagementClient client.
Params:
  • baseUrl – the base URL of the host
  • credentials – the management credentials for Azure
/** * Initializes an instance of GraphRbacManagementClient client. * * @param baseUrl the base URL of the host * @param credentials the management credentials for Azure */
public GraphRbacManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { super(baseUrl, credentials); initialize(); }
Initializes an instance of GraphRbacManagementClient client.
Params:
  • restClient – the REST client to connect to Azure.
/** * Initializes an instance of GraphRbacManagementClient client. * * @param restClient the REST client to connect to Azure. */
public GraphRbacManagementClientImpl(RestClient restClient) { super(restClient); initialize(); } protected void initialize() { this.apiVersion = "1.6"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; this.objects = new ObjectsInner(restClient().retrofit(), this); this.applications = new ApplicationsInner(restClient().retrofit(), this); this.groups = new GroupsInner(restClient().retrofit(), this); this.servicePrincipals = new ServicePrincipalsInner(restClient().retrofit(), this); this.users = new UsersInner(restClient().retrofit(), this); this.domains = new DomainsInner(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, %s)", super.userAgent(), "GraphRbacManagementClient", "1.6"); } }