ActionRunnerDto

com.worxbend.codeberg4s.repositories.actions.wire.ActionRunnerDto
See theActionRunnerDto companion object
final case class ActionRunnerDto(id: Option[Long], uuid: Option[String], name: Option[String], description: Option[String], status: Option[String], labels: Vector[String], ephemeral: Option[Boolean], ownerId: Option[Long], repoId: Option[Long])

Forgejo's ActionRunner model, field for field.

'''Derived from the spec, not from a capture'''; see ActionArtifactDto.

status is one of the few Forgejo fields the spec enumerates — offline, idle, active — which is why com.worxbend.codeberg4s.repositories.actions.RunnerStatus exists at all.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

toDomainAt for a payload that is the whole response body.

toDomainAt for a payload that is the whole response body.

Attributes

Converts to the domain, reporting failure paths relative to at.

Converts to the domain, reporting failure paths relative to at.

Only id is required, and it is turned into a com.worxbend.codeberg4s.repositories.actions.RunnerId — a string — because that is what the runner path takes; see that type for the argument. A runner without one could not be read again or deleted.

owner_id and repo_id are dropped when they are 0, which is how the spec spells "this runner is not owned that way". status that is outside the enumerated set becomes None rather than failing, per com.worxbend.codeberg4s.repositories.actions.RunnerStatus.parse.

Attributes

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product