Interface ApplicationPackage


public interface ApplicationPackage
An immutable client-side representation of ApplicationPackage.
  • Method Details

    • id

      String id()
      Gets the id property: Fully qualified resource Id for the resource.
      Returns:
      the id value.
    • name

      String name()
      Gets the name property: The name of the resource.
      Returns:
      the name value.
    • type

      String type()
      Gets the type property: The type of the resource.
      Returns:
      the type value.
    • etag

      String etag()
      Gets the etag property: The ETag of the resource, used for concurrency statements.
      Returns:
      the etag value.
    • state

      PackageState state()
      Gets the state property: The current state of the application package.
      Returns:
      the state value.
    • format

      String format()
      Gets the format property: The format of the application package, if the package is active.
      Returns:
      the format value.
    • storageUrl

      String storageUrl()
      Gets the storageUrl property: The URL for the application package in Azure Storage.
      Returns:
      the storageUrl value.
    • storageUrlExpiry

      OffsetDateTime storageUrlExpiry()
      Gets the storageUrlExpiry property: The UTC time at which the Azure Storage URL will expire.
      Returns:
      the storageUrlExpiry value.
    • lastActivationTime

      OffsetDateTime lastActivationTime()
      Gets the lastActivationTime property: The time at which the package was last activated, if the package is active.
      Returns:
      the lastActivationTime value.
    • innerModel

      Gets the inner com.azure.resourcemanager.batch.fluent.models.ApplicationPackageInner object.
      Returns:
      the inner object.
    • refresh

      Refreshes the resource to sync with Azure.
      Returns:
      the refreshed resource.
    • refresh

      ApplicationPackage refresh(com.azure.core.util.Context context)
      Refreshes the resource to sync with Azure.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      the refreshed resource.
    • activateWithResponse

      com.azure.core.http.rest.Response<ApplicationPackage> activateWithResponse(ActivateApplicationPackageParameters parameters, com.azure.core.util.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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.
    • activate

      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.
      Throws:
      IllegalArgumentException - thrown if parameters fail the validation.
      com.azure.core.management.exception.ManagementException - thrown if the request is rejected by server.
      RuntimeException - all other wrapped checked exceptions if the request fails to be sent.