Class CortexCliApi.DownloadLink

java.lang.Object
org.jenkinsci.plugins.cortexcloud.api.CortexCliApi.DownloadLink
All Implemented Interfaces:
Serializable
Enclosing class:
CortexCliApi

public static class CortexCliApi.DownloadLink extends Object implements Serializable
Response body of CortexConstants.DOWNLOAD_LINK_PATH. Shape (verified against a live tenant): { "signed_url": "...", "checksum": "...", "file_name": "...", "expiration": ... }. Note: the tenant returns the checksum as an MD5 hex digest in practice (32 chars), not SHA-256. The verifier in CliProvisioner infers the algorithm from the hex length, so it handles MD5, SHA-1, or SHA-256 transparently.
See Also:
  • Field Details

    • signedUrl

      @SerializedName(value="signed_url", alternate={"signedUrl","url"}) public String signedUrl
    • checksum

      @SerializedName(value="checksum", alternate={"md5","md5Checksum","sha256","sha256Checksum"}) public String checksum
    • fileName

      @SerializedName(value="file_name", alternate={"fileName","filename"}) public String fileName
    • expiration

      @SerializedName(value="expiration", alternate={"expires","expiresAt"}) public Long expiration
  • Constructor Details

    • DownloadLink

      public DownloadLink()
  • Method Details

    • getSignedUrl

      public String getSignedUrl()
    • getChecksum

      public String getChecksum()
    • getFileName

      public String getFileName()
    • getExpiration

      public Long getExpiration()