ApplicationPackagesInner Class

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

public class ApplicationPackagesInner

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

Constructor Summary

Constructor Description
ApplicationPackagesInner(Retrofit retrofit, BatchManagementClientImpl client)

Initializes an instance of ApplicationPackagesInner.

Method Summary

Modifier and Type Method and Description
ApplicationPackageInner activate(String resourceGroupName, String accountName, String applicationName, String versionName, String format)

Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.

Observable<ApplicationPackageInner> activateAsync(String resourceGroupName, String accountName, String applicationName, String versionName, String format)

Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.

ServiceFuture<ApplicationPackageInner> activateAsync(String resourceGroupName, String accountName, String applicationName, String versionName, String format, final ServiceCallback<ApplicationPackageInner> serviceCallback)

Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.

Observable<ServiceResponse<ApplicationPackageInner>> activateWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName, String versionName, String format)

Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.

ApplicationPackageInner create(String resourceGroupName, String accountName, String applicationName, String versionName)

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

Observable<ApplicationPackageInner> createAsync(String resourceGroupName, String accountName, String applicationName, String versionName)

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

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

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

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

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

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

Deletes an application package record and its associated binary file.

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

Deletes an application package record and its associated binary file.

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

Deletes an application package record and its associated binary file.

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

Deletes an application package record and its associated binary file.

ApplicationPackageInner get(String resourceGroupName, String accountName, String applicationName, String versionName)

Gets information about the specified application package.

Observable<ApplicationPackageInner> getAsync(String resourceGroupName, String accountName, String applicationName, String versionName)

Gets information about the specified application package.

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

Gets information about the specified application package.

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

Gets information about the specified application package.

PagedList<ApplicationPackageInner> list(final String resourceGroupName, final String accountName, final String applicationName)

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

PagedList<ApplicationPackageInner> listNext(final String nextPageLink)

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

ServiceResponse<PageImpl<ApplicationPackageInner>> *

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

ServiceResponse<PageImpl<ApplicationPackageInner>> *

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

Lists all of the application packages in the specified application.

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

Lists all of the application packages in the specified application.

Constructor Details

ApplicationPackagesInner

public ApplicationPackagesInner(Retrofit retrofit, BatchManagementClientImpl client)

Initializes an instance of ApplicationPackagesInner.

Parameters:

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

Method Details

activate

public ApplicationPackageInner activate(String resourceGroupName, String accountName, String applicationName, String versionName, String format)

Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.

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.
versionName - The version of the application.
format - The format of the application package binary file.

Returns:

the ApplicationPackageInner 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

activateAsync

public Observable activateAsync(String resourceGroupName, String accountName, String applicationName, String versionName, String format)

Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.

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.
versionName - The version of the application.
format - The format of the application package binary file.

Returns:

the observable to the ApplicationPackageInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

activateAsync

public ServiceFuture activateAsync(String resourceGroupName, String accountName, String applicationName, String versionName, String format, final ServiceCallback serviceCallback)

Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.

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.
versionName - The version of the application.
format - The format of the application package binary file.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

activateWithServiceResponseAsync

public Observable> activateWithServiceResponseAsync(String resourceGroupName, String accountName, String applicationName, String versionName, String format)

Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.

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.
versionName - The version of the application.
format - The format of the application package binary file.

Returns:

the observable to the ApplicationPackageInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

create

public ApplicationPackageInner create(String resourceGroupName, String accountName, String applicationName, String versionName)

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

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.
versionName - The version of the application.

Returns:

the ApplicationPackageInner 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, String versionName)

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

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.
versionName - The version of the application.

Returns:

the observable to the ApplicationPackageInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createAsync

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

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

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.
versionName - The version of the application.
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, String versionName)

Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.

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.
versionName - The version of the application.

Returns:

the observable to the ApplicationPackageInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

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

Deletes an application package record and its associated binary file.

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.
versionName - The version of the application.

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, String versionName)

Deletes an application package record and its associated binary file.

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.
versionName - The version of the application.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

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

Deletes an application package record and its associated binary file.

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.
versionName - The version of the application.
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, String versionName)

Deletes an application package record and its associated binary file.

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.
versionName - The version of the application.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

get

public ApplicationPackageInner get(String resourceGroupName, String accountName, String applicationName, String versionName)

Gets information about the specified application package.

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.
versionName - The version of the application.

Returns:

the ApplicationPackageInner 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, String versionName)

Gets information about the specified application package.

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.
versionName - The version of the application.

Returns:

the observable to the ApplicationPackageInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

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

Gets information about the specified application package.

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.
versionName - The version of the application.
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, String versionName)

Gets information about the specified application package.

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.
versionName - The version of the application.

Returns:

the observable to the ApplicationPackageInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

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

Lists all of the application packages in 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 PagedList<ApplicationPackageInner> 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 String applicationName, final Integer maxresults)

Lists all of the application packages in 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.
maxresults - The maximum number of items to return in the response.

Returns:

the PagedList<ApplicationPackageInner> 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, final String applicationName)

Lists all of the application packages in 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 PagedList<ApplicationPackageInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

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

Lists all of the application packages in 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.
maxresults - The maximum number of items to return in the response.

Returns:

the observable to the PagedList<ApplicationPackageInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

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

Lists all of the application packages in 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.
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 String applicationName, final ListOperationCallback serviceCallback)

Lists all of the application packages in 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

listNext

public PagedList listNext(final String nextPageLink)

Lists all of the application packages in the specified application.

Parameters:

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

Returns:

the PagedList<ApplicationPackageInner> 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 application packages in the specified application.

Parameters:

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

Returns:

the observable to the PagedList<ApplicationPackageInner> 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 application packages in the specified application.

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 application packages in the specified application.

ServiceResponse<PageImpl<ApplicationPackageInner>> *

Parameters:

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

Returns:

the PagedList<ApplicationPackageInner> 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 application packages in the specified application.

Parameters:

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

Returns:

the observable to the PagedList<ApplicationPackageInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listSinglePageAsync

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

Lists all of the application packages in 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 PagedList<ApplicationPackageInner> 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 String applicationName, final Integer maxresults)

Lists all of the application packages in the specified application.

ServiceResponse<PageImpl<ApplicationPackageInner>> *

Parameters:

resourceGroupName - The name of the resource group that contains the Batch account. ServiceResponse<PageImpl<ApplicationPackageInner>> *
accountName - The name of the Batch account. ServiceResponse<PageImpl<ApplicationPackageInner>> *
applicationName - The name of the application. This must be unique within the account. ServiceResponse<PageImpl<ApplicationPackageInner>> *
maxresults - The maximum number of items to return in the response.

Returns:

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

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

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

Lists all of the application packages in 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 PagedList<ApplicationPackageInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

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

Lists all of the application packages in 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.
maxresults - The maximum number of items to return in the response.

Returns:

the observable to the PagedList<ApplicationPackageInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to