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 TypeMethodDescriptionvoid
Activates the application package.rx.Completable
activateAsync
(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.void
delete()
Deletes the application package.format()
org.joda.time.DateTime
state()
org.joda.time.DateTime
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.ExternalChildResource
id
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.HasInner
inner
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.arm.models.HasParent
parent
Methods inherited from interface com.microsoft.azure.management.resources.fluentcore.model.Indexable
key
Methods 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.
-