Class GHVariable

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

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

    • GHVariable

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

    • getVisibility

      public String getVisibility()
      Returns the visibility of the variable.
      Returns:
      the visibility of the variable
    • getName

      public String getName()
      Returns the name of the variable.
      Returns:
      the name of the variable
    • getSelectedRepositoriesUrl

      public String getSelectedRepositoriesUrl()
      Returns the URL of the selected repositories for this variable.
      Returns:
      the selected repositories URL
    • getUpdatedAt

      public OffsetDateTime getUpdatedAt()
      Returns the date and time when the variable was last updated.
      Returns:
      the last updated date and time
    • getCreatedAt

      public OffsetDateTime getCreatedAt()
      Returns the date and time when the variable was created.
      Returns:
      the creation date and time
    • getValue

      public String getValue()
      Returns the value of the variable.
      Returns:
      the value of the variable