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.batchai.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 BatchAIManagementClientImpl class.
/** * Initializes a new instance of the BatchAIManagementClientImpl class. */
public class BatchAIManagementClientImpl 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; }
The subscriptionID for the Azure user.
/** The subscriptionID for the Azure user. */
private String subscriptionId;
Gets The subscriptionID for the Azure user.
Returns:the subscriptionId value.
/** * Gets The subscriptionID for the Azure user. * * @return the subscriptionId value. */
public String subscriptionId() { return this.subscriptionId; }
Sets The subscriptionID for the Azure user.
Params:
  • subscriptionId – the subscriptionId value.
Returns:the service client itself
/** * Sets The subscriptionID for the Azure user. * * @param subscriptionId the subscriptionId value. * @return the service client itself */
public BatchAIManagementClientImpl withSubscriptionId(String subscriptionId) { this.subscriptionId = subscriptionId; return this; }
Specifies the version of API used for this request.
/** Specifies the version of API used for this request. */
private String apiVersion;
Gets Specifies the version of API used for this request.
Returns:the apiVersion value.
/** * Gets Specifies the version of API used for this request. * * @return the apiVersion value. */
public String apiVersion() { return this.apiVersion; }
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 BatchAIManagementClientImpl 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 BatchAIManagementClientImpl 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 BatchAIManagementClientImpl withGenerateClientRequestId(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; return this; }
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 UsagesInner object to access its operations.
/** * The UsagesInner object to access its operations. */
private UsagesInner usages;
Gets the UsagesInner object to access its operations.
Returns:the UsagesInner object.
/** * Gets the UsagesInner object to access its operations. * @return the UsagesInner object. */
public UsagesInner usages() { return this.usages; }
The WorkspacesInner object to access its operations.
/** * The WorkspacesInner object to access its operations. */
private WorkspacesInner workspaces;
Gets the WorkspacesInner object to access its operations.
Returns:the WorkspacesInner object.
/** * Gets the WorkspacesInner object to access its operations. * @return the WorkspacesInner object. */
public WorkspacesInner workspaces() { return this.workspaces; }
The ExperimentsInner object to access its operations.
/** * The ExperimentsInner object to access its operations. */
private ExperimentsInner experiments;
Gets the ExperimentsInner object to access its operations.
Returns:the ExperimentsInner object.
/** * Gets the ExperimentsInner object to access its operations. * @return the ExperimentsInner object. */
public ExperimentsInner experiments() { return this.experiments; }
The JobsInner object to access its operations.
/** * The JobsInner object to access its operations. */
private JobsInner jobs;
Gets the JobsInner object to access its operations.
Returns:the JobsInner object.
/** * Gets the JobsInner object to access its operations. * @return the JobsInner object. */
public JobsInner jobs() { return this.jobs; }
The FileServersInner object to access its operations.
/** * The FileServersInner object to access its operations. */
private FileServersInner fileServers;
Gets the FileServersInner object to access its operations.
Returns:the FileServersInner object.
/** * Gets the FileServersInner object to access its operations. * @return the FileServersInner object. */
public FileServersInner fileServers() { return this.fileServers; }
The ClustersInner object to access its operations.
/** * The ClustersInner object to access its operations. */
private ClustersInner clusters;
Gets the ClustersInner object to access its operations.
Returns:the ClustersInner object.
/** * Gets the ClustersInner object to access its operations. * @return the ClustersInner object. */
public ClustersInner clusters() { return this.clusters; }
Initializes an instance of BatchAIManagementClient client.
Params:
  • credentials – the management credentials for Azure
/** * Initializes an instance of BatchAIManagementClient client. * * @param credentials the management credentials for Azure */
public BatchAIManagementClientImpl(ServiceClientCredentials credentials) { this("https://management.azure.com", credentials); }
Initializes an instance of BatchAIManagementClient client.
Params:
  • baseUrl – the base URL of the host
  • credentials – the management credentials for Azure
/** * Initializes an instance of BatchAIManagementClient client. * * @param baseUrl the base URL of the host * @param credentials the management credentials for Azure */
public BatchAIManagementClientImpl(String baseUrl, ServiceClientCredentials credentials) { super(baseUrl, credentials); initialize(); }
Initializes an instance of BatchAIManagementClient client.
Params:
  • restClient – the REST client to connect to Azure.
/** * Initializes an instance of BatchAIManagementClient client. * * @param restClient the REST client to connect to Azure. */
public BatchAIManagementClientImpl(RestClient restClient) { super(restClient); initialize(); } protected void initialize() { this.apiVersion = "2018-05-01"; this.acceptLanguage = "en-US"; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; this.operations = new OperationsInner(restClient().retrofit(), this); this.usages = new UsagesInner(restClient().retrofit(), this); this.workspaces = new WorkspacesInner(restClient().retrofit(), this); this.experiments = new ExperimentsInner(restClient().retrofit(), this); this.jobs = new JobsInner(restClient().retrofit(), this); this.fileServers = new FileServersInner(restClient().retrofit(), this); this.clusters = new ClustersInner(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(), "BatchAIManagementClient", "2018-05-01"); } }