All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.gesellix.docker.remote.api.Task.kt Maven / Gradle / Ivy

/**
 *
 * Please note:
 * This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * Do not edit this file manually.
 *
 */

@file:Suppress(
  "ArrayInDataClass",
  "EnumEntryName",
  "RemoveRedundantQualifierName",
  "UnusedImport"
)

package de.gesellix.docker.remote.api

import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass

/**
 *
 *
 * @param ID The ID of the task.
 * @param version
 * @param createdAt
 * @param updatedAt
 * @param name Name of the task.
 * @param labels User-defined key/value metadata.
 * @param spec
 * @param serviceID The ID of the service this task is part of.
 * @param slot
 * @param nodeID The ID of the node that this task is on.
 * @param assignedGenericResources User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`).
 * @param status
 * @param desiredState
 * @param jobIteration
 */
@JsonClass(generateAdapter = true)

data class Task(

  /* The ID of the task. */
  @Json(name = "ID")
  var ID: kotlin.String? = null,

  @Json(name = "Version")
  var version: ObjectVersion? = null,

  @Json(name = "CreatedAt")
  var createdAt: kotlin.String? = null,

  @Json(name = "UpdatedAt")
  var updatedAt: kotlin.String? = null,

  /* Name of the task. */
  @Json(name = "Name")
  var name: kotlin.String? = null,

  /* User-defined key/value metadata. */
  @Json(name = "Labels")
  var labels: kotlin.collections.MutableMap? = null,

  @Json(name = "Spec")
  var spec: TaskSpec? = null,

  /* The ID of the service this task is part of. */
  @Json(name = "ServiceID")
  var serviceID: kotlin.String? = null,

  @Json(name = "Slot")
  var slot: kotlin.Int? = null,

  /* The ID of the node that this task is on. */
  @Json(name = "NodeID")
  var nodeID: kotlin.String? = null,

  /* User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`).  */
  @Json(name = "AssignedGenericResources")
  var assignedGenericResources: kotlin.collections.MutableList? = null,

  @Json(name = "Status")
  var status: TaskStatus? = null,

  @Json(name = "DesiredState")
  var desiredState: TaskState? = null,

  @Json(name = "JobIteration")
  var jobIteration: ObjectVersion? = null

)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy