Share via


ApplicationPackage Interface

public interface ApplicationPackage

An immutable client-side representation of ApplicationPackage.

Method Summary

Modifier and Type Method and Description
abstract ApplicationPackage activate(ActivateApplicationPackageParameters parameters)

Activates the specified application package.

abstract Response<ApplicationPackage> activateWithResponse(ActivateApplicationPackageParameters parameters, Context context)

Activates the specified application package.

abstract String etag()

Gets the etag property: The ETag of the resource, used for concurrency statements.

abstract String format()

Gets the format property: The format of the application package, if the package is active.

abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

abstract ApplicationPackageInner innerModel()

Gets the inner com.azure.resourcemanager.batch.fluent.models.ApplicationPackageInner object.

abstract OffsetDateTime lastActivationTime()

Gets the lastActivationTime property: The time at which the package was last activated, if the package is active.

abstract String name()

Gets the name property: The name of the resource.

abstract ApplicationPackage refresh()

Refreshes the resource to sync with Azure.

abstract ApplicationPackage refresh(Context context)

Refreshes the resource to sync with Azure.

abstract PackageState state()

Gets the state property: The current state of the application package.

abstract String storageUrl()

Gets the storageUrl property: The URL for the application package in Azure Storage.

abstract OffsetDateTime storageUrlExpiry()

Gets the storageUrlExpiry property: The UTC time at which the Azure Storage URL will expire.

abstract Map<String,String> tags()

Gets the tags property: The tags of the resource.

abstract String type()

Gets the type property: The type of the resource.

Method Details

activate

public abstract ApplicationPackage activate(ActivateApplicationPackageParameters parameters)

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:

parameters - The parameters for the request.

Returns:

an application package which represents a particular version of an application.

activateWithResponse

public abstract Response<ApplicationPackage> activateWithResponse(ActivateApplicationPackageParameters parameters, Context context)

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:

parameters - The parameters for the request.
context - The context to associate with this operation.

Returns:

an application package which represents a particular version of an application along with Response<T>.

etag

public abstract String etag()

Gets the etag property: The ETag of the resource, used for concurrency statements.

Returns:

the etag value.

format

public abstract String format()

Gets the format property: The format of the application package, if the package is active.

Returns:

the format value.

id

public abstract String id()

Gets the id property: Fully qualified resource Id for the resource.

Returns:

the id value.

innerModel

public abstract ApplicationPackageInner innerModel()

Gets the inner com.azure.resourcemanager.batch.fluent.models.ApplicationPackageInner object.

Returns:

the inner object.

lastActivationTime

public abstract OffsetDateTime lastActivationTime()

Gets the lastActivationTime property: The time at which the package was last activated, if the package is active.

Returns:

the lastActivationTime value.

name

public abstract String name()

Gets the name property: The name of the resource.

Returns:

the name value.

refresh

public abstract ApplicationPackage refresh()

Refreshes the resource to sync with Azure.

Returns:

the refreshed resource.

refresh

public abstract ApplicationPackage refresh(Context context)

Refreshes the resource to sync with Azure.

Parameters:

context - The context to associate with this operation.

Returns:

the refreshed resource.

state

public abstract PackageState state()

Gets the state property: The current state of the application package.

Returns:

the state value.

storageUrl

public abstract String storageUrl()

Gets the storageUrl property: The URL for the application package in Azure Storage.

Returns:

the storageUrl value.

storageUrlExpiry

public abstract OffsetDateTime storageUrlExpiry()

Gets the storageUrlExpiry property: The UTC time at which the Azure Storage URL will expire.

Returns:

the storageUrlExpiry value.

tags

public abstract Map<String,String> tags()

Gets the tags property: The tags of the resource.

Returns:

the tags value.

type

public abstract String type()

Gets the type property: The type of the resource.

Returns:

the type value.

Applies to