Class ActionRun
java.lang.Object
build.cursed.genapi.forgejo.model.ActionRun
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class ActionRun
extends Object
ActionRun represents an action run
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapprovedBy(Long approvedBy) created(OffsetDateTime created) booleaneventPayload(String eventPayload) static ActionRunCreate an instance of ActionRun given an JSON stringwho approved this action runthe commit sha the action run ran onwhen the action run was createdA Duration represents the elapsed time between two instants as an int64 nanosecond count.getEvent()the webhook event that causes the workflow to runthe payload of the webhook event that causes the workflow to runthe url of this action rungetId()the action run ida unique number for each run of a repositoryIf this is triggered by a PR from a forked repository or an untrusted user, we need to check if it is approved and limit permissions when running the workflow.has the commit/tag/… the action run ran on been deletedmay need approval if it's a fork pull requestthe commit/tag/… the action run ran onGet repositorythe cron id for the schedule triggerwhen the action run was startedthe current status of this runwhen the action run was stoppedgetTitle()the action run's titlethe trigger event defined in the `on` configuration of the triggered workflowGet triggerUserwhen the action run was last updatedthe name of workflow fileinthashCode()indexInRepo(Long indexInRepo) isForkPullRequest(Boolean isForkPullRequest) isRefDeleted(Boolean isRefDeleted) needApproval(Boolean needApproval) repository(Repository repository) scheduleID(Long scheduleID) voidsetApprovedBy(Long approvedBy) voidsetCommitSha(String commitSha) voidsetCreated(OffsetDateTime created) voidsetDuration(Long duration) voidvoidsetEventPayload(String eventPayload) voidsetHtmlUrl(String htmlUrl) voidvoidsetIndexInRepo(Long indexInRepo) voidsetIsForkPullRequest(Boolean isForkPullRequest) voidsetIsRefDeleted(Boolean isRefDeleted) voidsetNeedApproval(Boolean needApproval) voidsetPrettyref(String prettyref) voidsetRepository(Repository repository) voidsetScheduleID(Long scheduleID) voidsetStarted(OffsetDateTime started) voidvoidsetStopped(OffsetDateTime stopped) voidvoidsetTriggerEvent(String triggerEvent) voidsetTriggerUser(User triggerUser) voidsetUpdated(OffsetDateTime updated) voidsetWorkflowId(String workflowId) started(OffsetDateTime started) stopped(OffsetDateTime stopped) toJson()Convert an instance of ActionRun to an JSON stringtoString()triggerEvent(String triggerEvent) triggerUser(User triggerUser) updated(OffsetDateTime updated) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundworkflowId(String workflowId)
-
Field Details
-
SERIALIZED_NAME_SCHEDULE_I_D
- See Also:
-
SERIALIZED_NAME_APPROVED_BY
- See Also:
-
SERIALIZED_NAME_COMMIT_SHA
- See Also:
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_DURATION
- See Also:
-
SERIALIZED_NAME_EVENT
- See Also:
-
SERIALIZED_NAME_EVENT_PAYLOAD
- See Also:
-
SERIALIZED_NAME_HTML_URL
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_INDEX_IN_REPO
- See Also:
-
SERIALIZED_NAME_IS_FORK_PULL_REQUEST
- See Also:
-
SERIALIZED_NAME_IS_REF_DELETED
- See Also:
-
SERIALIZED_NAME_NEED_APPROVAL
- See Also:
-
SERIALIZED_NAME_PRETTYREF
- See Also:
-
SERIALIZED_NAME_REPOSITORY
- See Also:
-
SERIALIZED_NAME_STARTED
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_STOPPED
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_TRIGGER_EVENT
- See Also:
-
SERIALIZED_NAME_TRIGGER_USER
- See Also:
-
SERIALIZED_NAME_UPDATED
- See Also:
-
SERIALIZED_NAME_WORKFLOW_ID
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ActionRun
public ActionRun()
-
-
Method Details
-
scheduleID
-
getScheduleID
the cron id for the schedule trigger- Returns:
- scheduleID
-
setScheduleID
-
approvedBy
-
getApprovedBy
who approved this action run- Returns:
- approvedBy
-
setApprovedBy
-
commitSha
-
getCommitSha
the commit sha the action run ran on- Returns:
- commitSha
-
setCommitSha
-
created
-
getCreated
when the action run was created- Returns:
- created
-
setCreated
-
duration
-
getDuration
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.- Returns:
- duration
-
setDuration
-
event
-
getEvent
the webhook event that causes the workflow to run- Returns:
- event
-
setEvent
-
eventPayload
-
getEventPayload
the payload of the webhook event that causes the workflow to run- Returns:
- eventPayload
-
setEventPayload
-
htmlUrl
-
getHtmlUrl
the url of this action run- Returns:
- htmlUrl
-
setHtmlUrl
-
id
-
getId
the action run id- Returns:
- id
-
setId
-
indexInRepo
-
getIndexInRepo
a unique number for each run of a repository- Returns:
- indexInRepo
-
setIndexInRepo
-
isForkPullRequest
-
getIsForkPullRequest
If this is triggered by a PR from a forked repository or an untrusted user, we need to check if it is approved and limit permissions when running the workflow.- Returns:
- isForkPullRequest
-
setIsForkPullRequest
-
isRefDeleted
-
getIsRefDeleted
has the commit/tag/… the action run ran on been deleted- Returns:
- isRefDeleted
-
setIsRefDeleted
-
needApproval
-
getNeedApproval
may need approval if it's a fork pull request- Returns:
- needApproval
-
setNeedApproval
-
prettyref
-
getPrettyref
the commit/tag/… the action run ran on- Returns:
- prettyref
-
setPrettyref
-
repository
-
getRepository
Get repository- Returns:
- repository
-
setRepository
-
started
-
getStarted
when the action run was started- Returns:
- started
-
setStarted
-
status
-
getStatus
the current status of this run- Returns:
- status
-
setStatus
-
stopped
-
getStopped
when the action run was stopped- Returns:
- stopped
-
setStopped
-
title
-
getTitle
the action run's title- Returns:
- title
-
setTitle
-
triggerEvent
-
getTriggerEvent
the trigger event defined in the `on` configuration of the triggered workflow- Returns:
- triggerEvent
-
setTriggerEvent
-
triggerUser
-
getTriggerUser
Get triggerUser- Returns:
- triggerUser
-
setTriggerUser
-
updated
-
getUpdated
when the action run was last updated- Returns:
- updated
-
setUpdated
-
workflowId
-
getWorkflowId
the name of workflow file- Returns:
- workflowId
-
setWorkflowId
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ActionRun
-
fromJson
Create an instance of ActionRun given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ActionRun
- Throws:
IOException- if the JSON string is invalid with respect to ActionRun
-
toJson
Convert an instance of ActionRun to an JSON string- Returns:
- JSON string
-