Class GHSecret

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

public class GHSecret extends GHBase
Represents a GitHub secret. This class provides methods and properties to access information about a secret in GitHub Actions.
  • Constructor Details

    • GHSecret

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

    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      Returns the creation date and time of the secret.
      Returns:
      the creation date and time of the secret
    • getUpdatedAt

      public OffsetDateTime getUpdatedAt()
      Returns the last updated date and time of the secret.
      Returns:
      the last updated date and time of the secret
    • getName

      public String getName()
      Returns the name of the secret.
      Returns:
      the name of the secret
    • getVisibility

      public String getVisibility()
      Returns the visibility of the secret.
      Returns:
      the visibility of the secret
    • getSelectedRepositoriesUrl

      public String getSelectedRepositoriesUrl()
      Returns the URL of the selected repositories for this secret.
      Returns:
      the selected repositories URL