Class GHSecret
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHSecret
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
Represents a GitHub secret.
This class provides methods and properties to access information about a secret in GitHub Actions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGHSecret
(org.json.JSONObject jsonObject) Constructs a new GHSecret instance with the provided JSON object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the creation date and time of the secret.getName()
Returns the name of the secret.Returns the URL of the selected repositories for this secret.Returns the last updated date and time of the secret.Returns the visibility of the secret.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
-
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
Returns the creation date and time of the secret.- Returns:
- the creation date and time of the secret
-
getUpdatedAt
Returns the last updated date and time of the secret.- Returns:
- the last updated date and time of the secret
-
getName
Returns the name of the secret.- Returns:
- the name of the secret
-
getVisibility
Returns the visibility of the secret.- Returns:
- the visibility of the secret
-
getSelectedRepositoriesUrl
Returns the URL of the selected repositories for this secret.- Returns:
- the selected repositories URL
-