Search in sources :

Example 1 with ApplicationGetHeaders

use of com.microsoft.azure.batch.protocol.models.ApplicationGetHeaders in project azure-sdk-for-java by Azure.

the class ApplicationOperations method getApplication.

/**
     * Gets information about the specified application.
     *
     * @param applicationId The ID of the application to get.
     * @param additionalBehaviors A collection of {@link BatchClientBehavior} instances that are applied to the Batch service request.
     * @return An {@link ApplicationSummary} containing information about the specified application.
     * @throws BatchErrorException Exception thrown from REST call
     * @throws IOException Exception thrown from serialization/deserialization
     */
public ApplicationSummary getApplication(String applicationId, Iterable<BatchClientBehavior> additionalBehaviors) throws BatchErrorException, IOException {
    ApplicationGetOptions options = new ApplicationGetOptions();
    BehaviorManager bhMgr = new BehaviorManager(this.customBehaviors(), additionalBehaviors);
    bhMgr.applyRequestBehaviors(options);
    ServiceResponseWithHeaders<ApplicationSummary, ApplicationGetHeaders> response = this._parentBatchClient.protocolLayer().applications().get(applicationId, options);
    return response.getBody();
}
Also used : ApplicationGetHeaders(com.microsoft.azure.batch.protocol.models.ApplicationGetHeaders) ApplicationGetOptions(com.microsoft.azure.batch.protocol.models.ApplicationGetOptions) ApplicationSummary(com.microsoft.azure.batch.protocol.models.ApplicationSummary)

Aggregations

ApplicationGetHeaders (com.microsoft.azure.batch.protocol.models.ApplicationGetHeaders)1 ApplicationGetOptions (com.microsoft.azure.batch.protocol.models.ApplicationGetOptions)1 ApplicationSummary (com.microsoft.azure.batch.protocol.models.ApplicationSummary)1