Interface ApplicationPackage
- All Superinterfaces:
ChildResource<Application>,ExternalChildResource<ApplicationPackage,,Application> HasInner<com.microsoft.azure.management.batch.implementation.ApplicationPackageInner>,HasName,HasParent<Application>,Indexable,Refreshable<ApplicationPackage>
public interface ApplicationPackage
extends ExternalChildResource<ApplicationPackage,Application>, HasInner<com.microsoft.azure.management.batch.implementation.ApplicationPackageInner>
An immutable client-side representation of an Azure Batch application package.
-
Method Summary
Modifier and TypeMethodDescriptionvoidActivates the application package.rx.CompletableactivateAsync(String format) Activates the application package asynchronously.com.microsoft.rest.ServiceFuture<Void>activateAsync(String format, com.microsoft.rest.ServiceCallback<Void> callback) Activates the application package asynchronously.voiddelete()Deletes the application package.format()org.joda.time.DateTimestate()org.joda.time.DateTimeMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.ExternalChildResource
idMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
innerMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
nameMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasParent
parentMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
keyMethods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Refreshable
refresh, refreshAsync
-
Method Details
-
state
PackageState state()- Returns:
- the state of the application package
-
format
String format()- Returns:
- the format of the application package
-
storageUrl
String storageUrl()- Returns:
- the storage URL of the application package where teh application should be uploaded
-
storageUrlExpiry
org.joda.time.DateTime storageUrlExpiry()- Returns:
- the expiry of the storage URL for the application package
-
lastActivationTime
org.joda.time.DateTime lastActivationTime()- Returns:
- the last time this application package was activated
-
activate
Activates the application package.- Parameters:
format- the format of the uploaded Batch application package, either "zip" or "tar"
-
activateAsync
Activates the application package asynchronously.- 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
@Beta com.microsoft.rest.ServiceFuture<Void> activateAsync(String format, com.microsoft.rest.ServiceCallback<Void> callback) Activates the application package asynchronously.- 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
-
delete
void delete()Deletes the application package.
-