Class GHActionsCache

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHActionsCache
All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHActionsCache extends GHBase
This class represents a GitHub Actions Cache. It provides methods for fetching data about the actions cache such as its id, ref, key, version, last accessed date, creation date, and size in bytes.
  • Constructor Details

    • GHActionsCache

      public GHActionsCache(org.json.JSONObject jsonObject)
      Constructs a new GHActionsCache instance with the provided JSON object.
      Parameters:
      jsonObject - the JSON object containing the actions cache data
  • Method Details

    • getId

      public int getId()
      Returns the id of the actions cache.
      Returns:
      the id of the actions cache
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      Returns the creation date of the actions cache.
      Returns:
      the creation date of the actions cache
    • getSizeInBytes

      public int getSizeInBytes()
      Returns the size in bytes of the actions cache.
      Returns:
      the size in bytes of the actions cache
    • getLastAccessedAt

      public OffsetDateTime getLastAccessedAt()
      Returns the last accessed date of the actions cache.
      Returns:
      the last accessed date of the actions cache
    • getKey

      public String getKey()
      Returns the key of the actions cache.
      Returns:
      the key of the actions cache
    • getRef

      public String getRef()
      Returns the ref of the actions cache.
      Returns:
      the ref of the actions cache
    • getVersion

      public String getVersion()
      Returns the version of the actions cache.
      Returns:
      the version of the actions cache