ApplicationPackageImpl Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.ExternalChildResourceImpl<ApplicationPackage, ApplicationPackageInner, ApplicationImpl, Application>
      • com.microsoft.azure.management.batch.implementation.ApplicationPackageImpl

public class ApplicationPackageImpl implements ApplicationPackage

Implementation for BatchAccount Application Package and its parent interfaces.

Constructor Summary

Constructor Description
ApplicationPackageImpl(String name, ApplicationImpl parent, ApplicationPackageInner inner, ApplicationPackagesInner client)

Method Summary

Modifier and Type Method and Description
void activate(String format)

Activates the application package.

Completable activateAsync(String format)

Activates the application package asynchronously.

ServiceFuture<Void> activateAsync(String format, ServiceCallback<Void> callback)

Activates the application package asynchronously.

Observable<ApplicationPackage> createResourceAsync()
void delete()

Deletes the application package.

Observable<Void> deleteResourceAsync()
String format()
Observable<ApplicationPackageInner> getInnerAsync()
String id()
DateTime lastActivationTime()
ApplicationPackageImpl newApplicationPackage(String name, ApplicationImpl parent, ApplicationPackagesInner client)
PackageState state()
String storageUrl()
DateTime storageUrlExpiry()
Observable<ApplicationPackage> updateResourceAsync()

Inherited Members

Constructor Details

ApplicationPackageImpl

protected ApplicationPackageImpl(String name, ApplicationImpl parent, ApplicationPackageInner inner, ApplicationPackagesInner client)

Parameters:

name
parent
inner
client

Method Details

activate

public void activate(String format)

Activates the application package.

Overrides:

ApplicationPackageImpl.activate(String format)

Parameters:

format - the format of the uploaded Batch application package, either "zip" or "tar"

activateAsync

public Completable activateAsync(String format)

Activates the application package asynchronously.

Overrides:

ApplicationPackageImpl.activateAsync(String format)

Parameters:

format - the format of the uploaded Batch application package, either "zip" or "tar"

Returns:

a representation of the deferred computation of this call

activateAsync

public ServiceFuture activateAsync(String format, ServiceCallback callback)

Activates the application package asynchronously.

Overrides:

ApplicationPackageImpl.activateAsync(String format, ServiceCallback<Void> callback)

Parameters:

format - the format of the uploaded Batch application package, either "zip" or "tar"
callback - the callback to call on success or failure

Returns:

a handle to cancel the request

createResourceAsync

public Observable createResourceAsync()

delete

public void delete()

Deletes the application package.

Overrides:

ApplicationPackageImpl.delete()

deleteResourceAsync

public Observable deleteResourceAsync()

format

public String format()

Overrides:

ApplicationPackageImpl.format()

Returns:

the format of the application package

getInnerAsync

protected Observable getInnerAsync()

id

public String id()

Overrides:

ApplicationPackageImpl.id()

Returns:

the id of the external child resource

lastActivationTime

public DateTime lastActivationTime()

Overrides:

ApplicationPackageImpl.lastActivationTime()

Returns:

the last time this application package was activated

newApplicationPackage

protected static ApplicationPackageImpl newApplicationPackage(String name, ApplicationImpl parent, ApplicationPackagesInner client)

Parameters:

name
parent
client

state

public PackageState state()

Overrides:

ApplicationPackageImpl.state()

Returns:

the state of the application package

storageUrl

public String storageUrl()

Overrides:

ApplicationPackageImpl.storageUrl()

Returns:

the storage URL of the application package where teh application should be uploaded

storageUrlExpiry

public DateTime storageUrlExpiry()

Overrides:

ApplicationPackageImpl.storageUrlExpiry()

Returns:

the expiry of the storage URL for the application package

updateResourceAsync

public Observable updateResourceAsync()

Applies to