ApplicationsInner Class

  • java.lang.Object
    • com.microsoft.azure.management.batch.implementation.ApplicationsInner

public class ApplicationsInner

An instance of this class provides access to all the operations defined in Applications.

Constructor Summary

Constructor Description
ApplicationsInner(Retrofit retrofit, BatchManagementClientImpl client)

Initializes an instance of ApplicationsInner.

Method Summary

Modifier and Type Method and Description
ApplicationInner create(String resourceGroupName, String accountName, String applicationName)

Adds an application to the specified Batch account.

ApplicationInner create(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Adds an application to the specified Batch account.

Observable<ApplicationInner> createAsync(String resourceGroupName, String accountName, String applicationName)

Adds an application to the specified Batch account.

Observable<ApplicationInner> createAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Adds an application to the specified Batch account.

ServiceFuture<ApplicationInner> createAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters, final ServiceCallback<ApplicationInner> serviceCallback)

Adds an application to the specified Batch account.

ServiceFuture<ApplicationInner> createAsync(String resourceGroupName, String accountName, String applicationName, final ServiceCallback<ApplicationInner> serviceCallback)

Adds an application to the specified Batch account.

Observable<ServiceResponse<ApplicationInner>> createWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName)

Adds an application to the specified Batch account.

Observable<ServiceResponse<ApplicationInner>> createWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Adds an application to the specified Batch account.

void delete(String resourceGroupName, String accountName, String applicationName)

Deletes an application.

Observable<Void> deleteAsync(String resourceGroupName, String accountName, String applicationName)

Deletes an application.

ServiceFuture<Void> deleteAsync(String resourceGroupName, String accountName, String applicationName, final ServiceCallback<Void> serviceCallback)

Deletes an application.

Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName)

Deletes an application.

ApplicationInner get(String resourceGroupName, String accountName, String applicationName)

Gets information about the specified application.

Observable<ApplicationInner> getAsync(String resourceGroupName, String accountName, String applicationName)

Gets information about the specified application.

ServiceFuture<ApplicationInner> getAsync(String resourceGroupName, String accountName, String applicationName, final ServiceCallback<ApplicationInner> serviceCallback)

Gets information about the specified application.

Observable<ServiceResponse<ApplicationInner>> getWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName)

Gets information about the specified application.

PagedList<ApplicationInner> list(final String resourceGroupName, final String accountName)

Lists all of the applications in the specified account.

PagedList<ApplicationInner> list(final String resourceGroupName, final String accountName, final Integer maxresults)

Lists all of the applications in the specified account.

Observable<Page<ApplicationInner>> listAsync(final String resourceGroupName, final String accountName)

Lists all of the applications in the specified account.

Observable<Page<ApplicationInner>> listAsync(final String resourceGroupName, final String accountName, final Integer maxresults)

Lists all of the applications in the specified account.

ServiceFuture<List<ApplicationInner>> listAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final ListOperationCallback<ApplicationInner> serviceCallback)

Lists all of the applications in the specified account.

ServiceFuture<List<ApplicationInner>> listAsync(final String resourceGroupName, final String accountName, final ListOperationCallback<ApplicationInner> serviceCallback)

Lists all of the applications in the specified account.

PagedList<ApplicationInner> listNext(final String nextPageLink)

Lists all of the applications in the specified account.

Observable<Page<ApplicationInner>> listNextAsync(final String nextPageLink)

Lists all of the applications in the specified account.

ServiceFuture<List<ApplicationInner>> listNextAsync(final String nextPageLink, final ServiceFuture<List<ApplicationInner>> serviceFuture, final ListOperationCallback<ApplicationInner> serviceCallback)

Lists all of the applications in the specified account.

Observable<ServiceResponse<Page<ApplicationInner>>> listNextSinglePageAsync(final String nextPageLink)

Lists all of the applications in the specified account.

ServiceResponse<PageImpl<ApplicationInner>> *

Observable<ServiceResponse<Page<ApplicationInner>>> listNextWithServiceResponseAsync(final String nextPageLink)

Lists all of the applications in the specified account.

Observable<ServiceResponse<Page<ApplicationInner>>> listSinglePageAsync(final String resourceGroupName, final String accountName)

Lists all of the applications in the specified account.

Observable<ServiceResponse<Page<ApplicationInner>>> listSinglePageAsync(final String resourceGroupName, final String accountName, final Integer maxresults)

Lists all of the applications in the specified account.

ServiceResponse<PageImpl<ApplicationInner>> *

Observable<ServiceResponse<Page<ApplicationInner>>> listWithServiceResponseAsync(final String resourceGroupName, final String accountName)

Lists all of the applications in the specified account.

Observable<ServiceResponse<Page<ApplicationInner>>> listWithServiceResponseAsync(final String resourceGroupName, final String accountName, final Integer maxresults)

Lists all of the applications in the specified account.

ApplicationInner update(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Updates settings for the specified application.

Observable<ApplicationInner> updateAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Updates settings for the specified application.

ServiceFuture<ApplicationInner> updateAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters, final ServiceCallback<ApplicationInner> serviceCallback)

Updates settings for the specified application.

Observable<ServiceResponse<ApplicationInner>> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Updates settings for the specified application.

Constructor Details

ApplicationsInner

public ApplicationsInner(Retrofit retrofit, BatchManagementClientImpl client)

Initializes an instance of ApplicationsInner.

Parameters:

retrofit - the Retrofit instance built from a Retrofit Builder.
client - the instance of the service client containing this operation class.

Method Details

create

public ApplicationInner create(String resourceGroupName, String accountName, String applicationName)

Adds an application to the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Returns:

the ApplicationInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

create

public ApplicationInner create(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Adds an application to the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
parameters - The parameters for the request.

Returns:

the ApplicationInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

createAsync

public Observable createAsync(String resourceGroupName, String accountName, String applicationName)

Adds an application to the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Returns:

the observable to the ApplicationInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

public Observable createAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Adds an application to the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
parameters - The parameters for the request.

Returns:

the observable to the ApplicationInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

public ServiceFuture createAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters, final ServiceCallback serviceCallback)

Adds an application to the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
parameters - The parameters for the request.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

public ServiceFuture createAsync(String resourceGroupName, String accountName, String applicationName, final ServiceCallback serviceCallback)

Adds an application to the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createWithServiceResponseAsync

public Observable> createWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName)

Adds an application to the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Returns:

the observable to the ApplicationInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createWithServiceResponseAsync

public Observable> createWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Adds an application to the specified Batch account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
parameters - The parameters for the request.

Returns:

the observable to the ApplicationInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceGroupName, String accountName, String applicationName)

Deletes an application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

deleteAsync

public Observable deleteAsync(String resourceGroupName, String accountName, String applicationName)

Deletes an application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

public ServiceFuture deleteAsync(String resourceGroupName, String accountName, String applicationName, final ServiceCallback serviceCallback)

Deletes an application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteWithServiceResponseAsync

public Observable> deleteWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName)

Deletes an application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

get

public ApplicationInner get(String resourceGroupName, String accountName, String applicationName)

Gets information about the specified application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Returns:

the ApplicationInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getAsync

public Observable getAsync(String resourceGroupName, String accountName, String applicationName)

Gets information about the specified application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Returns:

the observable to the ApplicationInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String resourceGroupName, String accountName, String applicationName, final ServiceCallback serviceCallback)

Gets information about the specified application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getWithServiceResponseAsync

public Observable> getWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName)

Gets information about the specified application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.

Returns:

the observable to the ApplicationInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

public PagedList list(final String resourceGroupName, final String accountName)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the PagedList<ApplicationInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

list

public PagedList list(final String resourceGroupName, final String accountName, final Integer maxresults)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
maxresults - The maximum number of items to return in the response.

Returns:

the PagedList<ApplicationInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listAsync

public Observable> listAsync(final String resourceGroupName, final String accountName)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable to the PagedList<ApplicationInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public Observable> listAsync(final String resourceGroupName, final String accountName, final Integer maxresults)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
maxresults - The maximum number of items to return in the response.

Returns:

the observable to the PagedList<ApplicationInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public ServiceFuture> listAsync(final String resourceGroupName, final String accountName, final Integer maxresults, final ListOperationCallback serviceCallback)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
maxresults - The maximum number of items to return in the response.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public ServiceFuture> listAsync(final String resourceGroupName, final String accountName, final ListOperationCallback serviceCallback)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNext

public PagedList listNext(final String nextPageLink)

Lists all of the applications in the specified account.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<ApplicationInner> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listNextAsync

public Observable> listNextAsync(final String nextPageLink)

Lists all of the applications in the specified account.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<ApplicationInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextAsync

public ServiceFuture> listNextAsync(final String nextPageLink, final ServiceFuture> serviceFuture, final ListOperationCallback serviceCallback)

Lists all of the applications in the specified account.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.
serviceFuture - the ServiceFuture object tracking the Retrofit calls
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextSinglePageAsync

public Observable>> listNextSinglePageAsync(final String nextPageLink)

Lists all of the applications in the specified account.

ServiceResponse<PageImpl<ApplicationInner>> *

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the PagedList<ApplicationInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listNextWithServiceResponseAsync

public Observable>> listNextWithServiceResponseAsync(final String nextPageLink)

Lists all of the applications in the specified account.

Parameters:

nextPageLink - The NextLink from the previous successful call to List operation.

Returns:

the observable to the PagedList<ApplicationInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listSinglePageAsync

public Observable>> listSinglePageAsync(final String resourceGroupName, final String accountName)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the PagedList<ApplicationInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listSinglePageAsync

public Observable>> listSinglePageAsync(final String resourceGroupName, final String accountName, final Integer maxresults)

Lists all of the applications in the specified account.

ServiceResponse<PageImpl<ApplicationInner>> *

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account. ServiceResponse<PageImpl<ApplicationInner>> *
accountName - The name of the Batch account. ServiceResponse<PageImpl<ApplicationInner>> *
maxresults - The maximum number of items to return in the response.

Returns:

the PagedList<ApplicationInner> object wrapped in ServiceResponse if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String accountName)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.

Returns:

the observable to the PagedList<ApplicationInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

public Observable>> listWithServiceResponseAsync(final String resourceGroupName, final String accountName, final Integer maxresults)

Lists all of the applications in the specified account.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
maxresults - The maximum number of items to return in the response.

Returns:

the observable to the PagedList<ApplicationInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

update

public ApplicationInner update(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Updates settings for the specified application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
parameters - The parameters for the request.

Returns:

the ApplicationInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

updateAsync

public Observable updateAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Updates settings for the specified application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
parameters - The parameters for the request.

Returns:

the observable to the ApplicationInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters, final ServiceCallback serviceCallback)

Updates settings for the specified application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
parameters - The parameters for the request.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateWithServiceResponseAsync

public Observable> updateWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName, ApplicationInner parameters)

Updates settings for the specified application.

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account.
accountName - The name of the Batch account.
applicationName - The name of the application. This must be unique within the account.
parameters - The parameters for the request.

Returns:

the observable to the ApplicationInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to