Interface ApplicationPackage
-
- All Superinterfaces:
com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource<Application>,com.microsoft.azure.management.resources.fluentcore.arm.models.ExternalChildResource<ApplicationPackage,Application>,com.microsoft.azure.management.resources.fluentcore.model.HasInner<com.microsoft.azure.management.batch.implementation.ApplicationPackageInner>,com.microsoft.azure.management.resources.fluentcore.arm.models.HasName,com.microsoft.azure.management.resources.fluentcore.arm.models.HasParent<Application>,com.microsoft.azure.management.resources.fluentcore.model.Indexable,com.microsoft.azure.management.resources.fluentcore.model.Refreshable<ApplicationPackage>
public interface ApplicationPackage extends com.microsoft.azure.management.resources.fluentcore.arm.models.ExternalChildResource<ApplicationPackage,Application>, com.microsoft.azure.management.resources.fluentcore.model.HasInner<com.microsoft.azure.management.batch.implementation.ApplicationPackageInner>
An immutable client-side representation of an Azure Batch application package.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivate(String format)Activates 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.Stringformat()org.joda.time.DateTimelastActivationTime()PackageStatestate()StringstorageUrl()org.joda.time.DateTimestorageUrlExpiry()-
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
-
-
-
-
Method Detail
-
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
@Beta void activate(String format)
Activates the application package.- Parameters:
format- the format of the uploaded Batch application package, either "zip" or "tar"
-
activateAsync
@Beta rx.Completable activateAsync(String format)
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.
-
-