Class BatchServiceClientImpl
- java.lang.Object
-
- com.microsoft.rest.ServiceClient
-
- com.microsoft.azure.AzureServiceClient
-
- com.microsoft.azure.batch.protocol.implementation.BatchServiceClientImpl
-
- All Implemented Interfaces:
BatchServiceClient
public class BatchServiceClientImpl extends com.microsoft.azure.AzureServiceClient implements BatchServiceClient
Initializes a new instance of the BatchServiceClientImpl class.
-
-
Constructor Summary
Constructors Constructor Description BatchServiceClientImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of BatchServiceClient client.BatchServiceClientImpl(com.microsoft.rest.RestClient restClient)
Initializes an instance of BatchServiceClient client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
acceptLanguage()
Gets The preferred language for the response.Accounts
accounts()
Gets the Accounts object to access its operations.String
apiVersion()
Gets Client API Version.Applications
applications()
Gets the Applications object to access its operations.String
batchUrl()
Gets The base URL for all Azure Batch service requests.Certificates
certificates()
Gets the Certificates object to access its operations.ComputeNodeExtensions
computeNodeExtensions()
Gets the ComputeNodeExtensions object to access its operations.ComputeNodes
computeNodes()
Gets the ComputeNodes object to access its operations.Files
files()
Gets the Files object to access its operations.boolean
generateClientRequestId()
Gets Whether a unique x-ms-client-request-id should be generated.com.microsoft.azure.AzureClient
getAzureClient()
Gets theAzureClient
used for long running operations.protected void
initialize()
Jobs
jobs()
Gets the Jobs object to access its operations.JobSchedules
jobSchedules()
Gets the JobSchedules object to access its operations.int
longRunningOperationRetryTimeout()
Gets The retry timeout in seconds for Long Running Operations.Pools
pools()
Gets the Pools object to access its operations.Tasks
tasks()
Gets the Tasks object to access its operations.String
userAgent()
Gets the User-Agent header for the client.BatchServiceClientImpl
withAcceptLanguage(String acceptLanguage)
Sets The preferred language for the response.BatchServiceClientImpl
withBatchUrl(String batchUrl)
Sets The base URL for all Azure Batch service requests.BatchServiceClientImpl
withGenerateClientRequestId(boolean generateClientRequestId)
Sets Whether a unique x-ms-client-request-id should be generated.BatchServiceClientImpl
withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets The retry timeout in seconds for Long Running Operations.-
Methods inherited from class com.microsoft.rest.ServiceClient
httpClient, restClient, retrofit, serializerAdapter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.microsoft.azure.batch.protocol.BatchServiceClient
restClient
-
-
-
-
Constructor Detail
-
BatchServiceClientImpl
public BatchServiceClientImpl(com.microsoft.rest.credentials.ServiceClientCredentials credentials)
Initializes an instance of BatchServiceClient client.- Parameters:
credentials
- the management credentials for Azure
-
BatchServiceClientImpl
public BatchServiceClientImpl(com.microsoft.rest.RestClient restClient)
Initializes an instance of BatchServiceClient client.- Parameters:
restClient
- the REST client to connect to Azure.
-
-
Method Detail
-
getAzureClient
public com.microsoft.azure.AzureClient getAzureClient()
Gets theAzureClient
used for long running operations.- Specified by:
getAzureClient
in interfaceBatchServiceClient
- Returns:
- the azure client;
-
apiVersion
public String apiVersion()
Gets Client API Version.- Specified by:
apiVersion
in interfaceBatchServiceClient
- Returns:
- the apiVersion value.
-
batchUrl
public String batchUrl()
Gets The base URL for all Azure Batch service requests.- Specified by:
batchUrl
in interfaceBatchServiceClient
- Returns:
- the batchUrl value.
-
withBatchUrl
public BatchServiceClientImpl withBatchUrl(String batchUrl)
Sets The base URL for all Azure Batch service requests.- Specified by:
withBatchUrl
in interfaceBatchServiceClient
- Parameters:
batchUrl
- the batchUrl value.- Returns:
- the service client itself
-
acceptLanguage
public String acceptLanguage()
Gets The preferred language for the response.- Specified by:
acceptLanguage
in interfaceBatchServiceClient
- Returns:
- the acceptLanguage value.
-
withAcceptLanguage
public BatchServiceClientImpl withAcceptLanguage(String acceptLanguage)
Sets The preferred language for the response.- Specified by:
withAcceptLanguage
in interfaceBatchServiceClient
- Parameters:
acceptLanguage
- the acceptLanguage value.- Returns:
- the service client itself
-
longRunningOperationRetryTimeout
public int longRunningOperationRetryTimeout()
Gets The retry timeout in seconds for Long Running Operations. Default value is 30.- Specified by:
longRunningOperationRetryTimeout
in interfaceBatchServiceClient
- Returns:
- the longRunningOperationRetryTimeout value.
-
withLongRunningOperationRetryTimeout
public BatchServiceClientImpl withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout)
Sets The retry timeout in seconds for Long Running Operations. Default value is 30.- Specified by:
withLongRunningOperationRetryTimeout
in interfaceBatchServiceClient
- Parameters:
longRunningOperationRetryTimeout
- the longRunningOperationRetryTimeout value.- Returns:
- the service client itself
-
generateClientRequestId
public 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.- Specified by:
generateClientRequestId
in interfaceBatchServiceClient
- Returns:
- the generateClientRequestId value.
-
withGenerateClientRequestId
public BatchServiceClientImpl withGenerateClientRequestId(boolean 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.- Specified by:
withGenerateClientRequestId
in interfaceBatchServiceClient
- Parameters:
generateClientRequestId
- the generateClientRequestId value.- Returns:
- the service client itself
-
applications
public Applications applications()
Gets the Applications object to access its operations.- Specified by:
applications
in interfaceBatchServiceClient
- Returns:
- the Applications object.
-
pools
public Pools pools()
Gets the Pools object to access its operations.- Specified by:
pools
in interfaceBatchServiceClient
- Returns:
- the Pools object.
-
accounts
public Accounts accounts()
Gets the Accounts object to access its operations.- Specified by:
accounts
in interfaceBatchServiceClient
- Returns:
- the Accounts object.
-
jobs
public Jobs jobs()
Gets the Jobs object to access its operations.- Specified by:
jobs
in interfaceBatchServiceClient
- Returns:
- the Jobs object.
-
certificates
public Certificates certificates()
Gets the Certificates object to access its operations.- Specified by:
certificates
in interfaceBatchServiceClient
- Returns:
- the Certificates object.
-
files
public Files files()
Gets the Files object to access its operations.- Specified by:
files
in interfaceBatchServiceClient
- Returns:
- the Files object.
-
jobSchedules
public JobSchedules jobSchedules()
Gets the JobSchedules object to access its operations.- Specified by:
jobSchedules
in interfaceBatchServiceClient
- Returns:
- the JobSchedules object.
-
tasks
public Tasks tasks()
Gets the Tasks object to access its operations.- Specified by:
tasks
in interfaceBatchServiceClient
- Returns:
- the Tasks object.
-
computeNodes
public ComputeNodes computeNodes()
Gets the ComputeNodes object to access its operations.- Specified by:
computeNodes
in interfaceBatchServiceClient
- Returns:
- the ComputeNodes object.
-
computeNodeExtensions
public ComputeNodeExtensions computeNodeExtensions()
Gets the ComputeNodeExtensions object to access its operations.- Specified by:
computeNodeExtensions
in interfaceBatchServiceClient
- Returns:
- the ComputeNodeExtensions object.
-
initialize
protected void initialize()
-
userAgent
public String userAgent()
Gets the User-Agent header for the client.- Specified by:
userAgent
in interfaceBatchServiceClient
- Overrides:
userAgent
in classcom.microsoft.azure.AzureServiceClient
- Returns:
- the user agent string.
-
-