/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.12.53 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-internal/0.12.53/play_2_6 */ package io.apibuilder.internal.v0.models { sealed trait TaskData extends _root_.scala.Product with _root_.scala.Serializable /** * @param numberAttempts Records the number of times we have attempted to run this task. Commonly we * increment number attempts, process the task, and if succeeds we then delete the * task. If it fails, we update last_error. This allows us to retry a task say * twice; after which we no longer process the task (can notify an admin of the * error). */ final case class Task( guid: _root_.java.util.UUID, data: io.apibuilder.internal.v0.models.TaskData, numberAttempts: Long = 0L, lastError: _root_.scala.Option[String] = None ) final case class TaskDataDiffVersion( oldVersionGuid: _root_.java.util.UUID, newVersionGuid: _root_.java.util.UUID ) extends TaskData final case class TaskDataIndexApplication( applicationGuid: _root_.java.util.UUID ) extends TaskData /** * Provides future compatibility in clients - in the future, when a type is added * to the union TaskData, it will need to be handled in the client code. This * implementation will deserialize these future types as an instance of this class. * * @param description Information about the type that we received that is undefined in this version of * the client. */ final case class TaskDataUndefinedType( description: String ) extends TaskData }