de.gesellix.docker.remote.api.Task.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-remote-api-model-1-45 Show documentation
Show all versions of docker-remote-api-model-1-45 Show documentation
API model for the Docker remote api v1.45
/**
*
* 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,
)