From 12f797ea149375dbb47f173c6240c4c97f780436 Mon Sep 17 00:00:00 2001 From: Dorian Vallant Date: Tue, 17 May 2022 15:03:03 +0200 Subject: [PATCH] Add format "int64" to HealthConfig --- api-model-v1-41/docker-engine-api-v1.41.yaml | 3 +++ api-model-v1-41/docs/HealthConfig.md | 6 +++--- .../kotlin/de/gesellix/docker/remote/api/HealthConfig.kt | 6 +++--- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/api-model-v1-41/docker-engine-api-v1.41.yaml b/api-model-v1-41/docker-engine-api-v1.41.yaml index c0d1a250..fcbedd89 100644 --- a/api-model-v1-41/docker-engine-api-v1.41.yaml +++ b/api-model-v1-41/docker-engine-api-v1.41.yaml @@ -725,11 +725,13 @@ definitions: The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. type: "integer" + format: "int64" Timeout: description: | The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit. type: "integer" + format: "int64" Retries: description: | The number of consecutive failures needed to consider a container as @@ -741,6 +743,7 @@ definitions: health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. type: "integer" + format: "int64" Health: description: | diff --git a/api-model-v1-41/docs/HealthConfig.md b/api-model-v1-41/docs/HealthConfig.md index 64d67527..72316f93 100644 --- a/api-model-v1-41/docs/HealthConfig.md +++ b/api-model-v1-41/docs/HealthConfig.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **test** | **kotlin.collections.MutableList<kotlin.String>** | The test to perform. Possible values are: - `[]` inherit healthcheck from image or parent image - `[\"NONE\"]` disable healthcheck - `[\"CMD\", args...]` exec arguments directly - `[\"CMD-SHELL\", command]` run command with system's default shell | [optional] -**interval** | **kotlin.Int** | The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. | [optional] -**timeout** | **kotlin.Int** | The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit. | [optional] +**interval** | **kotlin.Long** | The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. | [optional] +**timeout** | **kotlin.Long** | The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit. | [optional] **retries** | **kotlin.Int** | The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit. | [optional] -**startPeriod** | **kotlin.Int** | Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. | [optional] +**startPeriod** | **kotlin.Long** | Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. | [optional] diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HealthConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HealthConfig.kt index ed1deda6..5f5de9c8 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HealthConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HealthConfig.kt @@ -41,11 +41,11 @@ data class HealthConfig( /* The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ @Json(name = "Interval") - var interval: kotlin.Int? = null, + var interval: kotlin.Long? = null, /* The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ @Json(name = "Timeout") - var timeout: kotlin.Int? = null, + var timeout: kotlin.Long? = null, /* The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit. */ @Json(name = "Retries") @@ -53,6 +53,6 @@ data class HealthConfig( /* Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ @Json(name = "StartPeriod") - var startPeriod: kotlin.Int? = null + var startPeriod: kotlin.Long? = null )