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
  • Field Details

  • Constructor Details

    • ActionRun

      public ActionRun()
  • Method Details

    • scheduleID

      public ActionRun scheduleID(@Nullable Long scheduleID)
    • getScheduleID

      @Nullable public Long getScheduleID()
      the cron id for the schedule trigger
      Returns:
      scheduleID
    • setScheduleID

      public void setScheduleID(@Nullable Long scheduleID)
    • approvedBy

      public ActionRun approvedBy(@Nullable Long approvedBy)
    • getApprovedBy

      @Nullable public Long getApprovedBy()
      who approved this action run
      Returns:
      approvedBy
    • setApprovedBy

      public void setApprovedBy(@Nullable Long approvedBy)
    • commitSha

      public ActionRun commitSha(@Nullable String commitSha)
    • getCommitSha

      @Nullable public String getCommitSha()
      the commit sha the action run ran on
      Returns:
      commitSha
    • setCommitSha

      public void setCommitSha(@Nullable String commitSha)
    • created

      public ActionRun created(@Nullable OffsetDateTime created)
    • getCreated

      @Nullable public OffsetDateTime getCreated()
      when the action run was created
      Returns:
      created
    • setCreated

      public void setCreated(@Nullable OffsetDateTime created)
    • duration

      public ActionRun duration(@Nullable Long duration)
    • getDuration

      @Nullable public Long 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

      public void setDuration(@Nullable Long duration)
    • event

      public ActionRun event(@Nullable String event)
    • getEvent

      @Nullable public String getEvent()
      the webhook event that causes the workflow to run
      Returns:
      event
    • setEvent

      public void setEvent(@Nullable String event)
    • eventPayload

      public ActionRun eventPayload(@Nullable String eventPayload)
    • getEventPayload

      @Nullable public String getEventPayload()
      the payload of the webhook event that causes the workflow to run
      Returns:
      eventPayload
    • setEventPayload

      public void setEventPayload(@Nullable String eventPayload)
    • htmlUrl

      public ActionRun htmlUrl(@Nullable String htmlUrl)
    • getHtmlUrl

      @Nullable public String getHtmlUrl()
      the url of this action run
      Returns:
      htmlUrl
    • setHtmlUrl

      public void setHtmlUrl(@Nullable String htmlUrl)
    • id

      public ActionRun id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      the action run id
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • indexInRepo

      public ActionRun indexInRepo(@Nullable Long indexInRepo)
    • getIndexInRepo

      @Nullable public Long getIndexInRepo()
      a unique number for each run of a repository
      Returns:
      indexInRepo
    • setIndexInRepo

      public void setIndexInRepo(@Nullable Long indexInRepo)
    • isForkPullRequest

      public ActionRun isForkPullRequest(@Nullable Boolean isForkPullRequest)
    • getIsForkPullRequest

      @Nullable public Boolean 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

      public void setIsForkPullRequest(@Nullable Boolean isForkPullRequest)
    • isRefDeleted

      public ActionRun isRefDeleted(@Nullable Boolean isRefDeleted)
    • getIsRefDeleted

      @Nullable public Boolean getIsRefDeleted()
      has the commit/tag/… the action run ran on been deleted
      Returns:
      isRefDeleted
    • setIsRefDeleted

      public void setIsRefDeleted(@Nullable Boolean isRefDeleted)
    • needApproval

      public ActionRun needApproval(@Nullable Boolean needApproval)
    • getNeedApproval

      @Nullable public Boolean getNeedApproval()
      may need approval if it's a fork pull request
      Returns:
      needApproval
    • setNeedApproval

      public void setNeedApproval(@Nullable Boolean needApproval)
    • prettyref

      public ActionRun prettyref(@Nullable String prettyref)
    • getPrettyref

      @Nullable public String getPrettyref()
      the commit/tag/… the action run ran on
      Returns:
      prettyref
    • setPrettyref

      public void setPrettyref(@Nullable String prettyref)
    • repository

      public ActionRun repository(@Nullable Repository repository)
    • getRepository

      @Nullable public Repository getRepository()
      Get repository
      Returns:
      repository
    • setRepository

      public void setRepository(@Nullable Repository repository)
    • started

      public ActionRun started(@Nullable OffsetDateTime started)
    • getStarted

      @Nullable public OffsetDateTime getStarted()
      when the action run was started
      Returns:
      started
    • setStarted

      public void setStarted(@Nullable OffsetDateTime started)
    • status

      public ActionRun status(@Nullable String status)
    • getStatus

      @Nullable public String getStatus()
      the current status of this run
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable String status)
    • stopped

      public ActionRun stopped(@Nullable OffsetDateTime stopped)
    • getStopped

      @Nullable public OffsetDateTime getStopped()
      when the action run was stopped
      Returns:
      stopped
    • setStopped

      public void setStopped(@Nullable OffsetDateTime stopped)
    • title

      public ActionRun title(@Nullable String title)
    • getTitle

      @Nullable public String getTitle()
      the action run's title
      Returns:
      title
    • setTitle

      public void setTitle(@Nullable String title)
    • triggerEvent

      public ActionRun triggerEvent(@Nullable String triggerEvent)
    • getTriggerEvent

      @Nullable public String getTriggerEvent()
      the trigger event defined in the `on` configuration of the triggered workflow
      Returns:
      triggerEvent
    • setTriggerEvent

      public void setTriggerEvent(@Nullable String triggerEvent)
    • triggerUser

      public ActionRun triggerUser(@Nullable User triggerUser)
    • getTriggerUser

      @Nullable public User getTriggerUser()
      Get triggerUser
      Returns:
      triggerUser
    • setTriggerUser

      public void setTriggerUser(@Nullable User triggerUser)
    • updated

      public ActionRun updated(@Nullable OffsetDateTime updated)
    • getUpdated

      @Nullable public OffsetDateTime getUpdated()
      when the action run was last updated
      Returns:
      updated
    • setUpdated

      public void setUpdated(@Nullable OffsetDateTime updated)
    • workflowId

      public ActionRun workflowId(@Nullable String workflowId)
    • getWorkflowId

      @Nullable public String getWorkflowId()
      the name of workflow file
      Returns:
      workflowId
    • setWorkflowId

      public void setWorkflowId(@Nullable String workflowId)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static ActionRun fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of ActionRun to an JSON string
      Returns:
      JSON string