de.gesellix.docker.remote.api.ServiceServiceStatus.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-41 Show documentation
Show all versions of docker-remote-api-model-1-41 Show documentation
API model for the Docker remote api v1.41
/**
*
* 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
/**
* The status of the service's tasks. Provided only when requested as part of a ServiceList operation.
*
* @param runningTasks The number of tasks for the service currently in the Running state.
* @param desiredTasks The number of tasks for the service desired to be running. For replicated services, this is the replica count from the service spec. For global services, this is computed by taking count of all tasks for the service with a Desired State other than Shutdown.
* @param completedTasks The number of tasks for a job that are in the Completed state. This field must be cross-referenced with the service type, as the value of 0 may mean the service is not in a job mode, or it may mean the job-mode service has no tasks yet Completed.
*/
@JsonClass(generateAdapter = true)
data class ServiceServiceStatus(
// The number of tasks for the service currently in the Running state.
@Json(name = "RunningTasks")
var runningTasks: kotlin.Int? = null,
// The number of tasks for the service desired to be running. For replicated services, this is the replica count from the service spec. For global services, this is computed by taking count of all tasks for the service with a Desired State other than Shutdown.
@Json(name = "DesiredTasks")
var desiredTasks: kotlin.Int? = null,
// The number of tasks for a job that are in the Completed state. This field must be cross-referenced with the service type, as the value of 0 may mean the service is not in a job mode, or it may mean the job-mode service has no tasks yet Completed.
@Json(name = "CompletedTasks")
var completedTasks: kotlin.Int? = null,
)