Class GHVariable
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHVariable
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
Represents a GitHub variable.
This class provides methods and properties to access information about a variable in GitHub Actions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGHVariable
(org.json.JSONObject jsonObject) Constructs a new GHVariable instance with the provided JSON object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the date and time when the variable was created.getName()
Returns the name of the variable.Returns the URL of the selected repositories for this variable.Returns the date and time when the variable was last updated.getValue()
Returns the value of the variable.Returns the visibility of the variable.Methods inherited from class io.github.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequest
Methods inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
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
Returns the visibility of the variable.- Returns:
- the visibility of the variable
-
getName
Returns the name of the variable.- Returns:
- the name of the variable
-
getSelectedRepositoriesUrl
Returns the URL of the selected repositories for this variable.- Returns:
- the selected repositories URL
-
getUpdatedAt
Returns the date and time when the variable was last updated.- Returns:
- the last updated date and time
-
getCreatedAt
Returns the date and time when the variable was created.- Returns:
- the creation date and time
-
getValue
Returns the value of the variable.- Returns:
- the value of the variable
-