Class ActionRunner

java.lang.Object
build.cursed.genapi.forgejo.model.ActionRunner

@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 ActionRunner extends Object
ActionRunner represents a runner
  • Field Details

  • Constructor Details

    • ActionRunner

      public ActionRunner()
  • Method Details

    • description

      public ActionRunner description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Description provides optional details about this runner.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • ephemeral

      public ActionRunner ephemeral(@Nullable Boolean ephemeral)
    • getEphemeral

      @Nullable public Boolean getEphemeral()
      Indicates if runner is ephemeral runner
      Returns:
      ephemeral
    • setEphemeral

      public void setEphemeral(@Nullable Boolean ephemeral)
    • id

      public ActionRunner id(@Nullable Long id)
    • getId

      @Nullable public Long getId()
      ID uniquely identifies this runner.
      Returns:
      id
    • setId

      public void setId(@Nullable Long id)
    • labels

      public ActionRunner labels(@Nullable List<String> labels)
    • addLabelsItem

      public ActionRunner addLabelsItem(String labelsItem)
    • getLabels

      @Nullable public List<String> getLabels()
      Labels is a list of labels attached to this runner.
      Returns:
      labels
    • setLabels

      public void setLabels(@Nullable List<String> labels)
    • name

      public ActionRunner name(@Nullable String name)
    • getName

      @Nullable public String getName()
      Name of the runner; not unique.
      Returns:
      name
    • setName

      public void setName(@Nullable String name)
    • ownerId

      public ActionRunner ownerId(@Nullable Long ownerId)
    • getOwnerId

      @Nullable public Long getOwnerId()
      OwnerID is the identifier of the user or organization this runner belongs to. O if the runner is owned by a repository.
      Returns:
      ownerId
    • setOwnerId

      public void setOwnerId(@Nullable Long ownerId)
    • repoId

      public ActionRunner repoId(@Nullable Long repoId)
    • getRepoId

      @Nullable public Long getRepoId()
      RepoID is the identifier of the repository this runner belongs to. 0 if the runner belongs to a user or organization.
      Returns:
      repoId
    • setRepoId

      public void setRepoId(@Nullable Long repoId)
    • status

      public ActionRunner status(@Nullable ActionRunner.StatusEnum status)
    • getStatus

      @Nullable public ActionRunner.StatusEnum getStatus()
      Status indicates whether this runner is offline, or active, for example.
      Returns:
      status
    • setStatus

      public void setStatus(@Nullable ActionRunner.StatusEnum status)
    • uuid

      public ActionRunner uuid(@Nullable String uuid)
    • getUuid

      @Nullable public String getUuid()
      UUID uniquely identifies this runner.
      Returns:
      uuid
    • setUuid

      public void setUuid(@Nullable String uuid)
    • version

      public ActionRunner version(@Nullable String version)
    • getVersion

      @Nullable public String getVersion()
      Version is the self-reported version string of Forgejo Runner.
      Returns:
      version
    • setVersion

      public void setVersion(@Nullable String version)
    • 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 ActionRunner
    • fromJson

      public static ActionRunner fromJson(String jsonString) throws IOException
      Create an instance of ActionRunner given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ActionRunner
      Throws:
      IOException - if the JSON string is invalid with respect to ActionRunner
    • toJson

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