diff --git a/.editorconfig b/.editorconfig index 8c6ce907..6b8733d5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -18,7 +18,7 @@ insert_final_newline = true # it's automatically set to 100 on `ktlint --android ...` (per Android Kotlin Style Guide) max_line_length = off trim_trailing_whitespace = true -ktlint_disabled_rules = no-wildcard-imports +# ktlint_disabled_rules = no-wildcard-imports # ktlint_standard_no-wildcard-imports = disabled # ktlint_standard_enum-entry-name-case = disabled # ktlint_standard = disabled diff --git a/api-model-v1-41/build.gradle.kts b/api-model-v1-41/build.gradle.kts index abd68bd6..b34dda57 100644 --- a/api-model-v1-41/build.gradle.kts +++ b/api-model-v1-41/build.gradle.kts @@ -24,6 +24,10 @@ configure { exclude { it.file.path.startsWith(file(layout.buildDirectory.dir("generated")).path) } + exclude("**/build.gradle.kts") + exclude { + it.file.path.endsWith("build.gradle.kts") + } } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Address.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Address.kt index 9334480f..241b422a 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Address.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Address.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param prefixLen Mask length of the IP address. */ @JsonClass(generateAdapter = true) - data class Address( - - /* IP address. */ + // IP address. @Json(name = "Addr") var addr: kotlin.String? = null, - - /* Mask length of the IP address. */ + // Mask length of the IP address. @Json(name = "PrefixLen") - var prefixLen: kotlin.Int? = null - + var prefixLen: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/AuthConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/AuthConfig.kt index be5dc4ba..738853b0 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/AuthConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/AuthConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,19 +27,13 @@ import com.squareup.moshi.JsonClass * @param serveraddress */ @JsonClass(generateAdapter = true) - data class AuthConfig( - @Json(name = "username") var username: kotlin.String? = null, - @Json(name = "password") var password: kotlin.String? = null, - @Json(name = "email") var email: kotlin.String? = null, - @Json(name = "serveraddress") - var serveraddress: kotlin.String? = null - + var serveraddress: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildCache.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildCache.kt index dddca576..315aa600 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildCache.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildCache.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -34,54 +34,40 @@ import com.squareup.moshi.JsonClass * @param usageCount */ @JsonClass(generateAdapter = true) - data class BuildCache( - - /* Unique ID of the build cache record. */ + // Unique ID of the build cache record. @Json(name = "ID") var ID: kotlin.String? = null, - - /* ID of the parent build cache record. > **Deprecated**: This field is deprecated, and omitted if empty. */ + // ID of the parent build cache record. > **Deprecated**: This field is deprecated, and omitted if empty. @Json(name = "Parent") var parent: kotlin.String? = null, - - /* List of parent build cache record IDs. */ + // List of parent build cache record IDs. @Json(name = "Parents") var parents: kotlin.collections.MutableList? = null, - - /* Cache record type. */ + // Cache record type. @Json(name = "Type") var type: BuildCache.Type? = null, - - /* Description of the build-step that produced the build cache. */ + // Description of the build-step that produced the build cache. @Json(name = "Description") var description: kotlin.String? = null, - - /* Indicates if the build cache is in use. */ + // Indicates if the build cache is in use. @Json(name = "InUse") var inUse: kotlin.Boolean? = null, - - /* Indicates if the build cache is shared. */ + // Indicates if the build cache is shared. @Json(name = "Shared") var shared: kotlin.Boolean? = null, - - /* Amount of disk space used by the build cache (in bytes). */ + // Amount of disk space used by the build cache (in bytes). @Json(name = "Size") var propertySize: kotlin.Int? = null, - - /* Date and time at which the build cache was created in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the build cache was created in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "CreatedAt") var createdAt: kotlin.String? = null, - - /* Date and time at which the build cache was last used in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the build cache was last used in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "LastUsedAt") var lastUsedAt: kotlin.String? = null, - @Json(name = "UsageCount") - var usageCount: kotlin.Int? = null - + var usageCount: kotlin.Int? = null, ) { - /** * Cache record type. * @@ -105,6 +91,6 @@ data class BuildCache( ExecPeriodCachemount("exec.cachemount"), @Json(name = "regular") - Regular("regular"); + Regular("regular"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildInfo.kt index f99308f2..8deed701 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,31 +31,21 @@ import com.squareup.moshi.JsonClass * @param aux */ @JsonClass(generateAdapter = true) - data class BuildInfo( - @Json(name = "id") var id: kotlin.String? = null, - @Json(name = "stream") var stream: kotlin.String? = null, - @Json(name = "error") var error: kotlin.String? = null, - @Json(name = "errorDetail") var errorDetail: ErrorDetail? = null, - @Json(name = "status") var status: kotlin.String? = null, - @Json(name = "progress") var progress: kotlin.String? = null, - @Json(name = "progressDetail") var progressDetail: ProgressDetail? = null, - @Json(name = "aux") - var aux: ImageID? = null - + var aux: ImageID? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildPruneResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildPruneResponse.kt index b6faff1f..b0be3cb6 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildPruneResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildPruneResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,14 +25,10 @@ import com.squareup.moshi.JsonClass * @param spaceReclaimed Disk space reclaimed in bytes */ @JsonClass(generateAdapter = true) - data class BuildPruneResponse( - @Json(name = "CachesDeleted") var cachesDeleted: kotlin.collections.MutableList? = null, - - /* Disk space reclaimed in bytes */ + // Disk space reclaimed in bytes @Json(name = "SpaceReclaimed") - var spaceReclaimed: kotlin.Long? = null - + var spaceReclaimed: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ChangeType.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ChangeType.kt index beb6bf51..c76d0e50 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ChangeType.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ChangeType.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = false) enum class ChangeType(val value: kotlin.Int) { - @Json(name = "0") T0(0), @@ -34,7 +33,8 @@ enum class ChangeType(val value: kotlin.Int) { T1(1), @Json(name = "2") - T2(2); + T2(2), + ; /** * Override [toString()] to avoid using the enum variable name as the value, and instead use @@ -54,11 +54,12 @@ enum class ChangeType(val value: kotlin.Int) { /** * Returns a valid [ChangeType] for [data], null otherwise. */ - fun decode(data: kotlin.Any?): ChangeType? = data?.let { - val normalizedData = "$it".lowercase() - values().firstOrNull { value -> - it == value || normalizedData == "$value".lowercase() + fun decode(data: kotlin.Any?): ChangeType? = + data?.let { + val normalizedData = "$it".lowercase() + values().firstOrNull { value -> + it == value || normalizedData == "$value".lowercase() + } } - } } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterInfo.kt index 657c0206..15db9529 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -33,44 +33,32 @@ import com.squareup.moshi.JsonClass * @param subnetSize SubnetSize specifies the subnet size of the networks created from the default subnet pool. */ @JsonClass(generateAdapter = true) - data class ClusterInfo( - - /* The ID of the swarm. */ + // The ID of the swarm. @Json(name = "ID") var ID: kotlin.String? = null, - @Json(name = "Version") var version: ObjectVersion? = null, - - /* Date and time at which the swarm was initialised in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the swarm was initialised in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "CreatedAt") var createdAt: kotlin.String? = null, - - /* Date and time at which the swarm was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the swarm was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "UpdatedAt") var updatedAt: kotlin.String? = null, - @Json(name = "Spec") var spec: SwarmSpec? = null, - @Json(name = "TLSInfo") var tlSInfo: TLSInfo? = null, - - /* Whether there is currently a root CA rotation in progress for the swarm */ + // Whether there is currently a root CA rotation in progress for the swarm @Json(name = "RootRotationInProgress") var rootRotationInProgress: kotlin.Boolean? = null, - - /* DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. If no port is set or is set to 0, the default port (4789) is used. */ + // DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. If no port is set or is set to 0, the default port (4789) is used. @Json(name = "DataPathPort") var dataPathPort: kotlin.Int? = null, - - /* Default Address Pool specifies default subnet pools for global scope networks. */ + // Default Address Pool specifies default subnet pools for global scope networks. @Json(name = "DefaultAddrPool") var defaultAddrPool: kotlin.collections.MutableList? = null, - - /* SubnetSize specifies the subnet size of the networks created from the default subnet pool. */ + // SubnetSize specifies the subnet size of the networks created from the default subnet pool. @Json(name = "SubnetSize") - var subnetSize: kotlin.Int? = null - + var subnetSize: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolume.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolume.kt index f9259f15..3056cbe3 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolume.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolume.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -30,30 +30,21 @@ import com.squareup.moshi.JsonClass * @param publishStatus The status of the volume as it pertains to its publishing and use on specific nodes */ @JsonClass(generateAdapter = true) - data class ClusterVolume( - - /* The Swarm ID of this volume. Because cluster volumes are Swarm objects, they have an ID, unlike non-cluster volumes. This ID can be used to refer to the Volume instead of the name. */ + // The Swarm ID of this volume. Because cluster volumes are Swarm objects, they have an ID, unlike non-cluster volumes. This ID can be used to refer to the Volume instead of the name. @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, - @Json(name = "Spec") var spec: ClusterVolumeSpec? = null, - @Json(name = "Info") var info: ClusterVolumeInfo? = null, - - /* The status of the volume as it pertains to its publishing and use on specific nodes */ + // The status of the volume as it pertains to its publishing and use on specific nodes @Json(name = "PublishStatus") - var publishStatus: kotlin.collections.MutableList? = null - + var publishStatus: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeInfo.kt index e6af2513..020c0822 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,23 +27,17 @@ import com.squareup.moshi.JsonClass * @param accessibleTopology The topology this volume is actually accessible from. */ @JsonClass(generateAdapter = true) - data class ClusterVolumeInfo( - - /* The capacity of the volume in bytes. A value of 0 indicates that the capacity is unknown. */ + // The capacity of the volume in bytes. A value of 0 indicates that the capacity is unknown. @Json(name = "CapacityBytes") var capacityBytes: kotlin.Long? = null, - - /* A map of strings to strings returned from the storage plugin when the volume is created. */ + // A map of strings to strings returned from the storage plugin when the volume is created. @Json(name = "VolumeContext") var volumeContext: kotlin.collections.MutableMap? = null, - - /* The ID of the volume as returned by the CSI storage plugin. This is distinct from the volume's ID as provided by Docker. This ID is never used by the user when communicating with Docker to refer to this volume. If the ID is blank, then the Volume has not been successfully created in the plugin yet. */ + // The ID of the volume as returned by the CSI storage plugin. This is distinct from the volume's ID as provided by Docker. This ID is never used by the user when communicating with Docker to refer to this volume. If the ID is blank, then the Volume has not been successfully created in the plugin yet. @Json(name = "VolumeID") var volumeID: kotlin.String? = null, - - /* The topology this volume is actually accessible from. */ + // The topology this volume is actually accessible from. @Json(name = "AccessibleTopology") - var accessibleTopology: kotlin.collections.MutableList>? = null - + var accessibleTopology: kotlin.collections.MutableList>? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumePublishStatusInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumePublishStatusInner.kt index d2e32a37..f726d517 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumePublishStatusInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumePublishStatusInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,23 +26,17 @@ import com.squareup.moshi.JsonClass * @param publishContext A map of strings to strings returned by the CSI controller plugin when a volume is published. */ @JsonClass(generateAdapter = true) - data class ClusterVolumePublishStatusInner( - - /* The ID of the Swarm node the volume is published on. */ + // The ID of the Swarm node the volume is published on. @Json(name = "NodeID") var nodeID: kotlin.String? = null, - - /* The published state of the volume. * `pending-publish` The volume should be published to this node, but the call to the controller plugin to do so has not yet been successfully completed. * `published` The volume is published successfully to the node. * `pending-node-unpublish` The volume should be unpublished from the node, and the manager is awaiting confirmation from the worker that it has done so. * `pending-controller-unpublish` The volume is successfully unpublished from the node, but has not yet been successfully unpublished on the controller. */ + // The published state of the volume. * `pending-publish` The volume should be published to this node, but the call to the controller plugin to do so has not yet been successfully completed. * `published` The volume is published successfully to the node. * `pending-node-unpublish` The volume should be unpublished from the node, and the manager is awaiting confirmation from the worker that it has done so. * `pending-controller-unpublish` The volume is successfully unpublished from the node, but has not yet been successfully unpublished on the controller. @Json(name = "State") var state: ClusterVolumePublishStatusInner.State? = null, - - /* A map of strings to strings returned by the CSI controller plugin when a volume is published. */ + // A map of strings to strings returned by the CSI controller plugin when a volume is published. @Json(name = "PublishContext") - var publishContext: kotlin.collections.MutableMap? = null - + var publishContext: kotlin.collections.MutableMap? = null, ) { - /** * The published state of the volume. * `pending-publish` The volume should be published to this node, but the call to the controller plugin to do so has not yet been successfully completed. * `published` The volume is published successfully to the node. * `pending-node-unpublish` The volume should be unpublished from the node, and the manager is awaiting confirmation from the worker that it has done so. * `pending-controller-unpublish` The volume is successfully unpublished from the node, but has not yet been successfully unpublished on the controller. * @@ -60,6 +54,6 @@ data class ClusterVolumePublishStatusInner( PendingMinusNodeMinusUnpublish("pending-node-unpublish"), @Json(name = "pending-controller-unpublish") - PendingMinusControllerMinusUnpublish("pending-controller-unpublish"); + PendingMinusControllerMinusUnpublish("pending-controller-unpublish"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpec.kt index f0979192..ee4034cc 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,14 +25,10 @@ import com.squareup.moshi.JsonClass * @param accessMode */ @JsonClass(generateAdapter = true) - data class ClusterVolumeSpec( - - /* Group defines the volume group of this volume. Volumes belonging to the same group can be referred to by group name when creating Services. Referring to a volume by group instructs Swarm to treat volumes in that group interchangeably for the purpose of scheduling. Volumes with an empty string for a group technically all belong to the same, emptystring group. */ + // Group defines the volume group of this volume. Volumes belonging to the same group can be referred to by group name when creating Services. Referring to a volume by group instructs Swarm to treat volumes in that group interchangeably for the purpose of scheduling. Volumes with an empty string for a group technically all belong to the same, emptystring group. @Json(name = "Group") var group: kotlin.String? = null, - @Json(name = "AccessMode") - var accessMode: ClusterVolumeSpecAccessMode? = null - + var accessMode: ClusterVolumeSpecAccessMode? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessMode.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessMode.kt index 73fe1b78..75c554ec 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessMode.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessMode.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -30,37 +30,27 @@ import com.squareup.moshi.JsonClass * @param availability The availability of the volume for use in tasks. - `active` The volume is fully available for scheduling on the cluster - `pause` No new workloads should use the volume, but existing workloads are not stopped. - `drain` All workloads using this volume should be stopped and rescheduled, and no new ones should be started. */ @JsonClass(generateAdapter = true) - data class ClusterVolumeSpecAccessMode( - - /* The set of nodes this volume can be used on at one time. - `single` The volume may only be scheduled to one node at a time. - `multi` the volume may be scheduled to any supported number of nodes at a time. */ + // The set of nodes this volume can be used on at one time. - `single` The volume may only be scheduled to one node at a time. - `multi` the volume may be scheduled to any supported number of nodes at a time. @Json(name = "Scope") var scope: ClusterVolumeSpecAccessMode.Scope? = Scope.Single, - - /* The number and way that different tasks can use this volume at one time. - `none` The volume may only be used by one task at a time. - `readonly` The volume may be used by any number of tasks, but they all must mount the volume as readonly - `onewriter` The volume may be used by any number of tasks, but only one may mount it as read/write. - `all` The volume may have any number of readers and writers. */ + // The number and way that different tasks can use this volume at one time. - `none` The volume may only be used by one task at a time. - `readonly` The volume may be used by any number of tasks, but they all must mount the volume as readonly - `onewriter` The volume may be used by any number of tasks, but only one may mount it as read/write. - `all` The volume may have any number of readers and writers. @Json(name = "Sharing") var sharing: ClusterVolumeSpecAccessMode.Sharing? = Sharing.None, - - /* Options for using this volume as a Mount-type volume. Either MountVolume or BlockVolume, but not both, must be present. properties: FsType: type: \"string\" description: | Specifies the filesystem type for the mount volume. Optional. MountFlags: type: \"array\" description: | Flags to pass when mounting the volume. Optional. items: type: \"string\" BlockVolume: type: \"object\" description: | Options for using this volume as a Block-type volume. Intentionally empty. */ + // Options for using this volume as a Mount-type volume. Either MountVolume or BlockVolume, but not both, must be present. properties: FsType: type: \"string\" description: | Specifies the filesystem type for the mount volume. Optional. MountFlags: type: \"array\" description: | Flags to pass when mounting the volume. Optional. items: type: \"string\" BlockVolume: type: \"object\" description: | Options for using this volume as a Block-type volume. Intentionally empty. @Json(name = "MountVolume") var mountVolume: kotlin.Any? = null, - - /* Swarm Secrets that are passed to the CSI storage plugin when operating on this volume. */ + // Swarm Secrets that are passed to the CSI storage plugin when operating on this volume. @Json(name = "Secrets") var secrets: kotlin.collections.MutableList? = null, - @Json(name = "AccessibilityRequirements") var accessibilityRequirements: ClusterVolumeSpecAccessModeAccessibilityRequirements? = null, - @Json(name = "CapacityRange") var capacityRange: ClusterVolumeSpecAccessModeCapacityRange? = null, - - /* The availability of the volume for use in tasks. - `active` The volume is fully available for scheduling on the cluster - `pause` No new workloads should use the volume, but existing workloads are not stopped. - `drain` All workloads using this volume should be stopped and rescheduled, and no new ones should be started. */ + // The availability of the volume for use in tasks. - `active` The volume is fully available for scheduling on the cluster - `pause` No new workloads should use the volume, but existing workloads are not stopped. - `drain` All workloads using this volume should be stopped and rescheduled, and no new ones should be started. @Json(name = "Availability") - var availability: ClusterVolumeSpecAccessMode.Availability? = Availability.Active - + var availability: ClusterVolumeSpecAccessMode.Availability? = Availability.Active, ) { - /** * The set of nodes this volume can be used on at one time. - `single` The volume may only be scheduled to one node at a time. - `multi` the volume may be scheduled to any supported number of nodes at a time. * @@ -72,7 +62,7 @@ data class ClusterVolumeSpecAccessMode( Single("single"), @Json(name = "multi") - Multi("multi"); + Multi("multi"), } /** @@ -92,7 +82,7 @@ data class ClusterVolumeSpecAccessMode( Onewriter("onewriter"), @Json(name = "all") - All("all"); + All("all"), } /** @@ -109,6 +99,6 @@ data class ClusterVolumeSpecAccessMode( Pause("pause"), @Json(name = "drain") - Drain("drain"); + Drain("drain"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeAccessibilityRequirements.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeAccessibilityRequirements.kt index fc56f533..c3768ebc 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeAccessibilityRequirements.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeAccessibilityRequirements.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param preferred A list of topologies that the volume should attempt to be provisioned in. */ @JsonClass(generateAdapter = true) - data class ClusterVolumeSpecAccessModeAccessibilityRequirements( - - /* A list of required topologies, at least one of which the volume must be accessible from. */ + // A list of required topologies, at least one of which the volume must be accessible from. @Json(name = "Requisite") var requisite: kotlin.collections.MutableList>? = null, - - /* A list of topologies that the volume should attempt to be provisioned in. */ + // A list of topologies that the volume should attempt to be provisioned in. @Json(name = "Preferred") - var preferred: kotlin.collections.MutableList>? = null - + var preferred: kotlin.collections.MutableList>? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeCapacityRange.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeCapacityRange.kt index 9e5621c7..96340413 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeCapacityRange.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeCapacityRange.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param limitBytes The volume must not be bigger than this. The value of 0 indicates an unspecified maximum. */ @JsonClass(generateAdapter = true) - data class ClusterVolumeSpecAccessModeCapacityRange( - - /* The volume must be at least this big. The value of 0 indicates an unspecified minimum */ + // The volume must be at least this big. The value of 0 indicates an unspecified minimum @Json(name = "RequiredBytes") var requiredBytes: kotlin.Long? = null, - - /* The volume must not be bigger than this. The value of 0 indicates an unspecified maximum. */ + // The volume must not be bigger than this. The value of 0 indicates an unspecified maximum. @Json(name = "LimitBytes") - var limitBytes: kotlin.Long? = null - + var limitBytes: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeSecretsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeSecretsInner.kt index 14dbcb3a..d6a4f13f 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeSecretsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterVolumeSpecAccessModeSecretsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param secret Secret is the swarm Secret object from which to read data. This can be a Secret name or ID. The Secret data is retrieved by swarm and used as the value of the key-value pair passed to the plugin. */ @JsonClass(generateAdapter = true) - data class ClusterVolumeSpecAccessModeSecretsInner( - - /* Key is the name of the key of the key-value pair passed to the plugin. */ + // Key is the name of the key of the key-value pair passed to the plugin. @Json(name = "Key") var key: kotlin.String? = null, - - /* Secret is the swarm Secret object from which to read data. This can be a Secret name or ID. The Secret data is retrieved by swarm and used as the value of the key-value pair passed to the plugin. */ + // Secret is the swarm Secret object from which to read data. This can be a Secret name or ID. The Secret data is retrieved by swarm and used as the value of the key-value pair passed to the plugin. @Json(name = "Secret") - var secret: kotlin.String? = null - + var secret: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Commit.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Commit.kt index 47f65b86..77ce7446 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Commit.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Commit.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param expected Commit ID of external tool expected by dockerd as set at build time. */ @JsonClass(generateAdapter = true) - data class Commit( - - /* Actual commit ID of external tool. */ + // Actual commit ID of external tool. @Json(name = "ID") var ID: kotlin.String? = null, - - /* Commit ID of external tool expected by dockerd as set at build time. */ + // Commit ID of external tool expected by dockerd as set at build time. @Json(name = "Expected") - var expected: kotlin.String? = null - + var expected: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Config.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Config.kt index f9d755ac..d1ac38ed 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Config.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Config.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,22 +28,15 @@ import com.squareup.moshi.JsonClass * @param spec */ @JsonClass(generateAdapter = true) - data class Config( - @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, - @Json(name = "Spec") - var spec: ConfigSpec? = null - + var spec: ConfigSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigCreateRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigCreateRequest.kt index f4ad7b7b..03170b6e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigCreateRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigCreateRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,22 +27,16 @@ import com.squareup.moshi.JsonClass * @param templating */ @JsonClass(generateAdapter = true) - data class ConfigCreateRequest( - - /* User-defined name of the config. */ + // User-defined name of the config. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) config data. */ + // Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) config data. @Json(name = "Data") var `data`: kotlin.String? = null, - @Json(name = "Templating") - var templating: Driver? = null - + var templating: Driver? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigSpec.kt index 564223de..0b5f3a05 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,22 +27,16 @@ import com.squareup.moshi.JsonClass * @param templating */ @JsonClass(generateAdapter = true) - data class ConfigSpec( - - /* User-defined name of the config. */ + // User-defined name of the config. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) config data. */ + // Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) config data. @Json(name = "Data") var `data`: kotlin.String? = null, - @Json(name = "Templating") - var templating: Driver? = null - + var templating: Driver? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerConfig.kt index 3d8e4289..6c29c719 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -48,106 +48,79 @@ import com.squareup.moshi.JsonClass * @param shell Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ @JsonClass(generateAdapter = true) - data class ContainerConfig( - - /* The hostname to use for the container, as a valid RFC 1123 hostname. */ + // The hostname to use for the container, as a valid RFC 1123 hostname. @Json(name = "Hostname") var hostname: kotlin.String? = null, - - /* The domain name to use for the container. */ + // The domain name to use for the container. @Json(name = "Domainname") var domainname: kotlin.String? = null, - - /* The user that commands are run as inside the container. */ + // The user that commands are run as inside the container. @Json(name = "User") var user: kotlin.String? = null, - - /* Whether to attach to `stdin`. */ + // Whether to attach to `stdin`. @Json(name = "AttachStdin") var attachStdin: kotlin.Boolean? = false, - - /* Whether to attach to `stdout`. */ + // Whether to attach to `stdout`. @Json(name = "AttachStdout") var attachStdout: kotlin.Boolean? = true, - - /* Whether to attach to `stderr`. */ + // Whether to attach to `stderr`. @Json(name = "AttachStderr") var attachStderr: kotlin.Boolean? = true, - - /* An object mapping ports to an empty object in the form: `{\"/\": {}}` */ + // An object mapping ports to an empty object in the form: `{\"/\": {}}` @Json(name = "ExposedPorts") var exposedPorts: kotlin.collections.MutableMap? = null, - - /* Attach standard streams to a TTY, including `stdin` if it is not closed. */ + // Attach standard streams to a TTY, including `stdin` if it is not closed. @Json(name = "Tty") var tty: kotlin.Boolean? = false, - - /* Open `stdin` */ + // Open `stdin` @Json(name = "OpenStdin") var openStdin: kotlin.Boolean? = false, - - /* Close `stdin` after one attached client disconnects */ + // Close `stdin` after one attached client disconnects @Json(name = "StdinOnce") var stdinOnce: kotlin.Boolean? = false, - - /* A list of environment variables to set inside the container in the form `[\"VAR=value\", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ + // A list of environment variables to set inside the container in the form `[\"VAR=value\", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. @Json(name = "Env") var env: kotlin.collections.MutableList? = null, - - /* Command to run specified as a string or an array of strings. */ + // Command to run specified as a string or an array of strings. @Json(name = "Cmd") var cmd: kotlin.collections.MutableList? = null, - @Json(name = "Healthcheck") var healthcheck: HealthConfig? = null, - - /* Command is already escaped (Windows only) */ + // Command is already escaped (Windows only) @Json(name = "ArgsEscaped") var argsEscaped: kotlin.Boolean? = null, - - /* The name (or reference) of the image to use when creating the container, or which was used when the container was created. */ + // The name (or reference) of the image to use when creating the container, or which was used when the container was created. @Json(name = "Image") var image: kotlin.String? = null, - - /* An object mapping mount point paths inside the container to empty objects. */ + // An object mapping mount point paths inside the container to empty objects. @Json(name = "Volumes") var volumes: kotlin.collections.MutableMap? = null, - - /* The working directory for commands to run in. */ + // The working directory for commands to run in. @Json(name = "WorkingDir") var workingDir: kotlin.String? = null, - - /* The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[\"\"]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ + // The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[\"\"]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). @Json(name = "Entrypoint") var entrypoint: kotlin.collections.MutableList? = null, - - /* Disable networking for the container. */ + // Disable networking for the container. @Json(name = "NetworkDisabled") var networkDisabled: kotlin.Boolean? = null, - - /* MAC address of the container. */ + // MAC address of the container. @Json(name = "MacAddress") var macAddress: kotlin.String? = null, - - /* `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ + // `ONBUILD` metadata that were defined in the image's `Dockerfile`. @Json(name = "OnBuild") var onBuild: kotlin.collections.MutableList? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* Signal to stop a container as a string or unsigned integer. */ + // Signal to stop a container as a string or unsigned integer. @Json(name = "StopSignal") var stopSignal: kotlin.String? = "SIGTERM", - - /* Timeout to stop a container in seconds. */ + // Timeout to stop a container in seconds. @Json(name = "StopTimeout") var stopTimeout: kotlin.Int? = null, - - /* Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ + // Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. @Json(name = "Shell") - var shell: kotlin.collections.MutableList? = null - + var shell: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerCreateRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerCreateRequest.kt index e1b3a59d..fc425f6d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerCreateRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerCreateRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -50,112 +50,83 @@ import com.squareup.moshi.JsonClass * @param networkingConfig */ @JsonClass(generateAdapter = true) - data class ContainerCreateRequest( - - /* The hostname to use for the container, as a valid RFC 1123 hostname. */ + // The hostname to use for the container, as a valid RFC 1123 hostname. @Json(name = "Hostname") var hostname: kotlin.String? = null, - - /* The domain name to use for the container. */ + // The domain name to use for the container. @Json(name = "Domainname") var domainname: kotlin.String? = null, - - /* The user that commands are run as inside the container. */ + // The user that commands are run as inside the container. @Json(name = "User") var user: kotlin.String? = null, - - /* Whether to attach to `stdin`. */ + // Whether to attach to `stdin`. @Json(name = "AttachStdin") var attachStdin: kotlin.Boolean? = false, - - /* Whether to attach to `stdout`. */ + // Whether to attach to `stdout`. @Json(name = "AttachStdout") var attachStdout: kotlin.Boolean? = true, - - /* Whether to attach to `stderr`. */ + // Whether to attach to `stderr`. @Json(name = "AttachStderr") var attachStderr: kotlin.Boolean? = true, - - /* An object mapping ports to an empty object in the form: `{\"/\": {}}` */ + // An object mapping ports to an empty object in the form: `{\"/\": {}}` @Json(name = "ExposedPorts") var exposedPorts: kotlin.collections.MutableMap? = null, - - /* Attach standard streams to a TTY, including `stdin` if it is not closed. */ + // Attach standard streams to a TTY, including `stdin` if it is not closed. @Json(name = "Tty") var tty: kotlin.Boolean? = false, - - /* Open `stdin` */ + // Open `stdin` @Json(name = "OpenStdin") var openStdin: kotlin.Boolean? = false, - - /* Close `stdin` after one attached client disconnects */ + // Close `stdin` after one attached client disconnects @Json(name = "StdinOnce") var stdinOnce: kotlin.Boolean? = false, - - /* A list of environment variables to set inside the container in the form `[\"VAR=value\", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. */ + // A list of environment variables to set inside the container in the form `[\"VAR=value\", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value. @Json(name = "Env") var env: kotlin.collections.MutableList? = null, - - /* Command to run specified as a string or an array of strings. */ + // Command to run specified as a string or an array of strings. @Json(name = "Cmd") var cmd: kotlin.collections.MutableList? = null, - @Json(name = "Healthcheck") var healthcheck: HealthConfig? = null, - - /* Command is already escaped (Windows only) */ + // Command is already escaped (Windows only) @Json(name = "ArgsEscaped") var argsEscaped: kotlin.Boolean? = null, - - /* The name (or reference) of the image to use when creating the container, or which was used when the container was created. */ + // The name (or reference) of the image to use when creating the container, or which was used when the container was created. @Json(name = "Image") var image: kotlin.String? = null, - - /* An object mapping mount point paths inside the container to empty objects. */ + // An object mapping mount point paths inside the container to empty objects. @Json(name = "Volumes") var volumes: kotlin.collections.MutableMap? = null, - - /* The working directory for commands to run in. */ + // The working directory for commands to run in. @Json(name = "WorkingDir") var workingDir: kotlin.String? = null, - - /* The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[\"\"]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). */ + // The entry point for the container as a string or an array of strings. If the array consists of exactly one empty string (`[\"\"]`) then the entry point is reset to system default (i.e., the entry point used by docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`). @Json(name = "Entrypoint") var entrypoint: kotlin.collections.MutableList? = null, - - /* Disable networking for the container. */ + // Disable networking for the container. @Json(name = "NetworkDisabled") var networkDisabled: kotlin.Boolean? = null, - - /* MAC address of the container. */ + // MAC address of the container. @Json(name = "MacAddress") var macAddress: kotlin.String? = null, - - /* `ONBUILD` metadata that were defined in the image's `Dockerfile`. */ + // `ONBUILD` metadata that were defined in the image's `Dockerfile`. @Json(name = "OnBuild") var onBuild: kotlin.collections.MutableList? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* Signal to stop a container as a string or unsigned integer. */ + // Signal to stop a container as a string or unsigned integer. @Json(name = "StopSignal") var stopSignal: kotlin.String? = "SIGTERM", - - /* Timeout to stop a container in seconds. */ + // Timeout to stop a container in seconds. @Json(name = "StopTimeout") var stopTimeout: kotlin.Int? = null, - - /* Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. */ + // Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell. @Json(name = "Shell") var shell: kotlin.collections.MutableList? = null, - @Json(name = "HostConfig") var hostConfig: HostConfig? = null, - @Json(name = "NetworkingConfig") - var networkingConfig: NetworkingConfig? = null - + var networkingConfig: NetworkingConfig? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerCreateResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerCreateResponse.kt index 7471e725..88307467 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerCreateResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerCreateResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param warnings Warnings encountered when creating the container */ @JsonClass(generateAdapter = true) - data class ContainerCreateResponse( - - /* The ID of the created container */ + // The ID of the created container @Json(name = "Id") var id: kotlin.String, - - /* Warnings encountered when creating the container */ + // Warnings encountered when creating the container @Json(name = "Warnings") - var warnings: kotlin.collections.MutableList? = null - + var warnings: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerInspectResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerInspectResponse.kt index 1449cb6a..f3f13cef 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerInspectResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerInspectResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -48,90 +48,63 @@ import com.squareup.moshi.JsonClass * @param networkSettings */ @JsonClass(generateAdapter = true) - data class ContainerInspectResponse( - - /* The ID of the container */ + // The ID of the container @Json(name = "Id") var id: kotlin.String? = null, - - /* The time the container was created */ + // The time the container was created @Json(name = "Created") var created: kotlin.String? = null, - - /* The path to the command being run */ + // The path to the command being run @Json(name = "Path") var path: kotlin.String? = null, - - /* The arguments to the command being run */ + // The arguments to the command being run @Json(name = "Args") var args: kotlin.collections.MutableList? = null, - @Json(name = "State") var state: ContainerState? = null, - - /* The container's image ID */ + // The container's image ID @Json(name = "Image") var image: kotlin.String? = null, - @Json(name = "ResolvConfPath") var resolvConfPath: kotlin.String? = null, - @Json(name = "HostnamePath") var hostnamePath: kotlin.String? = null, - @Json(name = "HostsPath") var hostsPath: kotlin.String? = null, - @Json(name = "LogPath") var logPath: kotlin.String? = null, - @Json(name = "Name") var name: kotlin.String? = null, - @Json(name = "RestartCount") var restartCount: kotlin.Int? = null, - @Json(name = "Driver") var driver: kotlin.String? = null, - @Json(name = "Platform") var platform: kotlin.String? = null, - @Json(name = "MountLabel") var mountLabel: kotlin.String? = null, - @Json(name = "ProcessLabel") var processLabel: kotlin.String? = null, - @Json(name = "AppArmorProfile") var appArmorProfile: kotlin.String? = null, - - /* IDs of exec instances that are running in the container. */ + // IDs of exec instances that are running in the container. @Json(name = "ExecIDs") var execIDs: kotlin.collections.MutableList? = null, - @Json(name = "HostConfig") var hostConfig: HostConfig? = null, - @Json(name = "GraphDriver") var graphDriver: GraphDriverData? = null, - - /* The size of files that have been created or changed by this container. */ + // The size of files that have been created or changed by this container. @Json(name = "SizeRw") var sizeRw: kotlin.Long? = null, - - /* The total size of all the files in this container. */ + // The total size of all the files in this container. @Json(name = "SizeRootFs") var sizeRootFs: kotlin.Long? = null, - @Json(name = "Mounts") var mounts: kotlin.collections.MutableList? = null, - @Json(name = "Config") var config: ContainerConfig? = null, - @Json(name = "NetworkSettings") - var networkSettings: NetworkSettings? = null - + var networkSettings: NetworkSettings? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerPruneResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerPruneResponse.kt index e0307900..944ed8b5 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerPruneResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerPruneResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param spaceReclaimed Disk space reclaimed in bytes */ @JsonClass(generateAdapter = true) - data class ContainerPruneResponse( - - /* Container IDs that were deleted */ + // Container IDs that were deleted @Json(name = "ContainersDeleted") var containersDeleted: kotlin.collections.MutableList? = null, - - /* Disk space reclaimed in bytes */ + // Disk space reclaimed in bytes @Json(name = "SpaceReclaimed") - var spaceReclaimed: kotlin.Long? = null - + var spaceReclaimed: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerState.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerState.kt index fb0115e8..aa168c4c 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerState.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerState.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -35,56 +35,41 @@ import com.squareup.moshi.JsonClass * @param health */ @JsonClass(generateAdapter = true) - data class ContainerState( - - /* String representation of the container state. Can be one of \"created\", \"running\", \"paused\", \"restarting\", \"removing\", \"exited\", or \"dead\". */ + // String representation of the container state. Can be one of \"created\", \"running\", \"paused\", \"restarting\", \"removing\", \"exited\", or \"dead\". @Json(name = "Status") var status: ContainerState.Status? = null, - - /* Whether this container is running. Note that a running container can be _paused_. The `Running` and `Paused` booleans are not mutually exclusive: When pausing a container (on Linux), the freezer cgroup is used to suspend all processes in the container. Freezing the process requires the process to be running. As a result, paused containers are both `Running` _and_ `Paused`. Use the `Status` field instead to determine if a container's state is \"running\". */ + // Whether this container is running. Note that a running container can be _paused_. The `Running` and `Paused` booleans are not mutually exclusive: When pausing a container (on Linux), the freezer cgroup is used to suspend all processes in the container. Freezing the process requires the process to be running. As a result, paused containers are both `Running` _and_ `Paused`. Use the `Status` field instead to determine if a container's state is \"running\". @Json(name = "Running") var running: kotlin.Boolean? = null, - - /* Whether this container is paused. */ + // Whether this container is paused. @Json(name = "Paused") var paused: kotlin.Boolean? = null, - - /* Whether this container is restarting. */ + // Whether this container is restarting. @Json(name = "Restarting") var restarting: kotlin.Boolean? = null, - - /* Whether a process within this container has been killed because it ran out of memory since the container was last started. */ + // Whether a process within this container has been killed because it ran out of memory since the container was last started. @Json(name = "OOMKilled") var ooMKilled: kotlin.Boolean? = null, - @Json(name = "Dead") var dead: kotlin.Boolean? = null, - - /* The process ID of this container */ + // The process ID of this container @Json(name = "Pid") var pid: kotlin.Int? = null, - - /* The last exit code of this container */ + // The last exit code of this container @Json(name = "ExitCode") var exitCode: kotlin.Int? = null, - @Json(name = "Error") var error: kotlin.String? = null, - - /* The time when this container was last started. */ + // The time when this container was last started. @Json(name = "StartedAt") var startedAt: kotlin.String? = null, - - /* The time when this container last exited. */ + // The time when this container last exited. @Json(name = "FinishedAt") var finishedAt: kotlin.String? = null, - @Json(name = "Health") - var health: Health? = null - + var health: Health? = null, ) { - /** * String representation of the container state. Can be one of \"created\", \"running\", \"paused\", \"restarting\", \"removing\", \"exited\", or \"dead\". * @@ -111,6 +96,6 @@ data class ContainerState( Exited("exited"), @Json(name = "dead") - Dead("dead"); + Dead("dead"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummary.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummary.kt index f471339e..3049813e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummary.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummary.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -38,64 +38,47 @@ import com.squareup.moshi.JsonClass * @param mounts */ @JsonClass(generateAdapter = true) - data class ContainerSummary( - - /* The ID of this container */ + // The ID of this container @Json(name = "Id") var id: kotlin.String? = null, - - /* The names that this container has been given */ + // The names that this container has been given @Json(name = "Names") var names: kotlin.collections.MutableList? = null, - - /* The name of the image used when creating this container */ + // The name of the image used when creating this container @Json(name = "Image") var image: kotlin.String? = null, - - /* The ID of the image that this container was created from */ + // The ID of the image that this container was created from @Json(name = "ImageID") var imageID: kotlin.String? = null, - - /* Command to run when starting the container */ + // Command to run when starting the container @Json(name = "Command") var command: kotlin.String? = null, - - /* When the container was created */ + // When the container was created @Json(name = "Created") var created: kotlin.Long? = null, - - /* The ports exposed by this container */ + // The ports exposed by this container @Json(name = "Ports") var ports: kotlin.collections.MutableList? = null, - - /* The size of files that have been created or changed by this container */ + // The size of files that have been created or changed by this container @Json(name = "SizeRw") var sizeRw: kotlin.Long? = null, - - /* The total size of all the files in this container */ + // The total size of all the files in this container @Json(name = "SizeRootFs") var sizeRootFs: kotlin.Long? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* The state of this container (e.g. `Exited`) */ + // The state of this container (e.g. `Exited`) @Json(name = "State") var state: kotlin.String? = null, - - /* Additional human-readable status of this container (e.g. `Exit 0`) */ + // Additional human-readable status of this container (e.g. `Exit 0`) @Json(name = "Status") var status: kotlin.String? = null, - @Json(name = "HostConfig") var hostConfig: ContainerSummaryHostConfig? = null, - @Json(name = "NetworkSettings") var networkSettings: ContainerSummaryNetworkSettings? = null, - @Json(name = "Mounts") - var mounts: kotlin.collections.MutableList? = null - + var mounts: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummaryHostConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummaryHostConfig.kt index 81f47752..b0d14ad7 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummaryHostConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummaryHostConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param networkMode */ @JsonClass(generateAdapter = true) - data class ContainerSummaryHostConfig( - @Json(name = "NetworkMode") - var networkMode: kotlin.String? = null - + var networkMode: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummaryNetworkSettings.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummaryNetworkSettings.kt index 1952bd9b..7f50ed85 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummaryNetworkSettings.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerSummaryNetworkSettings.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param networks */ @JsonClass(generateAdapter = true) - data class ContainerSummaryNetworkSettings( - @Json(name = "Networks") - var networks: kotlin.collections.MutableMap? = null - + var networks: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerTopResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerTopResponse.kt index 53564ba7..7fb3c675 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerTopResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerTopResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param processes Each process running in the container, where each is process is an array of values corresponding to the titles. */ @JsonClass(generateAdapter = true) - data class ContainerTopResponse( - - /* The ps column titles */ + // The ps column titles @Json(name = "Titles") var titles: kotlin.collections.MutableList? = null, - - /* Each process running in the container, where each is process is an array of values corresponding to the titles. */ + // Each process running in the container, where each is process is an array of values corresponding to the titles. @Json(name = "Processes") - var processes: kotlin.collections.MutableList>? = null - + var processes: kotlin.collections.MutableList>? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerUpdateRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerUpdateRequest.kt index 06f01631..a6264b11 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerUpdateRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerUpdateRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,7 +25,7 @@ import com.squareup.moshi.JsonClass * @param memory Memory limit in bytes. * @param cgroupParent Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. * @param blkioWeight Block IO weight (relative weight). - * @param blkioWeightDevice Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` + * @param blkioWeightDevice Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` * @param blkioDeviceReadBps Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` * @param blkioDeviceWriteBps Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` * @param blkioDeviceReadIOps Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @@ -55,134 +55,100 @@ import com.squareup.moshi.JsonClass * @param restartPolicy */ @JsonClass(generateAdapter = true) - data class ContainerUpdateRequest( - - /* An integer value representing this container's relative CPU weight versus other containers. */ + // An integer value representing this container's relative CPU weight versus other containers. @Json(name = "CpuShares") var cpuShares: kotlin.Int? = null, - - /* Memory limit in bytes. */ + // Memory limit in bytes. @Json(name = "Memory") var memory: kotlin.Long? = 0L, - - /* Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. */ + // Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. @Json(name = "CgroupParent") var cgroupParent: kotlin.String? = null, - - /* Block IO weight (relative weight). */ + // Block IO weight (relative weight). @Json(name = "BlkioWeight") var blkioWeight: kotlin.Int? = null, - - /* Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` */ + // Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` @Json(name = "BlkioWeightDevice") var blkioWeightDevice: kotlin.collections.MutableList? = null, - - /* Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceReadBps") var blkioDeviceReadBps: kotlin.collections.MutableList? = null, - - /* Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceWriteBps") var blkioDeviceWriteBps: kotlin.collections.MutableList? = null, - - /* Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceReadIOps") var blkioDeviceReadIOps: kotlin.collections.MutableList? = null, - - /* Limit write rate (IO per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit write rate (IO per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceWriteIOps") var blkioDeviceWriteIOps: kotlin.collections.MutableList? = null, - - /* The length of a CPU period in microseconds. */ + // The length of a CPU period in microseconds. @Json(name = "CpuPeriod") var cpuPeriod: kotlin.Long? = null, - - /* Microseconds of CPU time that the container can get in a CPU period. */ + // Microseconds of CPU time that the container can get in a CPU period. @Json(name = "CpuQuota") var cpuQuota: kotlin.Long? = null, - - /* The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ + // The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. @Json(name = "CpuRealtimePeriod") var cpuRealtimePeriod: kotlin.Long? = null, - - /* The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ + // The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. @Json(name = "CpuRealtimeRuntime") var cpuRealtimeRuntime: kotlin.Long? = null, - - /* CPUs in which to allow execution (e.g., `0-3`, `0,1`). */ + // CPUs in which to allow execution (e.g., `0-3`, `0,1`). @Json(name = "CpusetCpus") var cpusetCpus: kotlin.String? = null, - - /* Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. */ + // Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. @Json(name = "CpusetMems") var cpusetMems: kotlin.String? = null, - - /* A list of devices to add to the container. */ + // A list of devices to add to the container. @Json(name = "Devices") var devices: kotlin.collections.MutableList? = null, - - /* a list of cgroup rules to apply to the container */ + // a list of cgroup rules to apply to the container @Json(name = "DeviceCgroupRules") var deviceCgroupRules: kotlin.collections.MutableList? = null, - - /* A list of requests for devices to be sent to device drivers. */ + // A list of requests for devices to be sent to device drivers. @Json(name = "DeviceRequests") var deviceRequests: kotlin.collections.MutableList? = null, - - /* Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI runtime in use, this option may be ignored. It is no longer supported by the default (runc) runtime. This field is omitted when empty. */ + // Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI runtime in use, this option may be ignored. It is no longer supported by the default (runc) runtime. This field is omitted when empty. @Json(name = "KernelMemoryTCP") var kernelMemoryTCP: kotlin.Long? = null, - - /* Memory soft limit in bytes. */ + // Memory soft limit in bytes. @Json(name = "MemoryReservation") var memoryReservation: kotlin.Long? = null, - - /* Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */ + // Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. @Json(name = "MemorySwap") var memorySwap: kotlin.Long? = null, - - /* Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. */ + // Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. @Json(name = "MemorySwappiness") var memorySwappiness: kotlin.Long? = null, - - /* CPU quota in units of 10-9 CPUs. */ + // CPU quota in units of 10-9 CPUs. @Json(name = "NanoCpus") var nanoCpus: kotlin.Long? = null, - - /* Disable OOM Killer for the container. */ + // Disable OOM Killer for the container. @Json(name = "OomKillDisable") var oomKillDisable: kotlin.Boolean? = null, - - /* Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. */ + // Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. @Json(name = "Init") var `init`: kotlin.Boolean? = null, - - /* Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null` to not change. */ + // Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null` to not change. @Json(name = "PidsLimit") var pidsLimit: kotlin.Long? = null, - - /* A list of resource limits to set in the container. For example: ``` {\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048} ``` */ + // A list of resource limits to set in the container. For example: ``` {\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048} ``` @Json(name = "Ulimits") var ulimits: kotlin.collections.MutableList? = null, - - /* The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ + // The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. @Json(name = "CpuCount") var cpuCount: kotlin.Long? = null, - - /* The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ + // The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. @Json(name = "CpuPercent") var cpuPercent: kotlin.Long? = null, - - /* Maximum IOps for the container system drive (Windows only) */ + // Maximum IOps for the container system drive (Windows only) @Json(name = "IOMaximumIOps") var ioMaximumIOps: kotlin.Long? = null, - - /* Maximum IO in bytes per second for the container system drive (Windows only). */ + // Maximum IO in bytes per second for the container system drive (Windows only). @Json(name = "IOMaximumBandwidth") var ioMaximumBandwidth: kotlin.Long? = null, - @Json(name = "RestartPolicy") - var restartPolicy: RestartPolicy? = null - + var restartPolicy: RestartPolicy? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerUpdateResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerUpdateResponse.kt index e5255ee9..95e7f7a2 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerUpdateResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerUpdateResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param warnings */ @JsonClass(generateAdapter = true) - data class ContainerUpdateResponse( - @Json(name = "Warnings") - var warnings: kotlin.collections.MutableList? = null - + var warnings: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerWaitExitError.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerWaitExitError.kt index f648aa73..e58142f7 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerWaitExitError.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerWaitExitError.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param message Details of an error */ @JsonClass(generateAdapter = true) - data class ContainerWaitExitError( - - /* Details of an error */ + // Details of an error @Json(name = "Message") - var message: kotlin.String? = null - + var message: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerWaitResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerWaitResponse.kt index 595d93e0..68d6dd7b 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerWaitResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ContainerWaitResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,14 +25,10 @@ import com.squareup.moshi.JsonClass * @param error */ @JsonClass(generateAdapter = true) - data class ContainerWaitResponse( - - /* Exit code of the container */ + // Exit code of the container @Json(name = "StatusCode") var statusCode: kotlin.Long, - @Json(name = "Error") - var error: ContainerWaitExitError? = null - + var error: ContainerWaitExitError? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/CreateImageInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/CreateImageInfo.kt index 07de3112..27d105e5 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/CreateImageInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/CreateImageInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -29,25 +29,17 @@ import com.squareup.moshi.JsonClass * @param progressDetail */ @JsonClass(generateAdapter = true) - data class CreateImageInfo( - @Json(name = "id") var id: kotlin.String? = null, - @Json(name = "error") var error: kotlin.String? = null, - @Json(name = "errorDetail") var errorDetail: ErrorDetail? = null, - @Json(name = "status") var status: kotlin.String? = null, - @Json(name = "progress") var progress: kotlin.String? = null, - @Json(name = "progressDetail") - var progressDetail: ProgressDetail? = null - + var progressDetail: ProgressDetail? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DeviceMapping.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DeviceMapping.kt index d93a3b3d..72ca8fdb 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DeviceMapping.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DeviceMapping.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,16 +26,11 @@ import com.squareup.moshi.JsonClass * @param cgroupPermissions */ @JsonClass(generateAdapter = true) - data class DeviceMapping( - @Json(name = "PathOnHost") var pathOnHost: kotlin.String? = null, - @Json(name = "PathInContainer") var pathInContainer: kotlin.String? = null, - @Json(name = "CgroupPermissions") - var cgroupPermissions: kotlin.String? = null - + var cgroupPermissions: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DeviceRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DeviceRequest.kt index dc659566..4eead052 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DeviceRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DeviceRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,24 +28,17 @@ import com.squareup.moshi.JsonClass * @param options Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver. */ @JsonClass(generateAdapter = true) - data class DeviceRequest( - @Json(name = "Driver") var driver: kotlin.String? = null, - @Json(name = "Count") var count: kotlin.Int? = null, - @Json(name = "DeviceIDs") var deviceIDs: kotlin.collections.MutableList? = null, - - /* A list of capabilities; an OR list of AND lists of capabilities. */ + // A list of capabilities; an OR list of AND lists of capabilities. @Json(name = "Capabilities") var capabilities: kotlin.collections.MutableList>? = null, - - /* Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver. */ + // Driver-specific options, specified as a key/value pairs. These options are passed directly to the driver. @Json(name = "Options") - var options: kotlin.collections.MutableMap? = null - + var options: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DistributionInspect.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DistributionInspect.kt index ae7a852c..845598dd 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DistributionInspect.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/DistributionInspect.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,14 +25,10 @@ import com.squareup.moshi.JsonClass * @param platforms An array containing all platforms supported by the image. */ @JsonClass(generateAdapter = true) - data class DistributionInspect( - @Json(name = "Descriptor") var descriptor: OCIDescriptor, - - /* An array containing all platforms supported by the image. */ + // An array containing all platforms supported by the image. @Json(name = "Platforms") - var platforms: kotlin.collections.MutableList - + var platforms: kotlin.collections.MutableList, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Driver.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Driver.kt index edc02480..a4f83256 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Driver.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Driver.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param options Key/value map of driver-specific options. */ @JsonClass(generateAdapter = true) - data class Driver( - - /* Name of the driver. */ + // Name of the driver. @Json(name = "Name") var name: kotlin.String, - - /* Key/value map of driver-specific options. */ + // Key/value map of driver-specific options. @Json(name = "Options") - var options: kotlin.collections.MutableMap? = null - + var options: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointIPAMConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointIPAMConfig.kt index ff3401a3..12dfe787 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointIPAMConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointIPAMConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,16 +26,11 @@ import com.squareup.moshi.JsonClass * @param linkLocalIPs */ @JsonClass(generateAdapter = true) - data class EndpointIPAMConfig( - @Json(name = "IPv4Address") var ipv4Address: kotlin.String? = null, - @Json(name = "IPv6Address") var ipv6Address: kotlin.String? = null, - @Json(name = "LinkLocalIPs") - var linkLocalIPs: kotlin.collections.MutableList? = null - + var linkLocalIPs: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointPortConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointPortConfig.kt index 28271e3b..983ff67f 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointPortConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointPortConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,29 +28,21 @@ import com.squareup.moshi.JsonClass * @param publishMode The mode in which port is published.


- \"ingress\" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not. - \"host\" bypasses the routing mesh and publish the port directly on the swarm node where that service is running. */ @JsonClass(generateAdapter = true) - data class EndpointPortConfig( - @Json(name = "Name") var name: kotlin.String? = null, - @Json(name = "Protocol") var protocol: EndpointPortConfig.Protocol? = null, - - /* The port inside the container. */ + // The port inside the container. @Json(name = "TargetPort") var targetPort: kotlin.Int? = null, - - /* The port on the swarm hosts. */ + // The port on the swarm hosts. @Json(name = "PublishedPort") var publishedPort: kotlin.Int? = null, - - /* The mode in which port is published.


- \"ingress\" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not. - \"host\" bypasses the routing mesh and publish the port directly on the swarm node where that service is running. */ + // The mode in which port is published.


- \"ingress\" makes the target port accessible on every node, regardless of whether there is a task for the service running on that node or not. - \"host\" bypasses the routing mesh and publish the port directly on the swarm node where that service is running. @Json(name = "PublishMode") - var publishMode: EndpointPortConfig.PublishMode? = PublishMode.Ingress - + var publishMode: EndpointPortConfig.PublishMode? = PublishMode.Ingress, ) { - /** * * @@ -65,7 +57,7 @@ data class EndpointPortConfig( Udp("udp"), @Json(name = "sctp") - Sctp("sctp"); + Sctp("sctp"), } /** @@ -79,6 +71,6 @@ data class EndpointPortConfig( Ingress("ingress"), @Json(name = "host") - Host("host"); + Host("host"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointSettings.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointSettings.kt index cc0aae78..d25348fa 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointSettings.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointSettings.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -36,56 +36,41 @@ import com.squareup.moshi.JsonClass * @param driverOpts DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific. */ @JsonClass(generateAdapter = true) - data class EndpointSettings( - @Json(name = "IPAMConfig") var ipAMConfig: EndpointIPAMConfig? = null, - @Json(name = "Links") var links: kotlin.collections.MutableList? = null, - @Json(name = "Aliases") var aliases: kotlin.collections.MutableList? = null, - - /* Unique ID of the network. */ + // Unique ID of the network. @Json(name = "NetworkID") var networkID: kotlin.String? = null, - - /* Unique ID for the service endpoint in a Sandbox. */ + // Unique ID for the service endpoint in a Sandbox. @Json(name = "EndpointID") var endpointID: kotlin.String? = null, - - /* Gateway address for this network. */ + // Gateway address for this network. @Json(name = "Gateway") var gateway: kotlin.String? = null, - - /* IPv4 address. */ + // IPv4 address. @Json(name = "IPAddress") var ipAddress: kotlin.String? = null, - - /* Mask length of the IPv4 address. */ + // Mask length of the IPv4 address. @Json(name = "IPPrefixLen") var ipPrefixLen: kotlin.Int? = null, - - /* IPv6 gateway address. */ + // IPv6 gateway address. @Json(name = "IPv6Gateway") var ipv6Gateway: kotlin.String? = null, - - /* Global IPv6 address. */ + // Global IPv6 address. @Json(name = "GlobalIPv6Address") var globalIPv6Address: kotlin.String? = null, - - /* Mask length of the global IPv6 address. */ + // Mask length of the global IPv6 address. @Json(name = "GlobalIPv6PrefixLen") var globalIPv6PrefixLen: kotlin.Long? = null, - - /* MAC address for the endpoint on this network. */ + // MAC address for the endpoint on this network. @Json(name = "MacAddress") var macAddress: kotlin.String? = null, - - /* DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific. */ + // DriverOpts is a mapping of driver options and values. These options are passed directly to the driver and are driver specific. @Json(name = "DriverOpts") - var driverOpts: kotlin.collections.MutableMap? = null - + var driverOpts: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointSpec.kt index b18de837..a9887b7a 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EndpointSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,19 +25,14 @@ import com.squareup.moshi.JsonClass * @param ports List of exposed ports that this service is accessible on from the outside. Ports can only be provided if `vip` resolution mode is used. */ @JsonClass(generateAdapter = true) - data class EndpointSpec( - - /* The mode of resolution to use for internal load balancing between tasks. */ + // The mode of resolution to use for internal load balancing between tasks. @Json(name = "Mode") var mode: EndpointSpec.Mode? = Mode.Vip, - - /* List of exposed ports that this service is accessible on from the outside. Ports can only be provided if `vip` resolution mode is used. */ + // List of exposed ports that this service is accessible on from the outside. Ports can only be provided if `vip` resolution mode is used. @Json(name = "Ports") - var ports: kotlin.collections.MutableList? = null - + var ports: kotlin.collections.MutableList? = null, ) { - /** * The mode of resolution to use for internal load balancing between tasks. * @@ -49,6 +44,6 @@ data class EndpointSpec( Vip("vip"), @Json(name = "dnsrr") - Dnsrr("dnsrr"); + Dnsrr("dnsrr"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EngineDescription.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EngineDescription.kt index 5562d75f..f16ef09c 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EngineDescription.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EngineDescription.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,16 +26,11 @@ import com.squareup.moshi.JsonClass * @param plugins */ @JsonClass(generateAdapter = true) - data class EngineDescription( - @Json(name = "EngineVersion") var engineVersion: kotlin.String? = null, - @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - @Json(name = "Plugins") - var plugins: kotlin.collections.MutableList? = null - + var plugins: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EngineDescriptionPluginsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EngineDescriptionPluginsInner.kt index 098e21a1..e6c9f02c 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EngineDescriptionPluginsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EngineDescriptionPluginsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param name */ @JsonClass(generateAdapter = true) - data class EngineDescriptionPluginsInner( - @Json(name = "Type") var type: kotlin.String? = null, - @Json(name = "Name") - var name: kotlin.String? = null - + var name: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ErrorDetail.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ErrorDetail.kt index f84e2b01..fa5fdb13 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ErrorDetail.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ErrorDetail.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param message */ @JsonClass(generateAdapter = true) - data class ErrorDetail( - @Json(name = "code") var code: kotlin.Int? = null, - @Json(name = "message") - var message: kotlin.String? = null - + var message: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ErrorResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ErrorResponse.kt index 7059994c..facdf1d2 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ErrorResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ErrorResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param message The error message. */ @JsonClass(generateAdapter = true) - data class ErrorResponse( - - /* The error message. */ + // The error message. @Json(name = "message") - var message: kotlin.String - + var message: kotlin.String, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EventActor.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EventActor.kt index 76e1c048..e391e21b 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EventActor.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EventActor.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param attributes Various key/value attributes of the object, depending on its type. */ @JsonClass(generateAdapter = true) - data class EventActor( - - /* The ID of the object emitting the event */ + // The ID of the object emitting the event @Json(name = "ID") var ID: kotlin.String? = null, - - /* Various key/value attributes of the object, depending on its type. */ + // Various key/value attributes of the object, depending on its type. @Json(name = "Attributes") - var attributes: kotlin.collections.MutableMap? = null - + var attributes: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EventMessage.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EventMessage.kt index 1923f857..d43978a0 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EventMessage.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/EventMessage.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -29,34 +29,25 @@ import com.squareup.moshi.JsonClass * @param timeNano Timestamp of event, with nanosecond accuracy */ @JsonClass(generateAdapter = true) - data class EventMessage( - - /* The type of object emitting the event */ + // The type of object emitting the event @Json(name = "Type") var type: EventMessage.Type? = null, - - /* The type of event */ + // The type of event @Json(name = "Action") var action: kotlin.String? = null, - @Json(name = "Actor") var actor: EventActor? = null, - - /* Scope of the event. Engine events are `local` scope. Cluster (Swarm) events are `swarm` scope. */ + // Scope of the event. Engine events are `local` scope. Cluster (Swarm) events are `swarm` scope. @Json(name = "scope") var scope: EventMessage.Scope? = null, - - /* Timestamp of event */ + // Timestamp of event @Json(name = "time") var time: kotlin.Long? = null, - - /* Timestamp of event, with nanosecond accuracy */ + // Timestamp of event, with nanosecond accuracy @Json(name = "timeNano") - var timeNano: kotlin.Long? = null - + var timeNano: kotlin.Long? = null, ) { - /** * The type of object emitting the event * @@ -95,7 +86,7 @@ data class EventMessage( Service("service"), @Json(name = "volume") - Volume("volume"); + Volume("volume"), } /** @@ -109,6 +100,6 @@ data class EventMessage( Local("local"), @Json(name = "swarm") - Swarm("swarm"); + Swarm("swarm"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecConfig.kt index 56cb1135..26059794 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -34,51 +34,38 @@ import com.squareup.moshi.JsonClass * @param workingDir The working directory for the exec process inside the container. */ @JsonClass(generateAdapter = true) - data class ExecConfig( - - /* Attach to `stdin` of the exec command. */ + // Attach to `stdin` of the exec command. @Json(name = "AttachStdin") var attachStdin: kotlin.Boolean? = null, - - /* Attach to `stdout` of the exec command. */ + // Attach to `stdout` of the exec command. @Json(name = "AttachStdout") var attachStdout: kotlin.Boolean? = null, - - /* Attach to `stderr` of the exec command. */ + // Attach to `stderr` of the exec command. @Json(name = "AttachStderr") var attachStderr: kotlin.Boolean? = null, - - /* Initial console size, as an `[height, width]` array. */ + // Initial console size, as an `[height, width]` array. @Json(name = "ConsoleSize") var consoleSize: kotlin.collections.MutableList? = null, - - /* Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. */ + // Override the key sequence for detaching a container. Format is a single character `[a-Z]` or `ctrl-` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. @Json(name = "DetachKeys") var detachKeys: kotlin.String? = null, - - /* Allocate a pseudo-TTY. */ + // Allocate a pseudo-TTY. @Json(name = "Tty") var tty: kotlin.Boolean? = null, - - /* A list of environment variables in the form `[\"VAR=value\", ...]`. */ + // A list of environment variables in the form `[\"VAR=value\", ...]`. @Json(name = "Env") var env: kotlin.collections.MutableList? = null, - - /* Command to run, as a string or array of strings. */ + // Command to run, as a string or array of strings. @Json(name = "Cmd") var cmd: kotlin.collections.MutableList? = null, - - /* Runs the exec process with extended privileges. */ + // Runs the exec process with extended privileges. @Json(name = "Privileged") var privileged: kotlin.Boolean? = false, - - /* The user, and optionally, group to run the exec process inside the container. Format is one of: `user`, `user:group`, `uid`, or `uid:gid`. */ + // The user, and optionally, group to run the exec process inside the container. Format is one of: `user`, `user:group`, `uid`, or `uid:gid`. @Json(name = "User") var user: kotlin.String? = null, - - /* The working directory for the exec process inside the container. */ + // The working directory for the exec process inside the container. @Json(name = "WorkingDir") - var workingDir: kotlin.String? = null - + var workingDir: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecInspectResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecInspectResponse.kt index cc0a9d1a..a41fb785 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecInspectResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecInspectResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -34,41 +34,28 @@ import com.squareup.moshi.JsonClass * @param pid The system process ID for the exec process. */ @JsonClass(generateAdapter = true) - data class ExecInspectResponse( - @Json(name = "CanRemove") var canRemove: kotlin.Boolean? = null, - @Json(name = "DetachKeys") var detachKeys: kotlin.String? = null, - @Json(name = "ID") var ID: kotlin.String? = null, - @Json(name = "Running") var running: kotlin.Boolean? = null, - @Json(name = "ExitCode") var exitCode: kotlin.Int? = null, - @Json(name = "ProcessConfig") var processConfig: ProcessConfig? = null, - @Json(name = "OpenStdin") var openStdin: kotlin.Boolean? = null, - @Json(name = "OpenStderr") var openStderr: kotlin.Boolean? = null, - @Json(name = "OpenStdout") var openStdout: kotlin.Boolean? = null, - @Json(name = "ContainerID") var containerID: kotlin.String? = null, - - /* The system process ID for the exec process. */ + // The system process ID for the exec process. @Json(name = "Pid") - var pid: kotlin.Int? = null - + var pid: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecStartConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecStartConfig.kt index f0574c5a..a9961553 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecStartConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ExecStartConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @param consoleSize Initial console size, as an `[height, width]` array. */ @JsonClass(generateAdapter = true) - data class ExecStartConfig( - - /* Detach from the command. */ + // Detach from the command. @Json(name = "Detach") var detach: kotlin.Boolean? = null, - - /* Allocate a pseudo-TTY. */ + // Allocate a pseudo-TTY. @Json(name = "Tty") var tty: kotlin.Boolean? = null, - - /* Initial console size, as an `[height, width]` array. */ + // Initial console size, as an `[height, width]` array. @Json(name = "ConsoleSize") - var consoleSize: kotlin.collections.MutableList? = null - + var consoleSize: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/FilesystemChange.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/FilesystemChange.kt index a44a21de..a5a03b95 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/FilesystemChange.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/FilesystemChange.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,14 +25,10 @@ import com.squareup.moshi.JsonClass * @param kind */ @JsonClass(generateAdapter = true) - data class FilesystemChange( - - /* Path to file or directory that has changed. */ + // Path to file or directory that has changed. @Json(name = "Path") var path: kotlin.String, - @Json(name = "Kind") - var kind: ChangeType - + var kind: ChangeType, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInner.kt index 986a1238..9224058e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param discreteResourceSpec */ @JsonClass(generateAdapter = true) - data class GenericResourcesInner( - @Json(name = "NamedResourceSpec") var namedResourceSpec: GenericResourcesInnerNamedResourceSpec? = null, - @Json(name = "DiscreteResourceSpec") - var discreteResourceSpec: GenericResourcesInnerDiscreteResourceSpec? = null - + var discreteResourceSpec: GenericResourcesInnerDiscreteResourceSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInnerDiscreteResourceSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInnerDiscreteResourceSpec.kt index 88c1c5ee..7cb81d23 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInnerDiscreteResourceSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInnerDiscreteResourceSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param `value` */ @JsonClass(generateAdapter = true) - data class GenericResourcesInnerDiscreteResourceSpec( - @Json(name = "Kind") var kind: kotlin.String? = null, - @Json(name = "Value") - var `value`: kotlin.Long? = null - + var `value`: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInnerNamedResourceSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInnerNamedResourceSpec.kt index c0aab681..3de0fa30 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInnerNamedResourceSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GenericResourcesInnerNamedResourceSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param `value` */ @JsonClass(generateAdapter = true) - data class GenericResourcesInnerNamedResourceSpec( - @Json(name = "Kind") var kind: kotlin.String? = null, - @Json(name = "Value") - var `value`: kotlin.String? = null - + var `value`: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GraphDriverData.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GraphDriverData.kt index 2a54a49a..35181f16 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GraphDriverData.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/GraphDriverData.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param `data` Low-level storage metadata, provided as key/value pairs. This information is driver-specific, and depends on the storage-driver in use, and should be used for informational purposes only. */ @JsonClass(generateAdapter = true) - data class GraphDriverData( - - /* Name of the storage driver. */ + // Name of the storage driver. @Json(name = "Name") var name: kotlin.String, - - /* Low-level storage metadata, provided as key/value pairs. This information is driver-specific, and depends on the storage-driver in use, and should be used for informational purposes only. */ + // Low-level storage metadata, provided as key/value pairs. This information is driver-specific, and depends on the storage-driver in use, and should be used for informational purposes only. @Json(name = "Data") - var `data`: kotlin.collections.MutableMap? = null - + var `data`: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Health.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Health.kt index 2f45de83..87142b26 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Health.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Health.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,23 +26,17 @@ import com.squareup.moshi.JsonClass * @param log Log contains the last few results (oldest first) */ @JsonClass(generateAdapter = true) - data class Health( - - /* Status is one of `none`, `starting`, `healthy` or `unhealthy` - \"none\" Indicates there is no healthcheck - \"starting\" Starting indicates that the container is not yet ready - \"healthy\" Healthy indicates that the container is running correctly - \"unhealthy\" Unhealthy indicates that the container has a problem */ + // Status is one of `none`, `starting`, `healthy` or `unhealthy` - \"none\" Indicates there is no healthcheck - \"starting\" Starting indicates that the container is not yet ready - \"healthy\" Healthy indicates that the container is running correctly - \"unhealthy\" Unhealthy indicates that the container has a problem @Json(name = "Status") var status: Health.Status? = null, - - /* FailingStreak is the number of consecutive failures */ + // FailingStreak is the number of consecutive failures @Json(name = "FailingStreak") var failingStreak: kotlin.Int? = null, - - /* Log contains the last few results (oldest first) */ + // Log contains the last few results (oldest first) @Json(name = "Log") - var log: kotlin.collections.MutableList? = null - + var log: kotlin.collections.MutableList? = null, ) { - /** * Status is one of `none`, `starting`, `healthy` or `unhealthy` - \"none\" Indicates there is no healthcheck - \"starting\" Starting indicates that the container is not yet ready - \"healthy\" Healthy indicates that the container is running correctly - \"unhealthy\" Unhealthy indicates that the container has a problem * @@ -60,6 +54,6 @@ data class Health( Healthy("healthy"), @Json(name = "unhealthy") - Unhealthy("unhealthy"); + Unhealthy("unhealthy"), } } 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 018ef35c..4e22085f 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 @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -29,31 +29,23 @@ import com.squareup.moshi.JsonClass * @param startInterval The time to wait between checks in nanoseconds during the start period. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ @JsonClass(generateAdapter = true) - data class HealthConfig( - - /* 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 */ + // 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 @Json(name = "Test") var test: kotlin.collections.MutableList? = null, - - /* The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ + // 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.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. */ + // 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.Long? = null, - - /* The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit. */ + // The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit. @Json(name = "Retries") var retries: kotlin.Int? = null, - - /* 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. */ + // 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.Long? = null, - - /* The time to wait between checks in nanoseconds during the start period. It should be 0 or at least 1000000 (1 ms). 0 means inherit. */ + // The time to wait between checks in nanoseconds during the start period. It should be 0 or at least 1000000 (1 ms). 0 means inherit. @Json(name = "StartInterval") - var startInterval: kotlin.Long? = null - + var startInterval: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HealthcheckResult.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HealthcheckResult.kt index cecac2e9..73ef988e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HealthcheckResult.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HealthcheckResult.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,23 +27,17 @@ import com.squareup.moshi.JsonClass * @param output Output from last check */ @JsonClass(generateAdapter = true) - data class HealthcheckResult( - - /* Date and time at which this check started in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which this check started in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "Start") var start: java.time.OffsetDateTime? = null, - - /* Date and time at which this check ended in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which this check ended in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "End") var end: kotlin.String? = null, - - /* ExitCode meanings: - `0` healthy - `1` unhealthy - `2` reserved (considered unhealthy) - other values: error running probe */ + // ExitCode meanings: - `0` healthy - `1` unhealthy - `2` reserved (considered unhealthy) - other values: error running probe @Json(name = "ExitCode") var exitCode: kotlin.Int? = null, - - /* Output from last check */ + // Output from last check @Json(name = "Output") - var output: kotlin.String? = null - + var output: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HistoryResponseItem.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HistoryResponseItem.kt index 80fbb636..55f0c7fb 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HistoryResponseItem.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HistoryResponseItem.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -29,25 +29,17 @@ import com.squareup.moshi.JsonClass * @param comment */ @JsonClass(generateAdapter = true) - data class HistoryResponseItem( - @Json(name = "Id") var id: kotlin.String, - @Json(name = "Created") var created: kotlin.Long, - @Json(name = "CreatedBy") var createdBy: kotlin.String, - @Json(name = "Tags") var tags: kotlin.collections.MutableList?, - @Json(name = "Size") var propertySize: kotlin.Long, - @Json(name = "Comment") - var comment: kotlin.String - + var comment: kotlin.String, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HostConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HostConfig.kt index b9a72fc9..ded7f91f 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HostConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HostConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,7 +25,7 @@ import com.squareup.moshi.JsonClass * @param memory Memory limit in bytes. * @param cgroupParent Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. * @param blkioWeight Block IO weight (relative weight). - * @param blkioWeightDevice Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` + * @param blkioWeightDevice Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` * @param blkioDeviceReadBps Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` * @param blkioDeviceWriteBps Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` * @param blkioDeviceReadIOps Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @@ -93,289 +93,216 @@ import com.squareup.moshi.JsonClass * @param readonlyPaths The list of paths to be set as read-only inside the container (this overrides the default set of paths). */ @JsonClass(generateAdapter = true) - data class HostConfig( - - /* An integer value representing this container's relative CPU weight versus other containers. */ + // An integer value representing this container's relative CPU weight versus other containers. @Json(name = "CpuShares") var cpuShares: kotlin.Int? = null, - - /* Memory limit in bytes. */ + // Memory limit in bytes. @Json(name = "Memory") var memory: kotlin.Long? = 0L, - - /* Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. */ + // Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. @Json(name = "CgroupParent") var cgroupParent: kotlin.String? = null, - - /* Block IO weight (relative weight). */ + // Block IO weight (relative weight). @Json(name = "BlkioWeight") var blkioWeight: kotlin.Int? = null, - - /* Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` */ + // Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` @Json(name = "BlkioWeightDevice") var blkioWeightDevice: kotlin.collections.MutableList? = null, - - /* Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceReadBps") var blkioDeviceReadBps: kotlin.collections.MutableList? = null, - - /* Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceWriteBps") var blkioDeviceWriteBps: kotlin.collections.MutableList? = null, - - /* Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceReadIOps") var blkioDeviceReadIOps: kotlin.collections.MutableList? = null, - - /* Limit write rate (IO per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit write rate (IO per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceWriteIOps") var blkioDeviceWriteIOps: kotlin.collections.MutableList? = null, - - /* The length of a CPU period in microseconds. */ + // The length of a CPU period in microseconds. @Json(name = "CpuPeriod") var cpuPeriod: kotlin.Long? = null, - - /* Microseconds of CPU time that the container can get in a CPU period. */ + // Microseconds of CPU time that the container can get in a CPU period. @Json(name = "CpuQuota") var cpuQuota: kotlin.Long? = null, - - /* The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ + // The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. @Json(name = "CpuRealtimePeriod") var cpuRealtimePeriod: kotlin.Long? = null, - - /* The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ + // The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. @Json(name = "CpuRealtimeRuntime") var cpuRealtimeRuntime: kotlin.Long? = null, - - /* CPUs in which to allow execution (e.g., `0-3`, `0,1`). */ + // CPUs in which to allow execution (e.g., `0-3`, `0,1`). @Json(name = "CpusetCpus") var cpusetCpus: kotlin.String? = null, - - /* Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. */ + // Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. @Json(name = "CpusetMems") var cpusetMems: kotlin.String? = null, - - /* A list of devices to add to the container. */ + // A list of devices to add to the container. @Json(name = "Devices") var devices: kotlin.collections.MutableList? = null, - - /* a list of cgroup rules to apply to the container */ + // a list of cgroup rules to apply to the container @Json(name = "DeviceCgroupRules") var deviceCgroupRules: kotlin.collections.MutableList? = null, - - /* A list of requests for devices to be sent to device drivers. */ + // A list of requests for devices to be sent to device drivers. @Json(name = "DeviceRequests") var deviceRequests: kotlin.collections.MutableList? = null, - - /* Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI runtime in use, this option may be ignored. It is no longer supported by the default (runc) runtime. This field is omitted when empty. */ + // Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI runtime in use, this option may be ignored. It is no longer supported by the default (runc) runtime. This field is omitted when empty. @Json(name = "KernelMemoryTCP") var kernelMemoryTCP: kotlin.Long? = null, - - /* Memory soft limit in bytes. */ + // Memory soft limit in bytes. @Json(name = "MemoryReservation") var memoryReservation: kotlin.Long? = null, - - /* Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */ + // Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. @Json(name = "MemorySwap") var memorySwap: kotlin.Long? = null, - - /* Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. */ + // Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. @Json(name = "MemorySwappiness") var memorySwappiness: kotlin.Long? = null, - - /* CPU quota in units of 10-9 CPUs. */ + // CPU quota in units of 10-9 CPUs. @Json(name = "NanoCpus") var nanoCpus: kotlin.Long? = null, - - /* Disable OOM Killer for the container. */ + // Disable OOM Killer for the container. @Json(name = "OomKillDisable") var oomKillDisable: kotlin.Boolean? = null, - - /* Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. */ + // Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. @Json(name = "Init") var `init`: kotlin.Boolean? = null, - - /* Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null` to not change. */ + // Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null` to not change. @Json(name = "PidsLimit") var pidsLimit: kotlin.Long? = null, - - /* A list of resource limits to set in the container. For example: ``` {\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048} ``` */ + // A list of resource limits to set in the container. For example: ``` {\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048} ``` @Json(name = "Ulimits") var ulimits: kotlin.collections.MutableList? = null, - - /* The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ + // The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. @Json(name = "CpuCount") var cpuCount: kotlin.Long? = null, - - /* The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ + // The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. @Json(name = "CpuPercent") var cpuPercent: kotlin.Long? = null, - - /* Maximum IOps for the container system drive (Windows only) */ + // Maximum IOps for the container system drive (Windows only) @Json(name = "IOMaximumIOps") var ioMaximumIOps: kotlin.Long? = null, - - /* Maximum IO in bytes per second for the container system drive (Windows only). */ + // Maximum IO in bytes per second for the container system drive (Windows only). @Json(name = "IOMaximumBandwidth") var ioMaximumBandwidth: kotlin.Long? = null, - - /* A list of volume bindings for this container. Each volume binding is a string in one of these forms: - `host-src:container-dest[:options]` to bind-mount a host path into the container. Both `host-src`, and `container-dest` must be an _absolute_ path. - `volume-name:container-dest[:options]` to bind-mount a volume managed by a volume driver into the container. `container-dest` must be an _absolute_ path. `options` is an optional, comma-delimited list of: - `nocopy` disables automatic copying of data from the container path to the volume. The `nocopy` flag only applies to named volumes. - `[ro|rw]` mounts a volume read-only or read-write, respectively. If omitted or set to `rw`, volumes are mounted read-write. - `[z|Z]` applies SELinux labels to allow or deny multiple containers to read and write to the same volume. - `z`: a _shared_ content label is applied to the content. This label indicates that multiple containers can share the volume content, for both reading and writing. - `Z`: a _private unshared_ label is applied to the content. This label indicates that only the current container can use a private volume. Labeling systems such as SELinux require proper labels to be placed on volume content that is mounted into a container. Without a label, the security system can prevent a container's processes from using the content. By default, the labels set by the host operating system are not modified. - `[[r]shared|[r]slave|[r]private]` specifies mount [propagation behavior](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt). This only applies to bind-mounted volumes, not internal volumes or named volumes. Mount propagation requires the source mount point (the location where the source directory is mounted in the host operating system) to have the correct propagation properties. For shared volumes, the source mount point must be set to `shared`. For slave volumes, the mount must be set to either `shared` or `slave`. */ + // A list of volume bindings for this container. Each volume binding is a string in one of these forms: - `host-src:container-dest[:options]` to bind-mount a host path into the container. Both `host-src`, and `container-dest` must be an _absolute_ path. - `volume-name:container-dest[:options]` to bind-mount a volume managed by a volume driver into the container. `container-dest` must be an _absolute_ path. `options` is an optional, comma-delimited list of: - `nocopy` disables automatic copying of data from the container path to the volume. The `nocopy` flag only applies to named volumes. - `[ro|rw]` mounts a volume read-only or read-write, respectively. If omitted or set to `rw`, volumes are mounted read-write. - `[z|Z]` applies SELinux labels to allow or deny multiple containers to read and write to the same volume. - `z`: a _shared_ content label is applied to the content. This label indicates that multiple containers can share the volume content, for both reading and writing. - `Z`: a _private unshared_ label is applied to the content. This label indicates that only the current container can use a private volume. Labeling systems such as SELinux require proper labels to be placed on volume content that is mounted into a container. Without a label, the security system can prevent a container's processes from using the content. By default, the labels set by the host operating system are not modified. - `[[r]shared|[r]slave|[r]private]` specifies mount [propagation behavior](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt). This only applies to bind-mounted volumes, not internal volumes or named volumes. Mount propagation requires the source mount point (the location where the source directory is mounted in the host operating system) to have the correct propagation properties. For shared volumes, the source mount point must be set to `shared`. For slave volumes, the mount must be set to either `shared` or `slave`. @Json(name = "Binds") var binds: kotlin.collections.MutableList? = null, - - /* Path to a file where the container ID is written */ + // Path to a file where the container ID is written @Json(name = "ContainerIDFile") var containerIDFile: kotlin.String? = null, - @Json(name = "LogConfig") var logConfig: HostConfigAllOfLogConfig? = null, - - /* Network mode to use for this container. Supported standard values are: `bridge`, `host`, `none`, and `container:`. Any other value is taken as a custom network's name to which this container should connect to. */ + // Network mode to use for this container. Supported standard values are: `bridge`, `host`, `none`, and `container:`. Any other value is taken as a custom network's name to which this container should connect to. @Json(name = "NetworkMode") var networkMode: kotlin.String? = null, - - /* PortMap describes the mapping of container ports to host ports, using the container's port-number and protocol as key in the format `/`, for example, `80/udp`. If a container's port is mapped for multiple protocols, separate entries are added to the mapping table. */ + // PortMap describes the mapping of container ports to host ports, using the container's port-number and protocol as key in the format `/`, for example, `80/udp`. If a container's port is mapped for multiple protocols, separate entries are added to the mapping table. @Json(name = "PortBindings") var portBindings: kotlin.collections.MutableMap>? = null, - @Json(name = "RestartPolicy") var restartPolicy: RestartPolicy? = null, - - /* Automatically remove the container when the container's process exits. This has no effect if `RestartPolicy` is set. */ + // Automatically remove the container when the container's process exits. This has no effect if `RestartPolicy` is set. @Json(name = "AutoRemove") var autoRemove: kotlin.Boolean? = null, - - /* Driver that this container uses to mount volumes. */ + // Driver that this container uses to mount volumes. @Json(name = "VolumeDriver") var volumeDriver: kotlin.String? = null, - - /* A list of volumes to inherit from another container, specified in the form `[:]`. */ + // A list of volumes to inherit from another container, specified in the form `[:]`. @Json(name = "VolumesFrom") var volumesFrom: kotlin.collections.MutableList? = null, - - /* Specification for mounts to be added to the container. */ + // Specification for mounts to be added to the container. @Json(name = "Mounts") var mounts: kotlin.collections.MutableList? = null, - - /* Initial console size, as an `[height, width]` array. */ + // Initial console size, as an `[height, width]` array. @Json(name = "ConsoleSize") var consoleSize: kotlin.collections.MutableList? = null, - - /* Arbitrary non-identifying metadata attached to container and provided to the runtime when the container is started. */ + // Arbitrary non-identifying metadata attached to container and provided to the runtime when the container is started. @Json(name = "Annotations") var annotations: kotlin.collections.MutableMap? = null, - - /* A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'. */ + // A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'. @Json(name = "CapAdd") var capAdd: kotlin.collections.MutableList? = null, - - /* A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'. */ + // A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'. @Json(name = "CapDrop") var capDrop: kotlin.collections.MutableList? = null, - - /* cgroup namespace mode for the container. Possible values are: - `\"private\"`: the container runs in its own private cgroup namespace - `\"host\"`: use the host system's cgroup namespace If not specified, the daemon default is used, which can either be `\"private\"` or `\"host\"`, depending on daemon version, kernel support and configuration. */ + // cgroup namespace mode for the container. Possible values are: - `\"private\"`: the container runs in its own private cgroup namespace - `\"host\"`: use the host system's cgroup namespace If not specified, the daemon default is used, which can either be `\"private\"` or `\"host\"`, depending on daemon version, kernel support and configuration. @Json(name = "CgroupnsMode") var cgroupnsMode: HostConfig.CgroupnsMode? = null, - - /* A list of DNS servers for the container to use. */ + // A list of DNS servers for the container to use. @Json(name = "Dns") var dns: kotlin.collections.MutableList? = null, - - /* A list of DNS options. */ + // A list of DNS options. @Json(name = "DnsOptions") var dnsOptions: kotlin.collections.MutableList? = null, - - /* A list of DNS search domains. */ + // A list of DNS search domains. @Json(name = "DnsSearch") var dnsSearch: kotlin.collections.MutableList? = null, - - /* A list of hostnames/IP mappings to add to the container's `/etc/hosts` file. Specified in the form `[\"hostname:IP\"]`. */ + // A list of hostnames/IP mappings to add to the container's `/etc/hosts` file. Specified in the form `[\"hostname:IP\"]`. @Json(name = "ExtraHosts") var extraHosts: kotlin.collections.MutableList? = null, - - /* A list of additional groups that the container process will run as. */ + // A list of additional groups that the container process will run as. @Json(name = "GroupAdd") var groupAdd: kotlin.collections.MutableList? = null, - - /* IPC sharing mode for the container. Possible values are: - `\"none\"`: own private IPC namespace, with /dev/shm not mounted - `\"private\"`: own private IPC namespace - `\"shareable\"`: own private IPC namespace, with a possibility to share it with other containers - `\"container:\"`: join another (shareable) container's IPC namespace - `\"host\"`: use the host system's IPC namespace If not specified, daemon default is used, which can either be `\"private\"` or `\"shareable\"`, depending on daemon version and configuration. */ + // IPC sharing mode for the container. Possible values are: - `\"none\"`: own private IPC namespace, with /dev/shm not mounted - `\"private\"`: own private IPC namespace - `\"shareable\"`: own private IPC namespace, with a possibility to share it with other containers - `\"container:\"`: join another (shareable) container's IPC namespace - `\"host\"`: use the host system's IPC namespace If not specified, daemon default is used, which can either be `\"private\"` or `\"shareable\"`, depending on daemon version and configuration. @Json(name = "IpcMode") var ipcMode: kotlin.String? = null, - - /* Cgroup to use for the container. */ + // Cgroup to use for the container. @Json(name = "Cgroup") var cgroup: kotlin.String? = null, - - /* A list of links for the container in the form `container_name:alias`. */ + // A list of links for the container in the form `container_name:alias`. @Json(name = "Links") var links: kotlin.collections.MutableList? = null, - - /* An integer value containing the score given to the container in order to tune OOM killer preferences. */ + // An integer value containing the score given to the container in order to tune OOM killer preferences. @Json(name = "OomScoreAdj") var oomScoreAdj: kotlin.Int? = null, - - /* Set the PID (Process) Namespace mode for the container. It can be either: - `\"container:\"`: joins another container's PID namespace - `\"host\"`: use the host's PID namespace inside the container */ + // Set the PID (Process) Namespace mode for the container. It can be either: - `\"container:\"`: joins another container's PID namespace - `\"host\"`: use the host's PID namespace inside the container @Json(name = "PidMode") var pidMode: kotlin.String? = null, - - /* Gives the container full access to the host. */ + // Gives the container full access to the host. @Json(name = "Privileged") var privileged: kotlin.Boolean? = null, - - /* Allocates an ephemeral host port for all of a container's exposed ports. Ports are de-allocated when the container stops and allocated when the container starts. The allocated port might be changed when restarting the container. The port is selected from the ephemeral port range that depends on the kernel. For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`. */ + // Allocates an ephemeral host port for all of a container's exposed ports. Ports are de-allocated when the container stops and allocated when the container starts. The allocated port might be changed when restarting the container. The port is selected from the ephemeral port range that depends on the kernel. For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`. @Json(name = "PublishAllPorts") var publishAllPorts: kotlin.Boolean? = null, - - /* Mount the container's root filesystem as read only. */ + // Mount the container's root filesystem as read only. @Json(name = "ReadonlyRootfs") var readonlyRootfs: kotlin.Boolean? = null, - - /* A list of string values to customize labels for MLS systems, such as SELinux. */ + // A list of string values to customize labels for MLS systems, such as SELinux. @Json(name = "SecurityOpt") var securityOpt: kotlin.collections.MutableList? = null, - - /* Storage driver options for this container, in the form `{\"size\": \"120G\"}`. */ + // Storage driver options for this container, in the form `{\"size\": \"120G\"}`. @Json(name = "StorageOpt") var storageOpt: kotlin.collections.MutableMap? = null, - - /* A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options. For example: ``` { \"/run\": \"rw,noexec,nosuid,size=65536k\" } ``` */ + // A map of container directories which should be replaced by tmpfs mounts, and their corresponding mount options. For example: ``` { \"/run\": \"rw,noexec,nosuid,size=65536k\" } ``` @Json(name = "Tmpfs") var tmpfs: kotlin.collections.MutableMap? = null, - - /* UTS namespace to use for the container. */ + // UTS namespace to use for the container. @Json(name = "UTSMode") var utSMode: kotlin.String? = null, - - /* Sets the usernamespace mode for the container when usernamespace remapping option is enabled. */ + // Sets the usernamespace mode for the container when usernamespace remapping option is enabled. @Json(name = "UsernsMode") var usernsMode: kotlin.String? = null, - - /* Size of `/dev/shm` in bytes. If omitted, the system uses 64MB. */ + // Size of `/dev/shm` in bytes. If omitted, the system uses 64MB. @Json(name = "ShmSize") var shmSize: kotlin.Long? = null, - - /* A list of kernel parameters (sysctls) to set in the container. For example: ``` {\"net.ipv4.ip_forward\": \"1\"} ``` */ + // A list of kernel parameters (sysctls) to set in the container. For example: ``` {\"net.ipv4.ip_forward\": \"1\"} ``` @Json(name = "Sysctls") var sysctls: kotlin.collections.MutableMap? = null, - - /* Runtime to use with this container. */ + // Runtime to use with this container. @Json(name = "Runtime") var runtime: kotlin.String? = null, - - /* Isolation technology of the container. (Windows only) */ + // Isolation technology of the container. (Windows only) @Json(name = "Isolation") var isolation: HostConfig.Isolation? = null, - - /* The list of paths to be masked inside the container (this overrides the default set of paths). */ + // The list of paths to be masked inside the container (this overrides the default set of paths). @Json(name = "MaskedPaths") var maskedPaths: kotlin.collections.MutableList? = null, - - /* The list of paths to be set as read-only inside the container (this overrides the default set of paths). */ + // The list of paths to be set as read-only inside the container (this overrides the default set of paths). @Json(name = "ReadonlyPaths") - var readonlyPaths: kotlin.collections.MutableList? = null - + var readonlyPaths: kotlin.collections.MutableList? = null, ) { - /** * cgroup namespace mode for the container. Possible values are: - `\"private\"`: the container runs in its own private cgroup namespace - `\"host\"`: use the host system's cgroup namespace If not specified, the daemon default is used, which can either be `\"private\"` or `\"host\"`, depending on daemon version, kernel support and configuration. * @@ -387,7 +314,7 @@ data class HostConfig( Private("private"), @Json(name = "host") - Host("host"); + Host("host"), } /** @@ -404,6 +331,6 @@ data class HostConfig( Process("process"), @Json(name = "hyperv") - Hyperv("hyperv"); + Hyperv("hyperv"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HostConfigAllOfLogConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HostConfigAllOfLogConfig.kt index 694c3341..e01f9f53 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HostConfigAllOfLogConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/HostConfigAllOfLogConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,17 +25,12 @@ import com.squareup.moshi.JsonClass * @param config */ @JsonClass(generateAdapter = true) - data class HostConfigAllOfLogConfig( - @Json(name = "Type") var type: HostConfigAllOfLogConfig.Type? = null, - @Json(name = "Config") - var config: kotlin.collections.MutableMap? = null - + var config: kotlin.collections.MutableMap? = null, ) { - /** * * @@ -68,6 +63,6 @@ data class HostConfigAllOfLogConfig( Etwlogs("etwlogs"), @Json(name = "none") - None("none"); + None("none"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IPAM.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IPAM.kt index 321dbc83..6b12e613 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IPAM.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IPAM.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -22,23 +22,18 @@ import com.squareup.moshi.JsonClass * * * @param driver Name of the IPAM driver to use. - * @param config List of IPAM configuration options, specified as a map: ``` {\"Subnet\": , \"IPRange\": , \"Gateway\": , \"AuxAddress\": } ``` + * @param config List of IPAM configuration options, specified as a map: ``` {\"Subnet\": , \"IPRange\": , \"Gateway\": , \"AuxAddress\": } ``` * @param options Driver-specific options, specified as a map. */ @JsonClass(generateAdapter = true) - data class IPAM( - - /* Name of the IPAM driver to use. */ + // Name of the IPAM driver to use. @Json(name = "Driver") var driver: kotlin.String? = "default", - - /* List of IPAM configuration options, specified as a map: ``` {\"Subnet\": , \"IPRange\": , \"Gateway\": , \"AuxAddress\": } ``` */ + // List of IPAM configuration options, specified as a map: ``` {\"Subnet\": , \"IPRange\": , \"Gateway\": , \"AuxAddress\": } ``` @Json(name = "Config") var config: kotlin.collections.MutableList? = null, - - /* Driver-specific options, specified as a map. */ + // Driver-specific options, specified as a map. @Json(name = "Options") - var options: kotlin.collections.MutableMap? = null - + var options: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IPAMConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IPAMConfig.kt index 7a784a9c..dac6a0e4 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IPAMConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IPAMConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,19 +27,13 @@ import com.squareup.moshi.JsonClass * @param auxiliaryAddresses */ @JsonClass(generateAdapter = true) - data class IPAMConfig( - @Json(name = "Subnet") var subnet: kotlin.String? = null, - @Json(name = "IPRange") var ipRange: kotlin.String? = null, - @Json(name = "Gateway") var gateway: kotlin.String? = null, - @Json(name = "AuxiliaryAddresses") - var auxiliaryAddresses: kotlin.collections.MutableMap? = null - + var auxiliaryAddresses: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IdResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IdResponse.kt index 90e4c039..fc6bda81 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IdResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IdResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param id The id of the newly created object. */ @JsonClass(generateAdapter = true) - data class IdResponse( - - /* The id of the newly created object. */ + // The id of the newly created object. @Json(name = "Id") - var id: kotlin.String - + var id: kotlin.String, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageDeleteResponseItem.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageDeleteResponseItem.kt index 75077f89..138be462 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageDeleteResponseItem.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageDeleteResponseItem.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param deleted The image ID of an image that was deleted */ @JsonClass(generateAdapter = true) - data class ImageDeleteResponseItem( - - /* The image ID of an image that was untagged */ + // The image ID of an image that was untagged @Json(name = "Untagged") var untagged: kotlin.String? = null, - - /* The image ID of an image that was deleted */ + // The image ID of an image that was deleted @Json(name = "Deleted") - var deleted: kotlin.String? = null - + var deleted: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageID.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageID.kt index 9c57706b..395b6ed5 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageID.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageID.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param ID */ @JsonClass(generateAdapter = true) - data class ImageID( - @Json(name = "ID") - var ID: kotlin.String? = null - + var ID: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspect.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspect.kt index e1ae470a..b0ce2c11 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspect.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspect.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -43,82 +43,60 @@ import com.squareup.moshi.JsonClass * @param metadata */ @JsonClass(generateAdapter = true) - data class ImageInspect( - - /* ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image. */ + // ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image. @Json(name = "Id") var id: kotlin.String? = null, - - /* List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is \"untagged\", in which case it can still be referenced by its ID. */ + // List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is \"untagged\", in which case it can still be referenced by its ID. @Json(name = "RepoTags") var repoTags: kotlin.collections.MutableList? = null, - - /* List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated. */ + // List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated. @Json(name = "RepoDigests") var repoDigests: kotlin.collections.MutableList? = null, - - /* ID of the parent image. Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry. */ + // ID of the parent image. Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry. @Json(name = "Parent") var parent: kotlin.String? = null, - - /* Optional message that was set when committing or importing the image. */ + // Optional message that was set when committing or importing the image. @Json(name = "Comment") var comment: kotlin.String? = null, - - /* Date and time at which the image was created, formatted in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the image was created, formatted in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "Created") var created: kotlin.String? = null, - - /* The ID of the container that was used to create the image. Depending on how the image was created, this field may be empty. */ + // The ID of the container that was used to create the image. Depending on how the image was created, this field may be empty. @Json(name = "Container") var container: kotlin.String? = null, - @Json(name = "ContainerConfig") var containerConfig: ContainerConfig? = null, - - /* The version of Docker that was used to build the image. Depending on how the image was created, this field may be empty. */ + // The version of Docker that was used to build the image. Depending on how the image was created, this field may be empty. @Json(name = "DockerVersion") var dockerVersion: kotlin.String? = null, - - /* Name of the author that was specified when committing the image, or as specified through MAINTAINER (deprecated) in the Dockerfile. */ + // Name of the author that was specified when committing the image, or as specified through MAINTAINER (deprecated) in the Dockerfile. @Json(name = "Author") var author: kotlin.String? = null, - @Json(name = "Config") var config: ContainerConfig? = null, - - /* Hardware CPU architecture that the image runs on. */ + // Hardware CPU architecture that the image runs on. @Json(name = "Architecture") var architecture: kotlin.String? = null, - - /* CPU architecture variant (presently ARM-only). */ + // CPU architecture variant (presently ARM-only). @Json(name = "Variant") var variant: kotlin.String? = null, - - /* Operating System the image is built to run on. */ + // Operating System the image is built to run on. @Json(name = "Os") var os: kotlin.String? = null, - - /* Operating System version the image is built to run on (especially for Windows). */ + // Operating System version the image is built to run on (especially for Windows). @Json(name = "OsVersion") var osVersion: kotlin.String? = null, - - /* Total size of the image including all layers it is composed of. */ + // Total size of the image including all layers it is composed of. @Json(name = "Size") var propertySize: kotlin.Long? = null, - - /* Total size of the image including all layers it is composed of. Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead. */ + // Total size of the image including all layers it is composed of. Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead. @Json(name = "VirtualSize") var virtualSize: kotlin.Long? = null, - @Json(name = "GraphDriver") var graphDriver: GraphDriverData? = null, - @Json(name = "RootFS") var rootFS: ImageInspectRootFS? = null, - @Json(name = "Metadata") - var metadata: ImageInspectMetadata? = null - + var metadata: ImageInspectMetadata? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspectMetadata.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspectMetadata.kt index 2b0f6ec6..51c0d93e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspectMetadata.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspectMetadata.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param lastTagTime Date and time at which the image was last tagged in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. This information is only available if the image was tagged locally, and omitted otherwise. */ @JsonClass(generateAdapter = true) - data class ImageInspectMetadata( - - /* Date and time at which the image was last tagged in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. This information is only available if the image was tagged locally, and omitted otherwise. */ + // Date and time at which the image was last tagged in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. This information is only available if the image was tagged locally, and omitted otherwise. @Json(name = "LastTagTime") - var lastTagTime: kotlin.String? = null - + var lastTagTime: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspectRootFS.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspectRootFS.kt index c4263e5a..23515fd8 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspectRootFS.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageInspectRootFS.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param layers */ @JsonClass(generateAdapter = true) - data class ImageInspectRootFS( - @Json(name = "Type") var type: kotlin.String, - @Json(name = "Layers") - var layers: kotlin.collections.MutableList? = null - + var layers: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImagePruneResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImagePruneResponse.kt index 4db1674b..b551f8d0 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImagePruneResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImagePruneResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param spaceReclaimed Disk space reclaimed in bytes */ @JsonClass(generateAdapter = true) - data class ImagePruneResponse( - - /* Images that were deleted */ + // Images that were deleted @Json(name = "ImagesDeleted") var imagesDeleted: kotlin.collections.MutableList? = null, - - /* Disk space reclaimed in bytes */ + // Disk space reclaimed in bytes @Json(name = "SpaceReclaimed") - var spaceReclaimed: kotlin.Long? = null - + var spaceReclaimed: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSearchResponseItem.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSearchResponseItem.kt index 8dc05f9d..89f7e7b2 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSearchResponseItem.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSearchResponseItem.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,23 +28,16 @@ import com.squareup.moshi.JsonClass * @param starCount */ @JsonClass(generateAdapter = true) - data class ImageSearchResponseItem( - @Json(name = "description") var description: kotlin.String? = null, - @Json(name = "is_official") var official: kotlin.Boolean? = null, - - /* Whether this repository has automated builds enabled.


> **Deprecated**: This field is deprecated and will always > be \"false\" in future. */ + // Whether this repository has automated builds enabled.


> **Deprecated**: This field is deprecated and will always > be \"false\" in future. @Json(name = "is_automated") var automated: kotlin.Boolean? = null, - @Json(name = "name") var name: kotlin.String? = null, - @Json(name = "star_count") - var starCount: kotlin.Int? = null - + var starCount: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSummary.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSummary.kt index 84cf7f13..bc3d8333 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSummary.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ImageSummary.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -33,47 +33,35 @@ import com.squareup.moshi.JsonClass * @param labels User-defined key/value metadata. */ @JsonClass(generateAdapter = true) - data class ImageSummary( - - /* ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image. */ + // ID is the content-addressable ID of an image. This identifier is a content-addressable digest calculated from the image's configuration (which includes the digests of layers used by the image). Note that this digest differs from the `RepoDigests` below, which holds digests of image manifests that reference the image. @Json(name = "Id") var id: kotlin.String, - - /* ID of the parent image. Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry. */ + // ID of the parent image. Depending on how the image was created, this field may be empty and is only set for images that were built/created locally. This field is empty if the image was pulled from an image registry. @Json(name = "ParentId") var parentId: kotlin.String, - - /* Date and time at which the image was created as a Unix timestamp (number of seconds sinds EPOCH). */ + // Date and time at which the image was created as a Unix timestamp (number of seconds sinds EPOCH). @Json(name = "Created") var created: kotlin.Int, - - /* Total size of the image including all layers it is composed of. */ + // Total size of the image including all layers it is composed of. @Json(name = "Size") var propertySize: kotlin.Long, - - /* Total size of image layers that are shared between this image and other images. This size is not calculated by default. `-1` indicates that the value has not been set / calculated. */ + // Total size of image layers that are shared between this image and other images. This size is not calculated by default. `-1` indicates that the value has not been set / calculated. @Json(name = "SharedSize") var sharedSize: kotlin.Long, - - /* Number of containers using this image. Includes both stopped and running containers. This size is not calculated by default, and depends on which API endpoint is used. `-1` indicates that the value has not been set / calculated. */ + // Number of containers using this image. Includes both stopped and running containers. This size is not calculated by default, and depends on which API endpoint is used. `-1` indicates that the value has not been set / calculated. @Json(name = "Containers") var containers: kotlin.Int, - - /* List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is \"untagged\", in which case it can still be referenced by its ID. */ + // List of image names/tags in the local image cache that reference this image. Multiple image tags can refer to the same image, and this list may be empty if no tags reference the image, in which case the image is \"untagged\", in which case it can still be referenced by its ID. @Json(name = "RepoTags") var repoTags: kotlin.collections.MutableList? = null, - - /* List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated. */ + // List of content-addressable digests of locally available image manifests that the image is referenced from. Multiple manifests can refer to the same image. These digests are usually only available if the image was either pulled from a registry, or if the image was pushed to a registry, which is when the manifest is generated and its digest calculated. @Json(name = "RepoDigests") var repoDigests: kotlin.collections.MutableList? = null, - - /* Total size of the image including all layers it is composed of. Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead. */ + // Total size of the image including all layers it is composed of. Deprecated: this field is omitted in API v1.44, but kept for backward compatibility. Use Size instead. @Json(name = "VirtualSize") var virtualSize: kotlin.Long? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") - var labels: kotlin.collections.MutableMap? = null - + var labels: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IndexInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IndexInfo.kt index 02f230ef..946c5434 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IndexInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/IndexInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,23 +27,17 @@ import com.squareup.moshi.JsonClass * @param official Indicates whether this is an official registry (i.e., Docker Hub / docker.io) */ @JsonClass(generateAdapter = true) - data class IndexInfo( - - /* Name of the registry, such as \"docker.io\". */ + // Name of the registry, such as \"docker.io\". @Json(name = "Name") var name: kotlin.String? = null, - - /* List of mirrors, expressed as URIs. */ + // List of mirrors, expressed as URIs. @Json(name = "Mirrors") var mirrors: kotlin.collections.MutableList? = null, - - /* Indicates if the registry is part of the list of insecure registries. If `false`, the registry is insecure. Insecure registries accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs) communication. > **Warning**: Insecure registries can be useful when running a local > registry. However, because its use creates security vulnerabilities > it should ONLY be enabled for testing purposes. For increased > security, users should add their CA to their system's list of > trusted CAs instead of enabling this option. */ + // Indicates if the registry is part of the list of insecure registries. If `false`, the registry is insecure. Insecure registries accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs) communication. > **Warning**: Insecure registries can be useful when running a local > registry. However, because its use creates security vulnerabilities > it should ONLY be enabled for testing purposes. For increased > security, users should add their CA to their system's list of > trusted CAs instead of enabling this option. @Json(name = "Secure") var secure: kotlin.Boolean? = null, - - /* Indicates whether this is an official registry (i.e., Docker Hub / docker.io) */ + // Indicates whether this is an official registry (i.e., Docker Hub / docker.io) @Json(name = "Official") - var official: kotlin.Boolean? = null - + var official: kotlin.Boolean? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/JoinTokens.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/JoinTokens.kt index 1eab9f86..c86f24ed 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/JoinTokens.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/JoinTokens.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param manager The token managers can use to join the swarm. */ @JsonClass(generateAdapter = true) - data class JoinTokens( - - /* The token workers can use to join the swarm. */ + // The token workers can use to join the swarm. @Json(name = "Worker") var worker: kotlin.String? = null, - - /* The token managers can use to join the swarm. */ + // The token managers can use to join the swarm. @Json(name = "Manager") - var manager: kotlin.String? = null - + var manager: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Limit.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Limit.kt index be79a03f..032c6749 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Limit.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Limit.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,17 +26,12 @@ import com.squareup.moshi.JsonClass * @param pids Limits the maximum number of PIDs in the container. Set `0` for unlimited. */ @JsonClass(generateAdapter = true) - data class Limit( - @Json(name = "NanoCPUs") var nanoCPUs: kotlin.Long? = null, - @Json(name = "MemoryBytes") var memoryBytes: kotlin.Long? = null, - - /* Limits the maximum number of PIDs in the container. Set `0` for unlimited. */ + // Limits the maximum number of PIDs in the container. Set `0` for unlimited. @Json(name = "Pids") - var pids: kotlin.Long? = 0L - + var pids: kotlin.Long? = 0L, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/LocalNodeState.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/LocalNodeState.kt index 95188718..98d513f8 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/LocalNodeState.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/LocalNodeState.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = false) enum class LocalNodeState(val value: kotlin.String) { - @Json(name = "") EMPTY(""), @@ -43,7 +42,8 @@ enum class LocalNodeState(val value: kotlin.String) { Error("error"), @Json(name = "locked") - Locked("locked"); + Locked("locked"), + ; /** * Override [toString()] to avoid using the enum variable name as the value, and instead use @@ -63,11 +63,12 @@ enum class LocalNodeState(val value: kotlin.String) { /** * Returns a valid [LocalNodeState] for [data], null otherwise. */ - fun decode(data: kotlin.Any?): LocalNodeState? = data?.let { - val normalizedData = "$it".lowercase() - values().firstOrNull { value -> - it == value || normalizedData == "$value".lowercase() + fun decode(data: kotlin.Any?): LocalNodeState? = + data?.let { + val normalizedData = "$it".lowercase() + values().firstOrNull { value -> + it == value || normalizedData == "$value".lowercase() + } } - } } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ManagerStatus.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ManagerStatus.kt index d16f334f..43ddd780 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ManagerStatus.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ManagerStatus.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,17 +26,12 @@ import com.squareup.moshi.JsonClass * @param addr The IP address and port at which the manager is reachable. */ @JsonClass(generateAdapter = true) - data class ManagerStatus( - @Json(name = "Leader") var leader: kotlin.Boolean? = false, - @Json(name = "Reachability") var reachability: Reachability? = null, - - /* The IP address and port at which the manager is reachable. */ + // The IP address and port at which the manager is reachable. @Json(name = "Addr") - var addr: kotlin.String? = null - + var addr: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Mount.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Mount.kt index c0ecd318..50aadec7 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Mount.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Mount.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,40 +31,29 @@ import com.squareup.moshi.JsonClass * @param tmpfsOptions */ @JsonClass(generateAdapter = true) - data class Mount( - - /* Container path. */ + // Container path. @Json(name = "Target") var target: kotlin.String? = null, - - /* Mount source (e.g. a volume name, a host path). */ + // Mount source (e.g. a volume name, a host path). @Json(name = "Source") var source: kotlin.String? = null, - - /* The mount type. Available types: - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed. - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. - `cluster` a Swarm cluster volume */ + // The mount type. Available types: - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed. - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. - `cluster` a Swarm cluster volume @Json(name = "Type") var type: Mount.Type? = null, - - /* Whether the mount should be read-only. */ + // Whether the mount should be read-only. @Json(name = "ReadOnly") var readOnly: kotlin.Boolean? = null, - - /* The consistency requirement for the mount: `default`, `consistent`, `cached`, or `delegated`. */ + // The consistency requirement for the mount: `default`, `consistent`, `cached`, or `delegated`. @Json(name = "Consistency") var consistency: kotlin.String? = null, - @Json(name = "BindOptions") var bindOptions: MountBindOptions? = null, - @Json(name = "VolumeOptions") var volumeOptions: MountVolumeOptions? = null, - @Json(name = "TmpfsOptions") - var tmpfsOptions: MountTmpfsOptions? = null - + var tmpfsOptions: MountTmpfsOptions? = null, ) { - /** * The mount type. Available types: - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed. - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. - `cluster` a Swarm cluster volume * @@ -85,6 +74,6 @@ data class Mount( Npipe("npipe"), @Json(name = "cluster") - Cluster("cluster"); + Cluster("cluster"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountBindOptions.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountBindOptions.kt index e84545f0..c7624f8e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountBindOptions.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountBindOptions.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,19 +25,14 @@ import com.squareup.moshi.JsonClass * @param nonRecursive Disable recursive bind mount. */ @JsonClass(generateAdapter = true) - data class MountBindOptions( - - /* A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`. */ + // A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`. @Json(name = "Propagation") var propagation: MountBindOptions.Propagation? = null, - - /* Disable recursive bind mount. */ + // Disable recursive bind mount. @Json(name = "NonRecursive") - var nonRecursive: kotlin.Boolean? = false - + var nonRecursive: kotlin.Boolean? = false, ) { - /** * A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`. * @@ -61,6 +56,6 @@ data class MountBindOptions( Slave("slave"), @Json(name = "rslave") - Rslave("rslave"); + Rslave("rslave"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountPoint.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountPoint.kt index bf6a85e7..3a6a1e7d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountPoint.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountPoint.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,43 +31,32 @@ import com.squareup.moshi.JsonClass * @param propagation Propagation describes how mounts are propagated from the host into the mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt) for details. This field is not used on Windows. */ @JsonClass(generateAdapter = true) - data class MountPoint( - - /* The mount type: - `bind` a mount of a file or directory from the host into the container. - `volume` a docker volume with the given `Name`. - `tmpfs` a `tmpfs`. - `npipe` a named pipe from the host into the container. - `cluster` a Swarm cluster volume */ + // The mount type: - `bind` a mount of a file or directory from the host into the container. - `volume` a docker volume with the given `Name`. - `tmpfs` a `tmpfs`. - `npipe` a named pipe from the host into the container. - `cluster` a Swarm cluster volume @Json(name = "Type") var type: MountPoint.Type? = null, - - /* Name is the name reference to the underlying data defined by `Source` e.g., the volume name. */ + // Name is the name reference to the underlying data defined by `Source` e.g., the volume name. @Json(name = "Name") var name: kotlin.String? = null, - - /* Source location of the mount. For volumes, this contains the storage location of the volume (within `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains the source (host) part of the bind-mount. For `tmpfs` mount points, this field is empty. */ + // Source location of the mount. For volumes, this contains the storage location of the volume (within `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains the source (host) part of the bind-mount. For `tmpfs` mount points, this field is empty. @Json(name = "Source") var source: kotlin.String? = null, - - /* Destination is the path relative to the container root (`/`) where the `Source` is mounted inside the container. */ + // Destination is the path relative to the container root (`/`) where the `Source` is mounted inside the container. @Json(name = "Destination") var destination: kotlin.String? = null, - - /* Driver is the volume driver used to create the volume (if it is a volume). */ + // Driver is the volume driver used to create the volume (if it is a volume). @Json(name = "Driver") var driver: kotlin.String? = null, - - /* Mode is a comma separated list of options supplied by the user when creating the bind/volume mount. The default is platform-specific (`\"z\"` on Linux, empty on Windows). */ + // Mode is a comma separated list of options supplied by the user when creating the bind/volume mount. The default is platform-specific (`\"z\"` on Linux, empty on Windows). @Json(name = "Mode") var mode: kotlin.String? = null, - - /* Whether the mount is mounted writable (read-write). */ + // Whether the mount is mounted writable (read-write). @Json(name = "RW") var RW: kotlin.Boolean? = null, - - /* Propagation describes how mounts are propagated from the host into the mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt) for details. This field is not used on Windows. */ + // Propagation describes how mounts are propagated from the host into the mount point, and vice-versa. Refer to the [Linux kernel documentation](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt) for details. This field is not used on Windows. @Json(name = "Propagation") - var propagation: kotlin.String? = null - + var propagation: kotlin.String? = null, ) { - /** * The mount type: - `bind` a mount of a file or directory from the host into the container. - `volume` a docker volume with the given `Name`. - `tmpfs` a `tmpfs`. - `npipe` a named pipe from the host into the container. - `cluster` a Swarm cluster volume * @@ -88,6 +77,6 @@ data class MountPoint( Npipe("npipe"), @Json(name = "cluster") - Cluster("cluster"); + Cluster("cluster"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountTmpfsOptions.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountTmpfsOptions.kt index f91e0c50..09903e8a 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountTmpfsOptions.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountTmpfsOptions.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param mode The permission mode for the tmpfs mount in an integer. */ @JsonClass(generateAdapter = true) - data class MountTmpfsOptions( - - /* The size for the tmpfs mount in bytes. */ + // The size for the tmpfs mount in bytes. @Json(name = "SizeBytes") var sizeBytes: kotlin.Long? = null, - - /* The permission mode for the tmpfs mount in an integer. */ + // The permission mode for the tmpfs mount in an integer. @Json(name = "Mode") - var mode: kotlin.Int? = null - + var mode: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountVolumeOptions.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountVolumeOptions.kt index 9b41ebd7..0fa3a7a6 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountVolumeOptions.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountVolumeOptions.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,18 +26,13 @@ import com.squareup.moshi.JsonClass * @param driverConfig */ @JsonClass(generateAdapter = true) - data class MountVolumeOptions( - - /* Populate volume with data from the target. */ + // Populate volume with data from the target. @Json(name = "NoCopy") var noCopy: kotlin.Boolean? = false, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - @Json(name = "DriverConfig") - var driverConfig: MountVolumeOptionsDriverConfig? = null - + var driverConfig: MountVolumeOptionsDriverConfig? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountVolumeOptionsDriverConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountVolumeOptionsDriverConfig.kt index 1a553735..3b8d0ab9 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountVolumeOptionsDriverConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/MountVolumeOptionsDriverConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param options key/value map of driver specific options. */ @JsonClass(generateAdapter = true) - data class MountVolumeOptionsDriverConfig( - - /* Name of the driver to use to create the volume. */ + // Name of the driver to use to create the volume. @Json(name = "Name") var name: kotlin.String? = null, - - /* key/value map of driver specific options. */ + // key/value map of driver specific options. @Json(name = "Options") - var options: kotlin.collections.MutableMap? = null - + var options: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Network.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Network.kt index cfe1108d..b7c9d07e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Network.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Network.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -36,46 +36,31 @@ import com.squareup.moshi.JsonClass * @param labels */ @JsonClass(generateAdapter = true) - data class Network( - @Json(name = "Name") var name: kotlin.String? = null, - @Json(name = "Id") var id: kotlin.String? = null, - @Json(name = "Created") var created: kotlin.String? = null, - @Json(name = "Scope") var scope: kotlin.String? = null, - @Json(name = "Driver") var driver: kotlin.String? = null, - @Json(name = "EnableIPv6") var enableIPv6: kotlin.Boolean? = null, - @Json(name = "IPAM") var IPAM: IPAM? = null, - @Json(name = "Internal") var `internal`: kotlin.Boolean? = null, - @Json(name = "Attachable") var attachable: kotlin.Boolean? = null, - @Json(name = "Ingress") var ingress: kotlin.Boolean? = null, - @Json(name = "Containers") var containers: kotlin.collections.MutableMap? = null, - @Json(name = "Options") var options: kotlin.collections.MutableMap? = null, - @Json(name = "Labels") - var labels: kotlin.collections.MutableMap? = null - + var labels: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkAttachmentConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkAttachmentConfig.kt index 9ec2deb1..fcfeecbf 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkAttachmentConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkAttachmentConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @param driverOpts Driver attachment options for the network target. */ @JsonClass(generateAdapter = true) - data class NetworkAttachmentConfig( - - /* The target network for attachment. Must be a network name or ID. */ + // The target network for attachment. Must be a network name or ID. @Json(name = "Target") var target: kotlin.String? = null, - - /* Discoverable alternate names for the service on this network. */ + // Discoverable alternate names for the service on this network. @Json(name = "Aliases") var aliases: kotlin.collections.MutableList? = null, - - /* Driver attachment options for the network target. */ + // Driver attachment options for the network target. @Json(name = "DriverOpts") - var driverOpts: kotlin.collections.MutableMap? = null - + var driverOpts: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkConnectRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkConnectRequest.kt index 18471c4c..b80d02cb 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkConnectRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkConnectRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,14 +25,10 @@ import com.squareup.moshi.JsonClass * @param endpointConfig */ @JsonClass(generateAdapter = true) - data class NetworkConnectRequest( - - /* The ID or name of the container to connect to the network. */ + // The ID or name of the container to connect to the network. @Json(name = "Container") var container: kotlin.String? = null, - @Json(name = "EndpointConfig") - var endpointConfig: EndpointSettings? = null - + var endpointConfig: EndpointSettings? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkContainer.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkContainer.kt index f7f1606c..20d8e24c 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkContainer.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkContainer.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,22 +28,15 @@ import com.squareup.moshi.JsonClass * @param ipv6Address */ @JsonClass(generateAdapter = true) - data class NetworkContainer( - @Json(name = "Name") var name: kotlin.String? = null, - @Json(name = "EndpointID") var endpointID: kotlin.String? = null, - @Json(name = "MacAddress") var macAddress: kotlin.String? = null, - @Json(name = "IPv4Address") var ipv4Address: kotlin.String? = null, - @Json(name = "IPv6Address") - var ipv6Address: kotlin.String? = null - + var ipv6Address: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkCreateRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkCreateRequest.kt index f4f05315..21281628 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkCreateRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkCreateRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -33,46 +33,34 @@ import com.squareup.moshi.JsonClass * @param labels User-defined key/value metadata. */ @JsonClass(generateAdapter = true) - data class NetworkCreateRequest( - - /* The network's name. */ + // The network's name. @Json(name = "Name") var name: kotlin.String, - - /* Deprecated: CheckDuplicate is now always enabled. */ + // Deprecated: CheckDuplicate is now always enabled. @Json(name = "CheckDuplicate") var checkDuplicate: kotlin.Boolean? = null, - - /* Name of the network driver plugin to use. */ + // Name of the network driver plugin to use. @Json(name = "Driver") var driver: kotlin.String? = "bridge", - - /* Restrict external access to the network. */ + // Restrict external access to the network. @Json(name = "Internal") var `internal`: kotlin.Boolean? = null, - - /* Globally scoped network is manually attachable by regular containers from workers in swarm mode. */ + // Globally scoped network is manually attachable by regular containers from workers in swarm mode. @Json(name = "Attachable") var attachable: kotlin.Boolean? = null, - - /* Ingress network is the network which provides the routing-mesh in swarm mode. */ + // Ingress network is the network which provides the routing-mesh in swarm mode. @Json(name = "Ingress") var ingress: kotlin.Boolean? = null, - @Json(name = "IPAM") var IPAM: IPAM? = null, - - /* Enable IPv6 on the network. */ + // Enable IPv6 on the network. @Json(name = "EnableIPv6") var enableIPv6: kotlin.Boolean? = null, - - /* Network specific options to be used by the drivers. */ + // Network specific options to be used by the drivers. @Json(name = "Options") var options: kotlin.collections.MutableMap? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") - var labels: kotlin.collections.MutableMap? = null - + var labels: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkCreateResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkCreateResponse.kt index 5459ca7c..3429f216 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkCreateResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkCreateResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,14 +25,10 @@ import com.squareup.moshi.JsonClass * @param warning */ @JsonClass(generateAdapter = true) - data class NetworkCreateResponse( - - /* The ID of the created network. */ + // The ID of the created network. @Json(name = "Id") var id: kotlin.String? = null, - @Json(name = "Warning") - var warning: kotlin.String? = null - + var warning: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkDisconnectRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkDisconnectRequest.kt index 7387b8d6..fc94cc23 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkDisconnectRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkDisconnectRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param force Force the container to disconnect from the network. */ @JsonClass(generateAdapter = true) - data class NetworkDisconnectRequest( - - /* The ID or name of the container to disconnect from the network. */ + // The ID or name of the container to disconnect from the network. @Json(name = "Container") var container: kotlin.String? = null, - - /* Force the container to disconnect from the network. */ + // Force the container to disconnect from the network. @Json(name = "Force") - var force: kotlin.Boolean? = null - + var force: kotlin.Boolean? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkPruneResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkPruneResponse.kt index 497c2638..5d84de59 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkPruneResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkPruneResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param networksDeleted Networks that were deleted */ @JsonClass(generateAdapter = true) - data class NetworkPruneResponse( - - /* Networks that were deleted */ + // Networks that were deleted @Json(name = "NetworksDeleted") - var networksDeleted: kotlin.collections.MutableList? = null - + var networksDeleted: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkSettings.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkSettings.kt index fe04958e..0bfdc7b8 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkSettings.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkSettings.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -41,79 +41,59 @@ import com.squareup.moshi.JsonClass * @param networks Information about all networks that the container is connected to. */ @JsonClass(generateAdapter = true) - data class NetworkSettings( - - /* Name of the network's bridge (for example, `docker0`). */ + // Name of the network's bridge (for example, `docker0`). @Json(name = "Bridge") var bridge: kotlin.String? = null, - - /* SandboxID uniquely represents a container's network stack. */ + // SandboxID uniquely represents a container's network stack. @Json(name = "SandboxID") var sandboxID: kotlin.String? = null, - - /* Indicates if hairpin NAT should be enabled on the virtual interface. */ + // Indicates if hairpin NAT should be enabled on the virtual interface. @Json(name = "HairpinMode") var hairpinMode: kotlin.Boolean? = null, - - /* IPv6 unicast address using the link-local prefix. */ + // IPv6 unicast address using the link-local prefix. @Json(name = "LinkLocalIPv6Address") var linkLocalIPv6Address: kotlin.String? = null, - - /* Prefix length of the IPv6 unicast address. */ + // Prefix length of the IPv6 unicast address. @Json(name = "LinkLocalIPv6PrefixLen") var linkLocalIPv6PrefixLen: kotlin.Int? = null, - - /* PortMap describes the mapping of container ports to host ports, using the container's port-number and protocol as key in the format `/`, for example, `80/udp`. If a container's port is mapped for multiple protocols, separate entries are added to the mapping table. */ + // PortMap describes the mapping of container ports to host ports, using the container's port-number and protocol as key in the format `/`, for example, `80/udp`. If a container's port is mapped for multiple protocols, separate entries are added to the mapping table. @Json(name = "Ports") var ports: kotlin.collections.MutableMap>? = null, - - /* SandboxKey identifies the sandbox */ + // SandboxKey identifies the sandbox @Json(name = "SandboxKey") var sandboxKey: kotlin.String? = null, - - /* */ + // @Json(name = "SecondaryIPAddresses") var secondaryIPAddresses: kotlin.collections.MutableList
? = null, - - /* */ + // @Json(name = "SecondaryIPv6Addresses") var secondaryIPv6Addresses: kotlin.collections.MutableList
? = null, - - /* EndpointID uniquely represents a service endpoint in a Sandbox.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 */ + // EndpointID uniquely represents a service endpoint in a Sandbox.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 @Json(name = "EndpointID") var endpointID: kotlin.String? = null, - - /* Gateway address for the default \"bridge\" network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 */ + // Gateway address for the default \"bridge\" network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 @Json(name = "Gateway") var gateway: kotlin.String? = null, - - /* Global IPv6 address for the default \"bridge\" network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 */ + // Global IPv6 address for the default \"bridge\" network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 @Json(name = "GlobalIPv6Address") var globalIPv6Address: kotlin.String? = null, - - /* Mask length of the global IPv6 address.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 */ + // Mask length of the global IPv6 address.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 @Json(name = "GlobalIPv6PrefixLen") var globalIPv6PrefixLen: kotlin.Int? = null, - - /* IPv4 address for the default \"bridge\" network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 */ + // IPv4 address for the default \"bridge\" network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 @Json(name = "IPAddress") var ipAddress: kotlin.String? = null, - - /* Mask length of the IPv4 address.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 */ + // Mask length of the IPv4 address.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 @Json(name = "IPPrefixLen") var ipPrefixLen: kotlin.Int? = null, - - /* IPv6 gateway address for this network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 */ + // IPv6 gateway address for this network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 @Json(name = "IPv6Gateway") var ipv6Gateway: kotlin.String? = null, - - /* MAC address for the container on the default \"bridge\" network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 */ + // MAC address for the container on the default \"bridge\" network.


> **Deprecated**: This field is only propagated when attached to the > default \"bridge\" network. Use the information from the \"bridge\" > network inside the `Networks` map instead, which contains the same > information. This field was deprecated in Docker 1.9 and is scheduled > to be removed in Docker 17.12.0 @Json(name = "MacAddress") var macAddress: kotlin.String? = null, - - /* Information about all networks that the container is connected to. */ + // Information about all networks that the container is connected to. @Json(name = "Networks") - var networks: kotlin.collections.MutableMap? = null - + var networks: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkingConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkingConfig.kt index 82be17cb..0d210e17 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkingConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NetworkingConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param endpointsConfig A mapping of network name to endpoint configuration for that network. The endpoint configuration can be left empty to connect to that network with no particular endpoint configuration. */ @JsonClass(generateAdapter = true) - data class NetworkingConfig( - - /* A mapping of network name to endpoint configuration for that network. The endpoint configuration can be left empty to connect to that network with no particular endpoint configuration. */ + // A mapping of network name to endpoint configuration for that network. The endpoint configuration can be left empty to connect to that network with no particular endpoint configuration. @Json(name = "EndpointsConfig") - var endpointsConfig: kotlin.collections.MutableMap? = null - + var endpointsConfig: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Node.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Node.kt index 2ede36c9..53f96c24 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Node.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Node.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,33 +31,23 @@ import com.squareup.moshi.JsonClass * @param managerStatus */ @JsonClass(generateAdapter = true) - data class Node( - @Json(name = "ID") var ID: kotlin.String? = null, - @Json(name = "Version") var version: ObjectVersion? = null, - - /* Date and time at which the node was added to the swarm in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the node was added to the swarm in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "CreatedAt") var createdAt: kotlin.String? = null, - - /* Date and time at which the node was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the node was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "UpdatedAt") var updatedAt: kotlin.String? = null, - @Json(name = "Spec") var spec: NodeSpec? = null, - @Json(name = "Description") var description: NodeDescription? = null, - @Json(name = "Status") var status: NodeStatus? = null, - @Json(name = "ManagerStatus") - var managerStatus: ManagerStatus? = null - + var managerStatus: ManagerStatus? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeDescription.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeDescription.kt index c7934983..4b776f52 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeDescription.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeDescription.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,22 +28,15 @@ import com.squareup.moshi.JsonClass * @param tlSInfo */ @JsonClass(generateAdapter = true) - data class NodeDescription( - @Json(name = "Hostname") var hostname: kotlin.String? = null, - @Json(name = "Platform") var platform: Platform? = null, - @Json(name = "Resources") var resources: ResourceObject? = null, - @Json(name = "Engine") var engine: EngineDescription? = null, - @Json(name = "TLSInfo") - var tlSInfo: TLSInfo? = null - + var tlSInfo: TLSInfo? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeSpec.kt index 248c489b..fd067316 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,27 +27,20 @@ import com.squareup.moshi.JsonClass * @param availability Availability of the node. */ @JsonClass(generateAdapter = true) - data class NodeSpec( - - /* Name for the node. */ + // Name for the node. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* Role of the node. */ + // Role of the node. @Json(name = "Role") var role: NodeSpec.Role? = null, - - /* Availability of the node. */ + // Availability of the node. @Json(name = "Availability") - var availability: NodeSpec.Availability? = null - + var availability: NodeSpec.Availability? = null, ) { - /** * Role of the node. * @@ -59,7 +52,7 @@ data class NodeSpec( Worker("worker"), @Json(name = "manager") - Manager("manager"); + Manager("manager"), } /** @@ -76,6 +69,6 @@ data class NodeSpec( Pause("pause"), @Json(name = "drain") - Drain("drain"); + Drain("drain"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeState.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeState.kt index f99251f9..f3d578e6 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeState.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeState.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = false) enum class NodeState(val value: kotlin.String) { - @Json(name = "unknown") Unknown("unknown"), @@ -37,7 +36,8 @@ enum class NodeState(val value: kotlin.String) { Ready("ready"), @Json(name = "disconnected") - Disconnected("disconnected"); + Disconnected("disconnected"), + ; /** * Override [toString()] to avoid using the enum variable name as the value, and instead use @@ -57,11 +57,12 @@ enum class NodeState(val value: kotlin.String) { /** * Returns a valid [NodeState] for [data], null otherwise. */ - fun decode(data: kotlin.Any?): NodeState? = data?.let { - val normalizedData = "$it".lowercase() - values().firstOrNull { value -> - it == value || normalizedData == "$value".lowercase() + fun decode(data: kotlin.Any?): NodeState? = + data?.let { + val normalizedData = "$it".lowercase() + values().firstOrNull { value -> + it == value || normalizedData == "$value".lowercase() + } } - } } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeStatus.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeStatus.kt index 4da22047..ec24fa70 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeStatus.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/NodeStatus.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,17 +26,12 @@ import com.squareup.moshi.JsonClass * @param addr IP address of the node. */ @JsonClass(generateAdapter = true) - data class NodeStatus( - @Json(name = "State") var state: NodeState? = null, - @Json(name = "Message") var message: kotlin.String? = null, - - /* IP address of the node. */ + // IP address of the node. @Json(name = "Addr") - var addr: kotlin.String? = null - + var addr: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/OCIDescriptor.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/OCIDescriptor.kt index 551350e3..cf632bd3 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/OCIDescriptor.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/OCIDescriptor.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @param propertySize The size in bytes of the blob. */ @JsonClass(generateAdapter = true) - data class OCIDescriptor( - - /* The media type of the object this schema refers to. */ + // The media type of the object this schema refers to. @Json(name = "mediaType") var mediaType: kotlin.String? = null, - - /* The digest of the targeted content. */ + // The digest of the targeted content. @Json(name = "digest") var digest: kotlin.String? = null, - - /* The size in bytes of the blob. */ + // The size in bytes of the blob. @Json(name = "size") - var propertySize: kotlin.Long? = null - + var propertySize: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/OCIPlatform.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/OCIPlatform.kt index f562f7cf..4cccb7dc 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/OCIPlatform.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/OCIPlatform.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,27 +28,20 @@ import com.squareup.moshi.JsonClass * @param variant Optional field specifying a variant of the CPU, for example `v7` to specify ARMv7 when architecture is `arm`. */ @JsonClass(generateAdapter = true) - data class OCIPlatform( - - /* The CPU architecture, for example `amd64` or `ppc64`. */ + // The CPU architecture, for example `amd64` or `ppc64`. @Json(name = "architecture") var architecture: kotlin.String? = null, - - /* The operating system, for example `linux` or `windows`. */ + // The operating system, for example `linux` or `windows`. @Json(name = "os") var os: kotlin.String? = null, - - /* Optional field specifying the operating system version, for example on Windows `10.0.19041.1165`. */ + // Optional field specifying the operating system version, for example on Windows `10.0.19041.1165`. @Json(name = "os.version") var osVersion: kotlin.String? = null, - - /* Optional field specifying an array of strings, each listing a required OS feature (for example on Windows `win32k`). */ + // Optional field specifying an array of strings, each listing a required OS feature (for example on Windows `win32k`). @Json(name = "os.features") var osFeatures: kotlin.collections.MutableList? = null, - - /* Optional field specifying a variant of the CPU, for example `v7` to specify ARMv7 when architecture is `arm`. */ + // Optional field specifying a variant of the CPU, for example `v7` to specify ARMv7 when architecture is `arm`. @Json(name = "variant") - var variant: kotlin.String? = null - + var variant: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ObjectVersion.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ObjectVersion.kt index a3e0dd1e..bb53783f 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ObjectVersion.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ObjectVersion.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param index */ @JsonClass(generateAdapter = true) - data class ObjectVersion( - @Json(name = "Index") - var index: kotlin.Int? = null - + var index: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PeerNode.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PeerNode.kt index 148dcd66..58ce4588 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PeerNode.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PeerNode.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param addr IP address and ports at which this node can be reached. */ @JsonClass(generateAdapter = true) - data class PeerNode( - - /* Unique identifier of for this node in the swarm. */ + // Unique identifier of for this node in the swarm. @Json(name = "NodeID") var nodeID: kotlin.String? = null, - - /* IP address and ports at which this node can be reached. */ + // IP address and ports at which this node can be reached. @Json(name = "Addr") - var addr: kotlin.String? = null - + var addr: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Platform.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Platform.kt index 9b0f37d0..b52d4bab 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Platform.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Platform.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param OS OS represents the Operating System (for example, `linux` or `windows`). */ @JsonClass(generateAdapter = true) - data class Platform( - - /* Architecture represents the hardware architecture (for example, `x86_64`). */ + // Architecture represents the hardware architecture (for example, `x86_64`). @Json(name = "Architecture") var architecture: kotlin.String? = null, - - /* OS represents the Operating System (for example, `linux` or `windows`). */ + // OS represents the Operating System (for example, `linux` or `windows`). @Json(name = "OS") - var OS: kotlin.String? = null - + var OS: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Plugin.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Plugin.kt index bb3709c3..575ddd27 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Plugin.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Plugin.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -29,27 +29,19 @@ import com.squareup.moshi.JsonClass * @param pluginReference plugin remote reference used to push/pull the plugin */ @JsonClass(generateAdapter = true) - data class Plugin( - @Json(name = "Name") var name: kotlin.String, - - /* True if the plugin is running. False if the plugin is not running, only installed. */ + // True if the plugin is running. False if the plugin is not running, only installed. @Json(name = "Enabled") var enabled: kotlin.Boolean, - @Json(name = "Settings") var settings: PluginSettings, - @Json(name = "Config") var config: PluginConfig, - @Json(name = "Id") var id: kotlin.String? = null, - - /* plugin remote reference used to push/pull the plugin */ + // plugin remote reference used to push/pull the plugin @Json(name = "PluginReference") - var pluginReference: kotlin.String? = null - + var pluginReference: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfig.kt index da183916..79f0d5cc 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -39,56 +39,38 @@ import com.squareup.moshi.JsonClass * @param rootfs */ @JsonClass(generateAdapter = true) - data class PluginConfig( - @Json(name = "Description") var description: kotlin.String, - @Json(name = "Documentation") var documentation: kotlin.String, - @Json(name = "Interface") var `interface`: PluginConfigInterface, - @Json(name = "Entrypoint") var entrypoint: kotlin.collections.MutableList, - @Json(name = "WorkDir") var workDir: kotlin.String, - @Json(name = "Network") var network: PluginConfigNetwork, - @Json(name = "Linux") var linux: PluginConfigLinux, - @Json(name = "PropagatedMount") var propagatedMount: kotlin.String, - @Json(name = "IpcHost") var ipcHost: kotlin.Boolean, - @Json(name = "PidHost") var pidHost: kotlin.Boolean, - @Json(name = "Mounts") var mounts: kotlin.collections.MutableList, - @Json(name = "Env") var env: kotlin.collections.MutableList, - @Json(name = "Args") var args: PluginConfigArgs, - - /* Docker Version used to create the plugin */ + // Docker Version used to create the plugin @Json(name = "DockerVersion") var dockerVersion: kotlin.String? = null, - @Json(name = "User") var user: PluginConfigUser? = null, - @Json(name = "rootfs") - var rootfs: PluginConfigRootfs? = null - + var rootfs: PluginConfigRootfs? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigArgs.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigArgs.kt index 53f9c80a..706830ad 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigArgs.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigArgs.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,19 +27,13 @@ import com.squareup.moshi.JsonClass * @param `value` */ @JsonClass(generateAdapter = true) - data class PluginConfigArgs( - @Json(name = "Name") var name: kotlin.String, - @Json(name = "Description") var description: kotlin.String, - @Json(name = "Settable") var settable: kotlin.collections.MutableList, - @Json(name = "Value") - var `value`: kotlin.collections.MutableList - + var `value`: kotlin.collections.MutableList, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigInterface.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigInterface.kt index 6409852a..c676fd55 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigInterface.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigInterface.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,21 +26,15 @@ import com.squareup.moshi.JsonClass * @param protocolScheme Protocol to use for clients connecting to the plugin. */ @JsonClass(generateAdapter = true) - data class PluginConfigInterface( - @Json(name = "Types") var types: kotlin.collections.MutableList, - @Json(name = "Socket") var socket: kotlin.String, - - /* Protocol to use for clients connecting to the plugin. */ + // Protocol to use for clients connecting to the plugin. @Json(name = "ProtocolScheme") - var protocolScheme: PluginConfigInterface.ProtocolScheme? = null - + var protocolScheme: PluginConfigInterface.ProtocolScheme? = null, ) { - /** * Protocol to use for clients connecting to the plugin. * @@ -52,6 +46,6 @@ data class PluginConfigInterface( EMPTY(""), @Json(name = "moby.plugins.http/v1") - MobyPeriodPluginsPeriodHttpSlashV1("moby.plugins.http/v1"); + MobyPeriodPluginsPeriodHttpSlashV1("moby.plugins.http/v1"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigLinux.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigLinux.kt index 342f1e1d..9fb7723d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigLinux.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigLinux.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,16 +26,11 @@ import com.squareup.moshi.JsonClass * @param devices */ @JsonClass(generateAdapter = true) - data class PluginConfigLinux( - @Json(name = "Capabilities") var capabilities: kotlin.collections.MutableList, - @Json(name = "AllowAllDevices") var allowAllDevices: kotlin.Boolean, - @Json(name = "Devices") - var devices: kotlin.collections.MutableList - + var devices: kotlin.collections.MutableList, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigNetwork.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigNetwork.kt index 7fa4f9cc..bcb6ee9d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigNetwork.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigNetwork.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param type */ @JsonClass(generateAdapter = true) - data class PluginConfigNetwork( - @Json(name = "Type") - var type: kotlin.String - + var type: kotlin.String, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigRootfs.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigRootfs.kt index 863cbf03..702b9d31 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigRootfs.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigRootfs.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param diffIds */ @JsonClass(generateAdapter = true) - data class PluginConfigRootfs( - @Json(name = "type") var type: kotlin.String? = null, - @Json(name = "diff_ids") - var diffIds: kotlin.collections.MutableList? = null - + var diffIds: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigUser.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigUser.kt index f5e2c470..214dab67 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigUser.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginConfigUser.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param GID */ @JsonClass(generateAdapter = true) - data class PluginConfigUser( - @Json(name = "UID") var UID: kotlin.Int? = null, - @Json(name = "GID") - var GID: kotlin.Int? = null - + var GID: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginDevice.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginDevice.kt index af7d965a..81fd97e5 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginDevice.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginDevice.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,19 +27,13 @@ import com.squareup.moshi.JsonClass * @param path */ @JsonClass(generateAdapter = true) - data class PluginDevice( - @Json(name = "Name") var name: kotlin.String, - @Json(name = "Description") var description: kotlin.String, - @Json(name = "Settable") var settable: kotlin.collections.MutableList, - @Json(name = "Path") - var path: kotlin.String - + var path: kotlin.String, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginEnv.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginEnv.kt index d1b1601c..d7eb7339 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginEnv.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginEnv.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,19 +27,13 @@ import com.squareup.moshi.JsonClass * @param `value` */ @JsonClass(generateAdapter = true) - data class PluginEnv( - @Json(name = "Name") var name: kotlin.String, - @Json(name = "Description") var description: kotlin.String, - @Json(name = "Settable") var settable: kotlin.collections.MutableList, - @Json(name = "Value") - var `value`: kotlin.String - + var `value`: kotlin.String, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginInterfaceType.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginInterfaceType.kt index 80a89553..e00314b2 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginInterfaceType.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginInterfaceType.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,16 +26,11 @@ import com.squareup.moshi.JsonClass * @param version */ @JsonClass(generateAdapter = true) - data class PluginInterfaceType( - @Json(name = "Prefix") var prefix: kotlin.String, - @Json(name = "Capability") var capability: kotlin.String, - @Json(name = "Version") - var version: kotlin.String - + var version: kotlin.String, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginMount.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginMount.kt index 73c3cfdd..e48cde1d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginMount.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginMount.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -30,28 +30,19 @@ import com.squareup.moshi.JsonClass * @param options */ @JsonClass(generateAdapter = true) - data class PluginMount( - @Json(name = "Name") var name: kotlin.String, - @Json(name = "Description") var description: kotlin.String, - @Json(name = "Settable") var settable: kotlin.collections.MutableList, - @Json(name = "Source") var source: kotlin.String, - @Json(name = "Destination") var destination: kotlin.String, - @Json(name = "Type") var type: kotlin.String, - @Json(name = "Options") - var options: kotlin.collections.MutableList - + var options: kotlin.collections.MutableList, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginPrivilege.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginPrivilege.kt index fb8322ed..79ee4629 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginPrivilege.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginPrivilege.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,16 +26,11 @@ import com.squareup.moshi.JsonClass * @param `value` */ @JsonClass(generateAdapter = true) - data class PluginPrivilege( - @Json(name = "Name") var name: kotlin.String? = null, - @Json(name = "Description") var description: kotlin.String? = null, - @Json(name = "Value") - var `value`: kotlin.collections.MutableList? = null - + var `value`: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginSettings.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginSettings.kt index fb33e02f..a1ceff86 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginSettings.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginSettings.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,19 +27,13 @@ import com.squareup.moshi.JsonClass * @param devices */ @JsonClass(generateAdapter = true) - data class PluginSettings( - @Json(name = "Mounts") var mounts: kotlin.collections.MutableList, - @Json(name = "Env") var env: kotlin.collections.MutableList, - @Json(name = "Args") var args: kotlin.collections.MutableList, - @Json(name = "Devices") - var devices: kotlin.collections.MutableList - + var devices: kotlin.collections.MutableList, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginsInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginsInfo.kt index 9cae88ea..fc28f877 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginsInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PluginsInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,23 +27,17 @@ import com.squareup.moshi.JsonClass * @param log Names of available logging-drivers, and logging-driver plugins. */ @JsonClass(generateAdapter = true) - data class PluginsInfo( - - /* Names of available volume-drivers, and network-driver plugins. */ + // Names of available volume-drivers, and network-driver plugins. @Json(name = "Volume") var volume: kotlin.collections.MutableList? = null, - - /* Names of available network-drivers, and network-driver plugins. */ + // Names of available network-drivers, and network-driver plugins. @Json(name = "Network") var network: kotlin.collections.MutableList? = null, - - /* Names of available authorization plugins. */ + // Names of available authorization plugins. @Json(name = "Authorization") var authorization: kotlin.collections.MutableList? = null, - - /* Names of available logging-drivers, and logging-driver plugins. */ + // Names of available logging-drivers, and logging-driver plugins. @Json(name = "Log") - var log: kotlin.collections.MutableList? = null - + var log: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Port.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Port.kt index c49d2996..64e5eb71 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Port.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Port.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,26 +27,19 @@ import com.squareup.moshi.JsonClass * @param publicPort Port exposed on the host */ @JsonClass(generateAdapter = true) - data class Port( - - /* Port on the container */ + // Port on the container @Json(name = "PrivatePort") var privatePort: kotlin.Int, - @Json(name = "Type") var type: Port.Type, - - /* Host IP address that the container's port is mapped to */ + // Host IP address that the container's port is mapped to @Json(name = "IP") var IP: kotlin.String? = null, - - /* Port exposed on the host */ + // Port exposed on the host @Json(name = "PublicPort") - var publicPort: kotlin.Int? = null - + var publicPort: kotlin.Int? = null, ) { - /** * * @@ -61,6 +54,6 @@ data class Port( Udp("udp"), @Json(name = "sctp") - Sctp("sctp"); + Sctp("sctp"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PortBinding.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PortBinding.kt index 5a7b7646..52f217a3 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PortBinding.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PortBinding.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param hostPort Host port number that the container's port is mapped to. */ @JsonClass(generateAdapter = true) - data class PortBinding( - - /* Host IP address that the container's port is mapped to. */ + // Host IP address that the container's port is mapped to. @Json(name = "HostIp") var hostIp: kotlin.String? = null, - - /* Host port number that the container's port is mapped to. */ + // Host port number that the container's port is mapped to. @Json(name = "HostPort") - var hostPort: kotlin.String? = null - + var hostPort: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ProcessConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ProcessConfig.kt index 9ab20999..9ed2b6a5 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ProcessConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ProcessConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,22 +28,15 @@ import com.squareup.moshi.JsonClass * @param arguments */ @JsonClass(generateAdapter = true) - data class ProcessConfig( - @Json(name = "privileged") var privileged: kotlin.Boolean? = null, - @Json(name = "user") var user: kotlin.String? = null, - @Json(name = "tty") var tty: kotlin.Boolean? = null, - @Json(name = "entrypoint") var entrypoint: kotlin.String? = null, - @Json(name = "arguments") - var arguments: kotlin.collections.MutableList? = null - + var arguments: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ProgressDetail.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ProgressDetail.kt index 6a78ea70..86795046 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ProgressDetail.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ProgressDetail.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param total */ @JsonClass(generateAdapter = true) - data class ProgressDetail( - @Json(name = "current") var current: kotlin.Int? = null, - @Json(name = "total") - var total: kotlin.Int? = null - + var total: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PushImageInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PushImageInfo.kt index 83dde107..798fe956 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PushImageInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/PushImageInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,19 +27,13 @@ import com.squareup.moshi.JsonClass * @param progressDetail */ @JsonClass(generateAdapter = true) - data class PushImageInfo( - @Json(name = "error") var error: kotlin.String? = null, - @Json(name = "status") var status: kotlin.String? = null, - @Json(name = "progress") var progress: kotlin.String? = null, - @Json(name = "progressDetail") - var progressDetail: ProgressDetail? = null - + var progressDetail: ProgressDetail? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Reachability.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Reachability.kt index 0708260b..d0a61bd8 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Reachability.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Reachability.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = false) enum class Reachability(val value: kotlin.String) { - @Json(name = "unknown") Unknown("unknown"), @@ -34,7 +33,8 @@ enum class Reachability(val value: kotlin.String) { Unreachable("unreachable"), @Json(name = "reachable") - Reachable("reachable"); + Reachable("reachable"), + ; /** * Override [toString()] to avoid using the enum variable name as the value, and instead use @@ -54,11 +54,12 @@ enum class Reachability(val value: kotlin.String) { /** * Returns a valid [Reachability] for [data], null otherwise. */ - fun decode(data: kotlin.Any?): Reachability? = data?.let { - val normalizedData = "$it".lowercase() - values().firstOrNull { value -> - it == value || normalizedData == "$value".lowercase() + fun decode(data: kotlin.Any?): Reachability? = + data?.let { + val normalizedData = "$it".lowercase() + values().firstOrNull { value -> + it == value || normalizedData == "$value".lowercase() + } } - } } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/RegistryServiceConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/RegistryServiceConfig.kt index acfcf0f6..8f1549f8 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/RegistryServiceConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/RegistryServiceConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,26 +28,19 @@ import com.squareup.moshi.JsonClass * @param mirrors List of registry URLs that act as a mirror for the official (`docker.io`) registry. */ @JsonClass(generateAdapter = true) - data class RegistryServiceConfig( - - /* List of IP ranges to which nondistributable artifacts can be pushed, using the CIDR syntax [RFC 4632](https://tools.ietf.org/html/4632). Some images (for example, Windows base images) contain artifacts whose distribution is restricted by license. When these images are pushed to a registry, restricted artifacts are not included. This configuration override this behavior, and enables the daemon to push nondistributable artifacts to all registries whose resolved IP address is within the subnet described by the CIDR syntax. This option is useful when pushing images containing nondistributable artifacts to a registry on an air-gapped network so hosts on that network can pull the images without connecting to another server. > **Warning**: Nondistributable artifacts typically have restrictions > on how and where they can be distributed and shared. Only use this > feature to push artifacts to private registries and ensure that you > are in compliance with any terms that cover redistributing > nondistributable artifacts. */ + // List of IP ranges to which nondistributable artifacts can be pushed, using the CIDR syntax [RFC 4632](https://tools.ietf.org/html/4632). Some images (for example, Windows base images) contain artifacts whose distribution is restricted by license. When these images are pushed to a registry, restricted artifacts are not included. This configuration override this behavior, and enables the daemon to push nondistributable artifacts to all registries whose resolved IP address is within the subnet described by the CIDR syntax. This option is useful when pushing images containing nondistributable artifacts to a registry on an air-gapped network so hosts on that network can pull the images without connecting to another server. > **Warning**: Nondistributable artifacts typically have restrictions > on how and where they can be distributed and shared. Only use this > feature to push artifacts to private registries and ensure that you > are in compliance with any terms that cover redistributing > nondistributable artifacts. @Json(name = "AllowNondistributableArtifactsCIDRs") var allowNondistributableArtifactsCIDRs: kotlin.collections.MutableList? = null, - - /* List of registry hostnames to which nondistributable artifacts can be pushed, using the format `[:]` or `[:]`. Some images (for example, Windows base images) contain artifacts whose distribution is restricted by license. When these images are pushed to a registry, restricted artifacts are not included. This configuration override this behavior for the specified registries. This option is useful when pushing images containing nondistributable artifacts to a registry on an air-gapped network so hosts on that network can pull the images without connecting to another server. > **Warning**: Nondistributable artifacts typically have restrictions > on how and where they can be distributed and shared. Only use this > feature to push artifacts to private registries and ensure that you > are in compliance with any terms that cover redistributing > nondistributable artifacts. */ + // List of registry hostnames to which nondistributable artifacts can be pushed, using the format `[:]` or `[:]`. Some images (for example, Windows base images) contain artifacts whose distribution is restricted by license. When these images are pushed to a registry, restricted artifacts are not included. This configuration override this behavior for the specified registries. This option is useful when pushing images containing nondistributable artifacts to a registry on an air-gapped network so hosts on that network can pull the images without connecting to another server. > **Warning**: Nondistributable artifacts typically have restrictions > on how and where they can be distributed and shared. Only use this > feature to push artifacts to private registries and ensure that you > are in compliance with any terms that cover redistributing > nondistributable artifacts. @Json(name = "AllowNondistributableArtifactsHostnames") var allowNondistributableArtifactsHostnames: kotlin.collections.MutableList? = null, - - /* List of IP ranges of insecure registries, using the CIDR syntax ([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs) communication. By default, local registries (`127.0.0.0/8`) are configured as insecure. All other registries are secure. Communicating with an insecure registry is not possible if the daemon assumes that registry is secure. This configuration override this behavior, insecure communication with registries whose resolved IP address is within the subnet described by the CIDR syntax. Registries can also be marked insecure by hostname. Those registries are listed under `IndexConfigs` and have their `Secure` field set to `false`. > **Warning**: Using this option can be useful when running a local > registry, but introduces security vulnerabilities. This option > should therefore ONLY be used for testing purposes. For increased > security, users should add their CA to their system's list of trusted > CAs instead of enabling this option. */ + // List of IP ranges of insecure registries, using the CIDR syntax ([RFC 4632](https://tools.ietf.org/html/4632)). Insecure registries accept un-encrypted (HTTP) and/or untrusted (HTTPS with certificates from unknown CAs) communication. By default, local registries (`127.0.0.0/8`) are configured as insecure. All other registries are secure. Communicating with an insecure registry is not possible if the daemon assumes that registry is secure. This configuration override this behavior, insecure communication with registries whose resolved IP address is within the subnet described by the CIDR syntax. Registries can also be marked insecure by hostname. Those registries are listed under `IndexConfigs` and have their `Secure` field set to `false`. > **Warning**: Using this option can be useful when running a local > registry, but introduces security vulnerabilities. This option > should therefore ONLY be used for testing purposes. For increased > security, users should add their CA to their system's list of trusted > CAs instead of enabling this option. @Json(name = "InsecureRegistryCIDRs") var insecureRegistryCIDRs: kotlin.collections.MutableList? = null, - @Json(name = "IndexConfigs") var indexConfigs: kotlin.collections.MutableMap? = null, - - /* List of registry URLs that act as a mirror for the official (`docker.io`) registry. */ + // List of registry URLs that act as a mirror for the official (`docker.io`) registry. @Json(name = "Mirrors") - var mirrors: kotlin.collections.MutableList? = null - + var mirrors: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourceObject.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourceObject.kt index db9ab79b..78b6426d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourceObject.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourceObject.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,17 +26,12 @@ import com.squareup.moshi.JsonClass * @param genericResources User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`). */ @JsonClass(generateAdapter = true) - data class ResourceObject( - @Json(name = "NanoCPUs") var nanoCPUs: kotlin.Long? = null, - @Json(name = "MemoryBytes") var memoryBytes: kotlin.Long? = null, - - /* User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`). */ + // User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`). @Json(name = "GenericResources") - var genericResources: kotlin.collections.MutableList? = null - + var genericResources: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Resources.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Resources.kt index c32bc881..e86b9aae 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Resources.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Resources.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,7 +25,7 @@ import com.squareup.moshi.JsonClass * @param memory Memory limit in bytes. * @param cgroupParent Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. * @param blkioWeight Block IO weight (relative weight). - * @param blkioWeightDevice Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` + * @param blkioWeightDevice Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` * @param blkioDeviceReadBps Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` * @param blkioDeviceWriteBps Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` * @param blkioDeviceReadIOps Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @@ -54,131 +54,98 @@ import com.squareup.moshi.JsonClass * @param ioMaximumBandwidth Maximum IO in bytes per second for the container system drive (Windows only). */ @JsonClass(generateAdapter = true) - data class Resources( - - /* An integer value representing this container's relative CPU weight versus other containers. */ + // An integer value representing this container's relative CPU weight versus other containers. @Json(name = "CpuShares") var cpuShares: kotlin.Int? = null, - - /* Memory limit in bytes. */ + // Memory limit in bytes. @Json(name = "Memory") var memory: kotlin.Long? = 0L, - - /* Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. */ + // Path to `cgroups` under which the container's `cgroup` is created. If the path is not absolute, the path is considered to be relative to the `cgroups` path of the init process. Cgroups are created if they do not already exist. @Json(name = "CgroupParent") var cgroupParent: kotlin.String? = null, - - /* Block IO weight (relative weight). */ + // Block IO weight (relative weight). @Json(name = "BlkioWeight") var blkioWeight: kotlin.Int? = null, - - /* Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` */ + // Block IO weight (relative device weight) in the form: ``` [{\"Path\": \"device_path\", \"Weight\": weight}] ``` @Json(name = "BlkioWeightDevice") var blkioWeightDevice: kotlin.collections.MutableList? = null, - - /* Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit read rate (bytes per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceReadBps") var blkioDeviceReadBps: kotlin.collections.MutableList? = null, - - /* Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit write rate (bytes per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceWriteBps") var blkioDeviceWriteBps: kotlin.collections.MutableList? = null, - - /* Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit read rate (IO per second) from a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceReadIOps") var blkioDeviceReadIOps: kotlin.collections.MutableList? = null, - - /* Limit write rate (IO per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` */ + // Limit write rate (IO per second) to a device, in the form: ``` [{\"Path\": \"device_path\", \"Rate\": rate}] ``` @Json(name = "BlkioDeviceWriteIOps") var blkioDeviceWriteIOps: kotlin.collections.MutableList? = null, - - /* The length of a CPU period in microseconds. */ + // The length of a CPU period in microseconds. @Json(name = "CpuPeriod") var cpuPeriod: kotlin.Long? = null, - - /* Microseconds of CPU time that the container can get in a CPU period. */ + // Microseconds of CPU time that the container can get in a CPU period. @Json(name = "CpuQuota") var cpuQuota: kotlin.Long? = null, - - /* The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ + // The length of a CPU real-time period in microseconds. Set to 0 to allocate no time allocated to real-time tasks. @Json(name = "CpuRealtimePeriod") var cpuRealtimePeriod: kotlin.Long? = null, - - /* The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. */ + // The length of a CPU real-time runtime in microseconds. Set to 0 to allocate no time allocated to real-time tasks. @Json(name = "CpuRealtimeRuntime") var cpuRealtimeRuntime: kotlin.Long? = null, - - /* CPUs in which to allow execution (e.g., `0-3`, `0,1`). */ + // CPUs in which to allow execution (e.g., `0-3`, `0,1`). @Json(name = "CpusetCpus") var cpusetCpus: kotlin.String? = null, - - /* Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. */ + // Memory nodes (MEMs) in which to allow execution (0-3, 0,1). Only effective on NUMA systems. @Json(name = "CpusetMems") var cpusetMems: kotlin.String? = null, - - /* A list of devices to add to the container. */ + // A list of devices to add to the container. @Json(name = "Devices") var devices: kotlin.collections.MutableList? = null, - - /* a list of cgroup rules to apply to the container */ + // a list of cgroup rules to apply to the container @Json(name = "DeviceCgroupRules") var deviceCgroupRules: kotlin.collections.MutableList? = null, - - /* A list of requests for devices to be sent to device drivers. */ + // A list of requests for devices to be sent to device drivers. @Json(name = "DeviceRequests") var deviceRequests: kotlin.collections.MutableList? = null, - - /* Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI runtime in use, this option may be ignored. It is no longer supported by the default (runc) runtime. This field is omitted when empty. */ + // Hard limit for kernel TCP buffer memory (in bytes). Depending on the OCI runtime in use, this option may be ignored. It is no longer supported by the default (runc) runtime. This field is omitted when empty. @Json(name = "KernelMemoryTCP") var kernelMemoryTCP: kotlin.Long? = null, - - /* Memory soft limit in bytes. */ + // Memory soft limit in bytes. @Json(name = "MemoryReservation") var memoryReservation: kotlin.Long? = null, - - /* Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. */ + // Total memory limit (memory + swap). Set as `-1` to enable unlimited swap. @Json(name = "MemorySwap") var memorySwap: kotlin.Long? = null, - - /* Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. */ + // Tune a container's memory swappiness behavior. Accepts an integer between 0 and 100. @Json(name = "MemorySwappiness") var memorySwappiness: kotlin.Long? = null, - - /* CPU quota in units of 10-9 CPUs. */ + // CPU quota in units of 10-9 CPUs. @Json(name = "NanoCpus") var nanoCpus: kotlin.Long? = null, - - /* Disable OOM Killer for the container. */ + // Disable OOM Killer for the container. @Json(name = "OomKillDisable") var oomKillDisable: kotlin.Boolean? = null, - - /* Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. */ + // Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. @Json(name = "Init") var `init`: kotlin.Boolean? = null, - - /* Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null` to not change. */ + // Tune a container's PIDs limit. Set `0` or `-1` for unlimited, or `null` to not change. @Json(name = "PidsLimit") var pidsLimit: kotlin.Long? = null, - - /* A list of resource limits to set in the container. For example: ``` {\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048} ``` */ + // A list of resource limits to set in the container. For example: ``` {\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048} ``` @Json(name = "Ulimits") var ulimits: kotlin.collections.MutableList? = null, - - /* The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ + // The number of usable CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. @Json(name = "CpuCount") var cpuCount: kotlin.Long? = null, - - /* The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. */ + // The usable percentage of the available CPUs (Windows only). On Windows Server containers, the processor resource controls are mutually exclusive. The order of precedence is `CPUCount` first, then `CPUShares`, and `CPUPercent` last. @Json(name = "CpuPercent") var cpuPercent: kotlin.Long? = null, - - /* Maximum IOps for the container system drive (Windows only) */ + // Maximum IOps for the container system drive (Windows only) @Json(name = "IOMaximumIOps") var ioMaximumIOps: kotlin.Long? = null, - - /* Maximum IO in bytes per second for the container system drive (Windows only). */ + // Maximum IO in bytes per second for the container system drive (Windows only). @Json(name = "IOMaximumBandwidth") - var ioMaximumBandwidth: kotlin.Long? = null - + var ioMaximumBandwidth: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourcesBlkioWeightDeviceInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourcesBlkioWeightDeviceInner.kt index e60c1ddf..007f3f33 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourcesBlkioWeightDeviceInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourcesBlkioWeightDeviceInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param weight */ @JsonClass(generateAdapter = true) - data class ResourcesBlkioWeightDeviceInner( - @Json(name = "Path") var path: kotlin.String? = null, - @Json(name = "Weight") - var weight: kotlin.Int? = null - + var weight: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourcesUlimitsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourcesUlimitsInner.kt index dbe0e7ef..b2c427a1 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourcesUlimitsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ResourcesUlimitsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @param hard Hard limit */ @JsonClass(generateAdapter = true) - data class ResourcesUlimitsInner( - - /* Name of ulimit */ + // Name of ulimit @Json(name = "Name") var name: kotlin.String? = null, - - /* Soft limit */ + // Soft limit @Json(name = "Soft") var soft: kotlin.Int? = null, - - /* Hard limit */ + // Hard limit @Json(name = "Hard") - var hard: kotlin.Int? = null - + var hard: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/RestartPolicy.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/RestartPolicy.kt index 95b8fcfa..e85968f4 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/RestartPolicy.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/RestartPolicy.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,19 +25,14 @@ import com.squareup.moshi.JsonClass * @param maximumRetryCount If `on-failure` is used, the number of times to retry before giving up. */ @JsonClass(generateAdapter = true) - data class RestartPolicy( - - /* - Empty string means not to restart - `no` Do not automatically restart - `always` Always restart - `unless-stopped` Restart always except when the user has manually stopped the container - `on-failure` Restart only when the container exit code is non-zero */ + // - Empty string means not to restart - `no` Do not automatically restart - `always` Always restart - `unless-stopped` Restart always except when the user has manually stopped the container - `on-failure` Restart only when the container exit code is non-zero @Json(name = "Name") var name: RestartPolicy.Name? = null, - - /* If `on-failure` is used, the number of times to retry before giving up. */ + // If `on-failure` is used, the number of times to retry before giving up. @Json(name = "MaximumRetryCount") - var maximumRetryCount: kotlin.Int? = null - + var maximumRetryCount: kotlin.Int? = null, ) { - /** * - Empty string means not to restart - `no` Do not automatically restart - `always` Always restart - `unless-stopped` Restart always except when the user has manually stopped the container - `on-failure` Restart only when the container exit code is non-zero * @@ -58,6 +53,6 @@ data class RestartPolicy( UnlessMinusStopped("unless-stopped"), @Json(name = "on-failure") - OnMinusFailure("on-failure"); + OnMinusFailure("on-failure"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Runtime.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Runtime.kt index 24a57a1c..63c5a523 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Runtime.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Runtime.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param runtimeArgs List of command-line arguments to pass to the runtime when invoked. */ @JsonClass(generateAdapter = true) - data class Runtime( - - /* Name and, optional, path, of the OCI executable binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. */ + // Name and, optional, path, of the OCI executable binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. @Json(name = "path") var path: kotlin.String? = null, - - /* List of command-line arguments to pass to the runtime when invoked. */ + // List of command-line arguments to pass to the runtime when invoked. @Json(name = "runtimeArgs") - var runtimeArgs: kotlin.collections.MutableList? = null - + var runtimeArgs: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Secret.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Secret.kt index 263880b5..2a4c8cf9 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Secret.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Secret.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,22 +28,15 @@ import com.squareup.moshi.JsonClass * @param spec */ @JsonClass(generateAdapter = true) - data class Secret( - @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, - @Json(name = "Spec") - var spec: SecretSpec? = null - + var spec: SecretSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SecretCreateRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SecretCreateRequest.kt index 444d132e..016c5062 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SecretCreateRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SecretCreateRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,25 +28,18 @@ import com.squareup.moshi.JsonClass * @param templating */ @JsonClass(generateAdapter = true) - data class SecretCreateRequest( - - /* User-defined name of the secret. */ + // User-defined name of the secret. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) data to store as secret. This field is only used to _create_ a secret, and is not returned by other endpoints. */ + // Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) data to store as secret. This field is only used to _create_ a secret, and is not returned by other endpoints. @Json(name = "Data") var `data`: kotlin.String? = null, - @Json(name = "Driver") var driver: Driver? = null, - @Json(name = "Templating") - var templating: Driver? = null - + var templating: Driver? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SecretSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SecretSpec.kt index 4fd90068..247be80a 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SecretSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SecretSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,25 +28,18 @@ import com.squareup.moshi.JsonClass * @param templating */ @JsonClass(generateAdapter = true) - data class SecretSpec( - - /* User-defined name of the secret. */ + // User-defined name of the secret. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) data to store as secret. This field is only used to _create_ a secret, and is not returned by other endpoints. */ + // Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) data to store as secret. This field is only used to _create_ a secret, and is not returned by other endpoints. @Json(name = "Data") var `data`: kotlin.String? = null, - @Json(name = "Driver") var driver: Driver? = null, - @Json(name = "Templating") - var templating: Driver? = null - + var templating: Driver? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Service.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Service.kt index 8771e5c7..0e09952c 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Service.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Service.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -32,34 +32,23 @@ import com.squareup.moshi.JsonClass * @param jobStatus */ @JsonClass(generateAdapter = true) - data class Service( - @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, - @Json(name = "Spec") var spec: ServiceSpec? = null, - @Json(name = "Endpoint") var endpoint: ServiceEndpoint? = null, - @Json(name = "UpdateStatus") var updateStatus: ServiceUpdateStatus? = null, - @Json(name = "ServiceStatus") var serviceStatus: ServiceServiceStatus? = null, - @Json(name = "JobStatus") - var jobStatus: ServiceJobStatus? = null - + var jobStatus: ServiceJobStatus? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceCreateRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceCreateRequest.kt index b83ef4d2..370fa5ca 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceCreateRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceCreateRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,34 +31,24 @@ import com.squareup.moshi.JsonClass * @param endpointSpec */ @JsonClass(generateAdapter = true) - data class ServiceCreateRequest( - - /* Name of the service. */ + // Name of the service. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - @Json(name = "TaskTemplate") var taskTemplate: TaskSpec? = null, - @Json(name = "Mode") var mode: ServiceSpecMode? = null, - @Json(name = "UpdateConfig") var updateConfig: ServiceSpecUpdateConfig? = null, - @Json(name = "RollbackConfig") var rollbackConfig: ServiceSpecRollbackConfig? = null, - - /* Specifies which networks the service should attach to. */ + // Specifies which networks the service should attach to. @Json(name = "Networks") var networks: kotlin.collections.MutableList? = null, - @Json(name = "EndpointSpec") - var endpointSpec: EndpointSpec? = null - + var endpointSpec: EndpointSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceCreateResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceCreateResponse.kt index c96cd1a0..768969e4 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceCreateResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceCreateResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param warning Optional warning message */ @JsonClass(generateAdapter = true) - data class ServiceCreateResponse( - - /* The ID of the created service. */ + // The ID of the created service. @Json(name = "ID") var ID: kotlin.String? = null, - - /* Optional warning message */ + // Optional warning message @Json(name = "Warning") - var warning: kotlin.String? = null - + var warning: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceEndpoint.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceEndpoint.kt index 382e09ac..e092e803 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceEndpoint.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceEndpoint.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,16 +26,11 @@ import com.squareup.moshi.JsonClass * @param virtualIPs */ @JsonClass(generateAdapter = true) - data class ServiceEndpoint( - @Json(name = "Spec") var spec: EndpointSpec? = null, - @Json(name = "Ports") var ports: kotlin.collections.MutableList? = null, - @Json(name = "VirtualIPs") - var virtualIPs: kotlin.collections.MutableList? = null - + var virtualIPs: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceEndpointVirtualIPsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceEndpointVirtualIPsInner.kt index 33b37d03..44dff832 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceEndpointVirtualIPsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceEndpointVirtualIPsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param addr */ @JsonClass(generateAdapter = true) - data class ServiceEndpointVirtualIPsInner( - @Json(name = "NetworkID") var networkID: kotlin.String? = null, - @Json(name = "Addr") - var addr: kotlin.String? = null - + var addr: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceJobStatus.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceJobStatus.kt index 908f7abd..32f0dc3a 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceJobStatus.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceJobStatus.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,14 +25,10 @@ import com.squareup.moshi.JsonClass * @param lastExecution The last time, as observed by the server, that this job was started. */ @JsonClass(generateAdapter = true) - data class ServiceJobStatus( - @Json(name = "JobIteration") var jobIteration: ObjectVersion? = null, - - /* The last time, as observed by the server, that this job was started. */ + // The last time, as observed by the server, that this job was started. @Json(name = "LastExecution") - var lastExecution: kotlin.String? = null - + var lastExecution: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceServiceStatus.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceServiceStatus.kt index 38288473..05dc0d8b 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceServiceStatus.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceServiceStatus.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @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. */ + // 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. */ + // 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. */ + // 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 - + var completedTasks: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpec.kt index 0d84f452..59ed25b2 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,34 +31,24 @@ import com.squareup.moshi.JsonClass * @param endpointSpec */ @JsonClass(generateAdapter = true) - data class ServiceSpec( - - /* Name of the service. */ + // Name of the service. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - @Json(name = "TaskTemplate") var taskTemplate: TaskSpec? = null, - @Json(name = "Mode") var mode: ServiceSpecMode? = null, - @Json(name = "UpdateConfig") var updateConfig: ServiceSpecUpdateConfig? = null, - @Json(name = "RollbackConfig") var rollbackConfig: ServiceSpecRollbackConfig? = null, - - /* Specifies which networks the service should attach to. */ + // Specifies which networks the service should attach to. @Json(name = "Networks") var networks: kotlin.collections.MutableList? = null, - @Json(name = "EndpointSpec") - var endpointSpec: EndpointSpec? = null - + var endpointSpec: EndpointSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecMode.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecMode.kt index f5e1507a..cf729aa0 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecMode.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecMode.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,20 +27,14 @@ import com.squareup.moshi.JsonClass * @param globalJob The mode used for services which run a task to the completed state on each valid node. */ @JsonClass(generateAdapter = true) - data class ServiceSpecMode( - @Json(name = "Replicated") var replicated: ServiceSpecModeReplicated? = null, - @Json(name = "Global") var global: kotlin.Any? = null, - @Json(name = "ReplicatedJob") var replicatedJob: ServiceSpecModeReplicatedJob? = null, - - /* The mode used for services which run a task to the completed state on each valid node. */ + // The mode used for services which run a task to the completed state on each valid node. @Json(name = "GlobalJob") - var globalJob: kotlin.Any? = null - + var globalJob: kotlin.Any? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecModeReplicated.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecModeReplicated.kt index ce163ee9..ea25e561 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecModeReplicated.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecModeReplicated.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param replicas */ @JsonClass(generateAdapter = true) - data class ServiceSpecModeReplicated( - @Json(name = "Replicas") - var replicas: kotlin.Long? = null - + var replicas: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecModeReplicatedJob.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecModeReplicatedJob.kt index 002a3dd0..d4f3427d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecModeReplicatedJob.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecModeReplicatedJob.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param totalCompletions The total number of replicas desired to reach the Completed state. If unset, will default to the value of `MaxConcurrent` */ @JsonClass(generateAdapter = true) - data class ServiceSpecModeReplicatedJob( - - /* The maximum number of replicas to run simultaneously. */ + // The maximum number of replicas to run simultaneously. @Json(name = "MaxConcurrent") var maxConcurrent: kotlin.Long? = 1L, - - /* The total number of replicas desired to reach the Completed state. If unset, will default to the value of `MaxConcurrent` */ + // The total number of replicas desired to reach the Completed state. If unset, will default to the value of `MaxConcurrent` @Json(name = "TotalCompletions") - var totalCompletions: kotlin.Long? = null - + var totalCompletions: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecRollbackConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecRollbackConfig.kt index 74ff804c..87ad569a 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecRollbackConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecRollbackConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -29,35 +29,26 @@ import com.squareup.moshi.JsonClass * @param order The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ @JsonClass(generateAdapter = true) - data class ServiceSpecRollbackConfig( - - /* Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism). */ + // Maximum number of tasks to be rolled back in one iteration (0 means unlimited parallelism). @Json(name = "Parallelism") var parallelism: kotlin.Long? = null, - - /* Amount of time between rollback iterations, in nanoseconds. */ + // Amount of time between rollback iterations, in nanoseconds. @Json(name = "Delay") var delay: kotlin.Long? = null, - - /* Action to take if an rolled back task fails to run, or stops running during the rollback. */ + // Action to take if an rolled back task fails to run, or stops running during the rollback. @Json(name = "FailureAction") var failureAction: ServiceSpecRollbackConfig.FailureAction? = null, - - /* Amount of time to monitor each rolled back task for failures, in nanoseconds. */ + // Amount of time to monitor each rolled back task for failures, in nanoseconds. @Json(name = "Monitor") var monitor: kotlin.Long? = null, - - /* The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1. */ + // The fraction of tasks that may fail during a rollback before the failure action is invoked, specified as a floating point number between 0 and 1. @Json(name = "MaxFailureRatio") var maxFailureRatio: java.math.BigDecimal? = null, - - /* The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ + // The order of operations when rolling back a task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. @Json(name = "Order") - var order: ServiceSpecRollbackConfig.Order? = null - + var order: ServiceSpecRollbackConfig.Order? = null, ) { - /** * Action to take if an rolled back task fails to run, or stops running during the rollback. * @@ -69,7 +60,7 @@ data class ServiceSpecRollbackConfig( Continue("continue"), @Json(name = "pause") - Pause("pause"); + Pause("pause"), } /** @@ -83,6 +74,6 @@ data class ServiceSpecRollbackConfig( StopMinusFirst("stop-first"), @Json(name = "start-first") - StartMinusFirst("start-first"); + StartMinusFirst("start-first"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecUpdateConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecUpdateConfig.kt index 2c1526c0..e2d577ca 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecUpdateConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceSpecUpdateConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -29,35 +29,26 @@ import com.squareup.moshi.JsonClass * @param order The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ @JsonClass(generateAdapter = true) - data class ServiceSpecUpdateConfig( - - /* Maximum number of tasks to be updated in one iteration (0 means unlimited parallelism). */ + // Maximum number of tasks to be updated in one iteration (0 means unlimited parallelism). @Json(name = "Parallelism") var parallelism: kotlin.Long? = null, - - /* Amount of time between updates, in nanoseconds. */ + // Amount of time between updates, in nanoseconds. @Json(name = "Delay") var delay: kotlin.Long? = null, - - /* Action to take if an updated task fails to run, or stops running during the update. */ + // Action to take if an updated task fails to run, or stops running during the update. @Json(name = "FailureAction") var failureAction: ServiceSpecUpdateConfig.FailureAction? = null, - - /* Amount of time to monitor each updated task for failures, in nanoseconds. */ + // Amount of time to monitor each updated task for failures, in nanoseconds. @Json(name = "Monitor") var monitor: kotlin.Long? = null, - - /* The fraction of tasks that may fail during an update before the failure action is invoked, specified as a floating point number between 0 and 1. */ + // The fraction of tasks that may fail during an update before the failure action is invoked, specified as a floating point number between 0 and 1. @Json(name = "MaxFailureRatio") var maxFailureRatio: java.math.BigDecimal? = null, - - /* The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. */ + // The order of operations when rolling out an updated task. Either the old task is shut down before the new task is started, or the new task is started before the old task is shut down. @Json(name = "Order") - var order: ServiceSpecUpdateConfig.Order? = null - + var order: ServiceSpecUpdateConfig.Order? = null, ) { - /** * Action to take if an updated task fails to run, or stops running during the update. * @@ -72,7 +63,7 @@ data class ServiceSpecUpdateConfig( Pause("pause"), @Json(name = "rollback") - Rollback("rollback"); + Rollback("rollback"), } /** @@ -86,6 +77,6 @@ data class ServiceSpecUpdateConfig( StopMinusFirst("stop-first"), @Json(name = "start-first") - StartMinusFirst("start-first"); + StartMinusFirst("start-first"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateRequest.kt index 2dfbb316..a92d1778 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,34 +31,24 @@ import com.squareup.moshi.JsonClass * @param endpointSpec */ @JsonClass(generateAdapter = true) - data class ServiceUpdateRequest( - - /* Name of the service. */ + // Name of the service. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - @Json(name = "TaskTemplate") var taskTemplate: TaskSpec? = null, - @Json(name = "Mode") var mode: ServiceSpecMode? = null, - @Json(name = "UpdateConfig") var updateConfig: ServiceSpecUpdateConfig? = null, - @Json(name = "RollbackConfig") var rollbackConfig: ServiceSpecRollbackConfig? = null, - - /* Specifies which networks the service should attach to. */ + // Specifies which networks the service should attach to. @Json(name = "Networks") var networks: kotlin.collections.MutableList? = null, - @Json(name = "EndpointSpec") - var endpointSpec: EndpointSpec? = null - + var endpointSpec: EndpointSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateResponse.kt index 87a00557..338d2a20 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param warnings Optional warning messages */ @JsonClass(generateAdapter = true) - data class ServiceUpdateResponse( - - /* Optional warning messages */ + // Optional warning messages @Json(name = "Warnings") - var warnings: kotlin.collections.MutableList? = null - + var warnings: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateStatus.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateStatus.kt index bc21458d..feaf2d12 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateStatus.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ServiceUpdateStatus.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,23 +27,16 @@ import com.squareup.moshi.JsonClass * @param message */ @JsonClass(generateAdapter = true) - data class ServiceUpdateStatus( - @Json(name = "State") var state: ServiceUpdateStatus.State? = null, - @Json(name = "StartedAt") var startedAt: kotlin.String? = null, - @Json(name = "CompletedAt") var completedAt: kotlin.String? = null, - @Json(name = "Message") - var message: kotlin.String? = null - + var message: kotlin.String? = null, ) { - /** * * @@ -58,6 +51,6 @@ data class ServiceUpdateStatus( Paused("paused"), @Json(name = "completed") - Completed("completed"); + Completed("completed"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Swarm.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Swarm.kt index eaa758b2..0340ecad 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Swarm.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Swarm.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -34,47 +34,34 @@ import com.squareup.moshi.JsonClass * @param joinTokens */ @JsonClass(generateAdapter = true) - data class Swarm( - - /* The ID of the swarm. */ + // The ID of the swarm. @Json(name = "ID") var ID: kotlin.String? = null, - @Json(name = "Version") var version: ObjectVersion? = null, - - /* Date and time at which the swarm was initialised in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the swarm was initialised in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "CreatedAt") var createdAt: kotlin.String? = null, - - /* Date and time at which the swarm was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Date and time at which the swarm was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "UpdatedAt") var updatedAt: kotlin.String? = null, - @Json(name = "Spec") var spec: SwarmSpec? = null, - @Json(name = "TLSInfo") var tlSInfo: TLSInfo? = null, - - /* Whether there is currently a root CA rotation in progress for the swarm */ + // Whether there is currently a root CA rotation in progress for the swarm @Json(name = "RootRotationInProgress") var rootRotationInProgress: kotlin.Boolean? = null, - - /* DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. If no port is set or is set to 0, the default port (4789) is used. */ + // DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. If no port is set or is set to 0, the default port (4789) is used. @Json(name = "DataPathPort") var dataPathPort: kotlin.Int? = null, - - /* Default Address Pool specifies default subnet pools for global scope networks. */ + // Default Address Pool specifies default subnet pools for global scope networks. @Json(name = "DefaultAddrPool") var defaultAddrPool: kotlin.collections.MutableList? = null, - - /* SubnetSize specifies the subnet size of the networks created from the default subnet pool. */ + // SubnetSize specifies the subnet size of the networks created from the default subnet pool. @Json(name = "SubnetSize") var subnetSize: kotlin.Int? = null, - @Json(name = "JoinTokens") - var joinTokens: JoinTokens? = null - + var joinTokens: JoinTokens? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmInfo.kt index 392bc384..4404fe93 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -32,39 +32,28 @@ import com.squareup.moshi.JsonClass * @param cluster */ @JsonClass(generateAdapter = true) - data class SwarmInfo( - - /* Unique identifier of for this node in the swarm. */ + // Unique identifier of for this node in the swarm. @Json(name = "NodeID") var nodeID: kotlin.String? = "", - - /* IP address at which this node can be reached by other nodes in the swarm. */ + // IP address at which this node can be reached by other nodes in the swarm. @Json(name = "NodeAddr") var nodeAddr: kotlin.String? = "", - @Json(name = "LocalNodeState") var localNodeState: LocalNodeState? = LocalNodeState.EMPTY, - @Json(name = "ControlAvailable") var controlAvailable: kotlin.Boolean? = false, - @Json(name = "Error") var error: kotlin.String? = "", - - /* List of ID's and addresses of other managers in the swarm. */ + // List of ID's and addresses of other managers in the swarm. @Json(name = "RemoteManagers") var remoteManagers: kotlin.collections.MutableList? = null, - - /* Total number of nodes in the swarm. */ + // Total number of nodes in the swarm. @Json(name = "Nodes") var nodes: kotlin.Int? = null, - - /* Total number of managers in the swarm. */ + // Total number of managers in the swarm. @Json(name = "Managers") var managers: kotlin.Int? = null, - @Json(name = "Cluster") - var cluster: ClusterInfo? = null - + var cluster: ClusterInfo? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmInitRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmInitRequest.kt index df02c588..d3fc924d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmInitRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmInitRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,38 +31,28 @@ import com.squareup.moshi.JsonClass * @param spec */ @JsonClass(generateAdapter = true) - data class SwarmInitRequest( - - /* Listen address used for inter-manager communication, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP). This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the default swarm listening port is used. */ + // Listen address used for inter-manager communication, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP). This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the default swarm listening port is used. @Json(name = "ListenAddr") var listenAddr: kotlin.String? = null, - - /* Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible. */ + // Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible. @Json(name = "AdvertiseAddr") var advertiseAddr: kotlin.String? = null, - - /* Address or interface to use for data path traffic (format: ``), for example, `192.168.1.1`, or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr` is used. The `DataPathAddr` specifies the address that global scope network drivers will publish towards other nodes in order to reach the containers running on this node. Using this parameter it is possible to separate the container data traffic from the management traffic of the cluster. */ + // Address or interface to use for data path traffic (format: ``), for example, `192.168.1.1`, or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr` is used. The `DataPathAddr` specifies the address that global scope network drivers will publish towards other nodes in order to reach the containers running on this node. Using this parameter it is possible to separate the container data traffic from the management traffic of the cluster. @Json(name = "DataPathAddr") var dataPathAddr: kotlin.String? = null, - - /* DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. if no port is set or is set to 0, default port 4789 will be used. */ + // DataPathPort specifies the data path port number for data traffic. Acceptable port range is 1024 to 49151. if no port is set or is set to 0, default port 4789 will be used. @Json(name = "DataPathPort") var dataPathPort: kotlin.Int? = null, - - /* Default Address Pool specifies default subnet pools for global scope networks. */ + // Default Address Pool specifies default subnet pools for global scope networks. @Json(name = "DefaultAddrPool") var defaultAddrPool: kotlin.collections.MutableList? = null, - - /* Force creation of a new swarm. */ + // Force creation of a new swarm. @Json(name = "ForceNewCluster") var forceNewCluster: kotlin.Boolean? = null, - - /* SubnetSize specifies the subnet size of the networks created from the default subnet pool. */ + // SubnetSize specifies the subnet size of the networks created from the default subnet pool. @Json(name = "SubnetSize") var subnetSize: kotlin.Int? = null, - @Json(name = "Spec") - var spec: SwarmSpec? = null - + var spec: SwarmSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmJoinRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmJoinRequest.kt index cabcaabb..a8b67cd2 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmJoinRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmJoinRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,27 +28,20 @@ import com.squareup.moshi.JsonClass * @param joinToken Secret token for joining this swarm. */ @JsonClass(generateAdapter = true) - data class SwarmJoinRequest( - - /* Listen address used for inter-manager communication if the node gets promoted to manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP). */ + // Listen address used for inter-manager communication if the node gets promoted to manager, as well as determining the networking interface used for the VXLAN Tunnel Endpoint (VTEP). @Json(name = "ListenAddr") var listenAddr: kotlin.String? = null, - - /* Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible. */ + // Externally reachable address advertised to other nodes. This can either be an address/port combination in the form `192.168.1.1:4567`, or an interface followed by a port number, like `eth0:4567`. If the port number is omitted, the port number from the listen address is used. If `AdvertiseAddr` is not specified, it will be automatically detected when possible. @Json(name = "AdvertiseAddr") var advertiseAddr: kotlin.String? = null, - - /* Address or interface to use for data path traffic (format: ``), for example, `192.168.1.1`, or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr` is used. The `DataPathAddr` specifies the address that global scope network drivers will publish towards other nodes in order to reach the containers running on this node. Using this parameter it is possible to separate the container data traffic from the management traffic of the cluster. */ + // Address or interface to use for data path traffic (format: ``), for example, `192.168.1.1`, or an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr` is used. The `DataPathAddr` specifies the address that global scope network drivers will publish towards other nodes in order to reach the containers running on this node. Using this parameter it is possible to separate the container data traffic from the management traffic of the cluster. @Json(name = "DataPathAddr") var dataPathAddr: kotlin.String? = null, - - /* Addresses of manager nodes already participating in the swarm. */ + // Addresses of manager nodes already participating in the swarm. @Json(name = "RemoteAddrs") var remoteAddrs: kotlin.collections.MutableList? = null, - - /* Secret token for joining this swarm. */ + // Secret token for joining this swarm. @Json(name = "JoinToken") - var joinToken: kotlin.String? = null - + var joinToken: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpec.kt index 5a38964d..e7611d04 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -31,33 +31,23 @@ import com.squareup.moshi.JsonClass * @param taskDefaults */ @JsonClass(generateAdapter = true) - data class SwarmSpec( - - /* Name of the swarm. */ + // Name of the swarm. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - @Json(name = "Orchestration") var orchestration: SwarmSpecOrchestration? = null, - @Json(name = "Raft") var raft: SwarmSpecRaft? = null, - @Json(name = "Dispatcher") var dispatcher: SwarmSpecDispatcher? = null, - @Json(name = "CAConfig") var caConfig: SwarmSpecCAConfig? = null, - @Json(name = "EncryptionConfig") var encryptionConfig: SwarmSpecEncryptionConfig? = null, - @Json(name = "TaskDefaults") - var taskDefaults: SwarmSpecTaskDefaults? = null - + var taskDefaults: SwarmSpecTaskDefaults? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecCAConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecCAConfig.kt index e91f6eea..997c7d54 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecCAConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecCAConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,27 +28,20 @@ import com.squareup.moshi.JsonClass * @param forceRotate An integer whose purpose is to force swarm to generate a new signing CA certificate and key, if none have been specified in `SigningCACert` and `SigningCAKey` */ @JsonClass(generateAdapter = true) - data class SwarmSpecCAConfig( - - /* The duration node certificates are issued for. */ + // The duration node certificates are issued for. @Json(name = "NodeCertExpiry") var nodeCertExpiry: kotlin.Long? = null, - - /* Configuration for forwarding signing requests to an external certificate authority. */ + // Configuration for forwarding signing requests to an external certificate authority. @Json(name = "ExternalCAs") var externalCAs: kotlin.collections.MutableList? = null, - - /* The desired signing CA certificate for all swarm node TLS leaf certificates, in PEM format. */ + // The desired signing CA certificate for all swarm node TLS leaf certificates, in PEM format. @Json(name = "SigningCACert") var signingCACert: kotlin.String? = null, - - /* The desired signing CA key for all swarm node TLS leaf certificates, in PEM format. */ + // The desired signing CA key for all swarm node TLS leaf certificates, in PEM format. @Json(name = "SigningCAKey") var signingCAKey: kotlin.String? = null, - - /* An integer whose purpose is to force swarm to generate a new signing CA certificate and key, if none have been specified in `SigningCACert` and `SigningCAKey` */ + // An integer whose purpose is to force swarm to generate a new signing CA certificate and key, if none have been specified in `SigningCACert` and `SigningCAKey` @Json(name = "ForceRotate") - var forceRotate: kotlin.Int? = null - + var forceRotate: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecCAConfigExternalCAsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecCAConfigExternalCAsInner.kt index ecfaee9a..8b89b67c 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecCAConfigExternalCAsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecCAConfigExternalCAsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,27 +27,20 @@ import com.squareup.moshi.JsonClass * @param caCert The root CA certificate (in PEM format) this external CA uses to issue TLS certificates (assumed to be to the current swarm root CA certificate if not provided). */ @JsonClass(generateAdapter = true) - data class SwarmSpecCAConfigExternalCAsInner( - - /* Protocol for communication with the external CA (currently only `cfssl` is supported). */ + // Protocol for communication with the external CA (currently only `cfssl` is supported). @Json(name = "Protocol") var protocol: SwarmSpecCAConfigExternalCAsInner.Protocol? = Protocol.Cfssl, - - /* URL where certificate signing requests should be sent. */ + // URL where certificate signing requests should be sent. @Json(name = "URL") var URL: kotlin.String? = null, - - /* An object with key/value pairs that are interpreted as protocol-specific options for the external CA driver. */ + // An object with key/value pairs that are interpreted as protocol-specific options for the external CA driver. @Json(name = "Options") var options: kotlin.collections.MutableMap? = null, - - /* The root CA certificate (in PEM format) this external CA uses to issue TLS certificates (assumed to be to the current swarm root CA certificate if not provided). */ + // The root CA certificate (in PEM format) this external CA uses to issue TLS certificates (assumed to be to the current swarm root CA certificate if not provided). @Json(name = "CACert") - var caCert: kotlin.String? = null - + var caCert: kotlin.String? = null, ) { - /** * Protocol for communication with the external CA (currently only `cfssl` is supported). * @@ -56,6 +49,6 @@ data class SwarmSpecCAConfigExternalCAsInner( @JsonClass(generateAdapter = false) enum class Protocol(val value: kotlin.String) { @Json(name = "cfssl") - Cfssl("cfssl"); + Cfssl("cfssl"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecDispatcher.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecDispatcher.kt index 8fdae7d1..f61ca41e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecDispatcher.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecDispatcher.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param heartbeatPeriod The delay for an agent to send a heartbeat to the dispatcher. */ @JsonClass(generateAdapter = true) - data class SwarmSpecDispatcher( - - /* The delay for an agent to send a heartbeat to the dispatcher. */ + // The delay for an agent to send a heartbeat to the dispatcher. @Json(name = "HeartbeatPeriod") - var heartbeatPeriod: kotlin.Long? = null - + var heartbeatPeriod: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecEncryptionConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecEncryptionConfig.kt index 4919650f..a47b3291 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecEncryptionConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecEncryptionConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param autoLockManagers If set, generate a key and use it to lock data stored on the managers. */ @JsonClass(generateAdapter = true) - data class SwarmSpecEncryptionConfig( - - /* If set, generate a key and use it to lock data stored on the managers. */ + // If set, generate a key and use it to lock data stored on the managers. @Json(name = "AutoLockManagers") - var autoLockManagers: kotlin.Boolean? = null - + var autoLockManagers: kotlin.Boolean? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecOrchestration.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecOrchestration.kt index eabc4da9..6150ccf4 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecOrchestration.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecOrchestration.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param taskHistoryRetentionLimit The number of historic tasks to keep per instance or node. If negative, never remove completed or failed tasks. */ @JsonClass(generateAdapter = true) - data class SwarmSpecOrchestration( - - /* The number of historic tasks to keep per instance or node. If negative, never remove completed or failed tasks. */ + // The number of historic tasks to keep per instance or node. If negative, never remove completed or failed tasks. @Json(name = "TaskHistoryRetentionLimit") - var taskHistoryRetentionLimit: kotlin.Long? = null - + var taskHistoryRetentionLimit: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecRaft.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecRaft.kt index 0840a5e3..3a632d48 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecRaft.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecRaft.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,27 +28,20 @@ import com.squareup.moshi.JsonClass * @param heartbeatTick The number of ticks between heartbeats. Every HeartbeatTick ticks, the leader will send a heartbeat to the followers. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. */ @JsonClass(generateAdapter = true) - data class SwarmSpecRaft( - - /* The number of log entries between snapshots. */ + // The number of log entries between snapshots. @Json(name = "SnapshotInterval") var snapshotInterval: kotlin.Int? = null, - - /* The number of snapshots to keep beyond the current snapshot. */ + // The number of snapshots to keep beyond the current snapshot. @Json(name = "KeepOldSnapshots") var keepOldSnapshots: kotlin.Int? = null, - - /* The number of log entries to keep around to sync up slow followers after a snapshot is created. */ + // The number of log entries to keep around to sync up slow followers after a snapshot is created. @Json(name = "LogEntriesForSlowFollowers") var logEntriesForSlowFollowers: kotlin.Int? = null, - - /* The number of ticks that a follower will wait for a message from the leader before becoming a candidate and starting an election. `ElectionTick` must be greater than `HeartbeatTick`. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. */ + // The number of ticks that a follower will wait for a message from the leader before becoming a candidate and starting an election. `ElectionTick` must be greater than `HeartbeatTick`. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. @Json(name = "ElectionTick") var electionTick: kotlin.Int? = null, - - /* The number of ticks between heartbeats. Every HeartbeatTick ticks, the leader will send a heartbeat to the followers. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. */ + // The number of ticks between heartbeats. Every HeartbeatTick ticks, the leader will send a heartbeat to the followers. A tick currently defaults to one second, so these translate directly to seconds currently, but this is NOT guaranteed. @Json(name = "HeartbeatTick") - var heartbeatTick: kotlin.Int? = null - + var heartbeatTick: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecTaskDefaults.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecTaskDefaults.kt index db674e0c..13ee5598 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecTaskDefaults.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecTaskDefaults.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param logDriver */ @JsonClass(generateAdapter = true) - data class SwarmSpecTaskDefaults( - @Json(name = "LogDriver") - var logDriver: SwarmSpecTaskDefaultsLogDriver? = null - + var logDriver: SwarmSpecTaskDefaultsLogDriver? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecTaskDefaultsLogDriver.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecTaskDefaultsLogDriver.kt index f382d155..54cd4238 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecTaskDefaultsLogDriver.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmSpecTaskDefaultsLogDriver.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param options Driver-specific options for the selectd log driver, specified as key/value pairs. */ @JsonClass(generateAdapter = true) - data class SwarmSpecTaskDefaultsLogDriver( - - /* The log driver to use as a default for new tasks. */ + // The log driver to use as a default for new tasks. @Json(name = "Name") var name: kotlin.String? = null, - - /* Driver-specific options for the selectd log driver, specified as key/value pairs. */ + // Driver-specific options for the selectd log driver, specified as key/value pairs. @Json(name = "Options") - var options: kotlin.collections.MutableMap? = null - + var options: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmUnlockRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmUnlockRequest.kt index 35e4dd73..5252c113 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmUnlockRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SwarmUnlockRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param unlockKey The swarm's unlock key. */ @JsonClass(generateAdapter = true) - data class SwarmUnlockRequest( - - /* The swarm's unlock key. */ + // The swarm's unlock key. @Json(name = "UnlockKey") - var unlockKey: kotlin.String? = null - + var unlockKey: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemAuthResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemAuthResponse.kt index f7502cf9..dc6cb7bc 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemAuthResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemAuthResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param identityToken An opaque token used to authenticate a user after a successful login */ @JsonClass(generateAdapter = true) - data class SystemAuthResponse( - - /* The status of the authentication */ + // The status of the authentication @Json(name = "Status") var status: kotlin.String, - - /* An opaque token used to authenticate a user after a successful login */ + // An opaque token used to authenticate a user after a successful login @Json(name = "IdentityToken") - var identityToken: kotlin.String? = null - + var identityToken: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemDataUsageResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemDataUsageResponse.kt index e12d754a..b5d13f38 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemDataUsageResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemDataUsageResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,22 +28,15 @@ import com.squareup.moshi.JsonClass * @param buildCache */ @JsonClass(generateAdapter = true) - data class SystemDataUsageResponse( - @Json(name = "LayersSize") var layersSize: kotlin.Long? = null, - @Json(name = "Images") var images: kotlin.collections.MutableList? = null, - @Json(name = "Containers") var containers: kotlin.collections.MutableList? = null, - @Json(name = "Volumes") var volumes: kotlin.collections.MutableList? = null, - @Json(name = "BuildCache") - var buildCache: kotlin.collections.MutableList? = null - + var buildCache: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemInfo.kt index 092a8c7f..34b29911 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -83,245 +83,182 @@ import com.squareup.moshi.JsonClass * @param warnings List of warnings / informational messages about missing features, or issues related to the daemon configuration. These messages can be printed by the client as information to the user. */ @JsonClass(generateAdapter = true) - data class SystemInfo( - - /* Unique identifier of the daemon.


> **Note**: The format of the ID itself is not part of the API, and > should not be considered stable. */ + // Unique identifier of the daemon.


> **Note**: The format of the ID itself is not part of the API, and > should not be considered stable. @Json(name = "ID") var ID: kotlin.String? = null, - - /* Total number of containers on the host. */ + // Total number of containers on the host. @Json(name = "Containers") var containers: kotlin.Int? = null, - - /* Number of containers with status `\"running\"`. */ + // Number of containers with status `\"running\"`. @Json(name = "ContainersRunning") var containersRunning: kotlin.Int? = null, - - /* Number of containers with status `\"paused\"`. */ + // Number of containers with status `\"paused\"`. @Json(name = "ContainersPaused") var containersPaused: kotlin.Int? = null, - - /* Number of containers with status `\"stopped\"`. */ + // Number of containers with status `\"stopped\"`. @Json(name = "ContainersStopped") var containersStopped: kotlin.Int? = null, - - /* Total number of images on the host. Both _tagged_ and _untagged_ (dangling) images are counted. */ + // Total number of images on the host. Both _tagged_ and _untagged_ (dangling) images are counted. @Json(name = "Images") var images: kotlin.Int? = null, - - /* Name of the storage driver in use. */ + // Name of the storage driver in use. @Json(name = "Driver") var driver: kotlin.String? = null, - - /* Information specific to the storage driver, provided as \"label\" / \"value\" pairs. This information is provided by the storage driver, and formatted in a way consistent with the output of `docker info` on the command line.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. */ + // Information specific to the storage driver, provided as \"label\" / \"value\" pairs. This information is provided by the storage driver, and formatted in a way consistent with the output of `docker info` on the command line.


> **Note**: The information returned in this field, including the > formatting of values and labels, should not be considered stable, > and may change without notice. @Json(name = "DriverStatus") var driverStatus: kotlin.collections.MutableList>? = null, - - /* Root directory of persistent Docker state. Defaults to `/var/lib/docker` on Linux, and `C:\\ProgramData\\docker` on Windows. */ + // Root directory of persistent Docker state. Defaults to `/var/lib/docker` on Linux, and `C:\\ProgramData\\docker` on Windows. @Json(name = "DockerRootDir") var dockerRootDir: kotlin.String? = null, - @Json(name = "Plugins") var plugins: PluginsInfo? = null, - - /* Indicates if the host has memory limit support enabled. */ + // Indicates if the host has memory limit support enabled. @Json(name = "MemoryLimit") var memoryLimit: kotlin.Boolean? = null, - - /* Indicates if the host has memory swap limit support enabled. */ + // Indicates if the host has memory swap limit support enabled. @Json(name = "SwapLimit") var swapLimit: kotlin.Boolean? = null, - - /* Indicates if the host has kernel memory TCP limit support enabled. This field is omitted if not supported. Kernel memory TCP limits are not supported when using cgroups v2, which does not support the corresponding `memory.kmem.tcp.limit_in_bytes` cgroup. */ + // Indicates if the host has kernel memory TCP limit support enabled. This field is omitted if not supported. Kernel memory TCP limits are not supported when using cgroups v2, which does not support the corresponding `memory.kmem.tcp.limit_in_bytes` cgroup. @Json(name = "KernelMemoryTCP") var kernelMemoryTCP: kotlin.Boolean? = null, - - /* Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host. */ + // Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host. @Json(name = "CpuCfsPeriod") var cpuCfsPeriod: kotlin.Boolean? = null, - - /* Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host. */ + // Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host. @Json(name = "CpuCfsQuota") var cpuCfsQuota: kotlin.Boolean? = null, - - /* Indicates if CPU Shares limiting is supported by the host. */ + // Indicates if CPU Shares limiting is supported by the host. @Json(name = "CPUShares") var cpUShares: kotlin.Boolean? = null, - - /* Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host. See [cpuset(7)](https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt) */ + // Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host. See [cpuset(7)](https://www.kernel.org/doc/Documentation/cgroup-v1/cpusets.txt) @Json(name = "CPUSet") var cpUSet: kotlin.Boolean? = null, - - /* Indicates if the host kernel has PID limit support enabled. */ + // Indicates if the host kernel has PID limit support enabled. @Json(name = "PidsLimit") var pidsLimit: kotlin.Boolean? = null, - - /* Indicates if OOM killer disable is supported on the host. */ + // Indicates if OOM killer disable is supported on the host. @Json(name = "OomKillDisable") var oomKillDisable: kotlin.Boolean? = null, - - /* Indicates IPv4 forwarding is enabled. */ + // Indicates IPv4 forwarding is enabled. @Json(name = "IPv4Forwarding") var ipv4Forwarding: kotlin.Boolean? = null, - - /* Indicates if `bridge-nf-call-iptables` is available on the host. */ + // Indicates if `bridge-nf-call-iptables` is available on the host. @Json(name = "BridgeNfIptables") var bridgeNfIptables: kotlin.Boolean? = null, - - /* Indicates if `bridge-nf-call-ip6tables` is available on the host. */ + // Indicates if `bridge-nf-call-ip6tables` is available on the host. @Json(name = "BridgeNfIp6tables") var bridgeNfIp6tables: kotlin.Boolean? = null, - - /* Indicates if the daemon is running in debug-mode / with debug-level logging enabled. */ + // Indicates if the daemon is running in debug-mode / with debug-level logging enabled. @Json(name = "Debug") var debug: kotlin.Boolean? = null, - - /* The total number of file Descriptors in use by the daemon process. This information is only returned if debug-mode is enabled. */ + // The total number of file Descriptors in use by the daemon process. This information is only returned if debug-mode is enabled. @Json(name = "NFd") var nfd: kotlin.Int? = null, - - /* The number of goroutines that currently exist. This information is only returned if debug-mode is enabled. */ + // The number of goroutines that currently exist. This information is only returned if debug-mode is enabled. @Json(name = "NGoroutines") var ngoroutines: kotlin.Int? = null, - - /* Current system-time in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */ + // Current system-time in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. @Json(name = "SystemTime") var systemTime: kotlin.String? = null, - - /* The logging driver to use as a default for new containers. */ + // The logging driver to use as a default for new containers. @Json(name = "LoggingDriver") var loggingDriver: kotlin.String? = null, - - /* The driver to use for managing cgroups. */ + // The driver to use for managing cgroups. @Json(name = "CgroupDriver") var cgroupDriver: SystemInfo.CgroupDriver? = CgroupDriver.Cgroupfs, - - /* The version of the cgroup. */ + // The version of the cgroup. @Json(name = "CgroupVersion") var cgroupVersion: SystemInfo.CgroupVersion? = CgroupVersion.V1, - - /* Number of event listeners subscribed. */ + // Number of event listeners subscribed. @Json(name = "NEventsListener") var neventsListener: kotlin.Int? = null, - - /* Kernel version of the host. On Linux, this information obtained from `uname`. On Windows this information is queried from the HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\ registry value, for example _\"10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)\"_. */ + // Kernel version of the host. On Linux, this information obtained from `uname`. On Windows this information is queried from the HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\ registry value, for example _\"10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)\"_. @Json(name = "KernelVersion") var kernelVersion: kotlin.String? = null, - - /* Name of the host's operating system, for example: \"Ubuntu 16.04.2 LTS\" or \"Windows Server 2016 Datacenter\" */ + // Name of the host's operating system, for example: \"Ubuntu 16.04.2 LTS\" or \"Windows Server 2016 Datacenter\" @Json(name = "OperatingSystem") var operatingSystem: kotlin.String? = null, - - /* Version of the host's operating system


> **Note**: The information returned in this field, including its > very existence, and the formatting of values, should not be considered > stable, and may change without notice. */ + // Version of the host's operating system


> **Note**: The information returned in this field, including its > very existence, and the formatting of values, should not be considered > stable, and may change without notice. @Json(name = "OSVersion") var osVersion: kotlin.String? = null, - - /* Generic type of the operating system of the host, as returned by the Go runtime (`GOOS`). Currently returned values are \"linux\" and \"windows\". A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment). */ + // Generic type of the operating system of the host, as returned by the Go runtime (`GOOS`). Currently returned values are \"linux\" and \"windows\". A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment). @Json(name = "OSType") var osType: kotlin.String? = null, - - /* Hardware architecture of the host, as returned by the Go runtime (`GOARCH`). A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment). */ + // Hardware architecture of the host, as returned by the Go runtime (`GOARCH`). A full list of possible values can be found in the [Go documentation](https://go.dev/doc/install/source#environment). @Json(name = "Architecture") var architecture: kotlin.String? = null, - - /* The number of logical CPUs usable by the daemon. The number of available CPUs is checked by querying the operating system when the daemon starts. Changes to operating system CPU allocation after the daemon is started are not reflected. */ + // The number of logical CPUs usable by the daemon. The number of available CPUs is checked by querying the operating system when the daemon starts. Changes to operating system CPU allocation after the daemon is started are not reflected. @Json(name = "NCPU") var NCPU: kotlin.Int? = null, - - /* Total amount of physical memory available on the host, in bytes. */ + // Total amount of physical memory available on the host, in bytes. @Json(name = "MemTotal") var memTotal: kotlin.Long? = null, - - /* Address / URL of the index server that is used for image search, and as a default for user authentication for Docker Hub and Docker Cloud. */ + // Address / URL of the index server that is used for image search, and as a default for user authentication for Docker Hub and Docker Cloud. @Json(name = "IndexServerAddress") var indexServerAddress: kotlin.String? = "https://index.docker.io/v1/", - @Json(name = "RegistryConfig") var registryConfig: RegistryServiceConfig? = null, - - /* User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`). */ + // User-defined resources can be either Integer resources (e.g, `SSD=3`) or String resources (e.g, `GPU=UUID1`). @Json(name = "GenericResources") var genericResources: kotlin.collections.MutableList? = null, - - /* HTTP-proxy configured for the daemon. This value is obtained from the [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL are masked in the API response. Containers do not automatically inherit this configuration. */ + // HTTP-proxy configured for the daemon. This value is obtained from the [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL are masked in the API response. Containers do not automatically inherit this configuration. @Json(name = "HttpProxy") var httpProxy: kotlin.String? = null, - - /* HTTPS-proxy configured for the daemon. This value is obtained from the [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL are masked in the API response. Containers do not automatically inherit this configuration. */ + // HTTPS-proxy configured for the daemon. This value is obtained from the [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL are masked in the API response. Containers do not automatically inherit this configuration. @Json(name = "HttpsProxy") var httpsProxy: kotlin.String? = null, - - /* Comma-separated list of domain extensions for which no proxy should be used. This value is obtained from the [`NO_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Containers do not automatically inherit this configuration. */ + // Comma-separated list of domain extensions for which no proxy should be used. This value is obtained from the [`NO_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. Containers do not automatically inherit this configuration. @Json(name = "NoProxy") var noProxy: kotlin.String? = null, - - /* Hostname of the host. */ + // Hostname of the host. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined labels (key/value metadata) as set on the daemon.


> **Note**: When part of a Swarm, nodes can both have _daemon_ labels, > set through the daemon configuration, and _node_ labels, set from a > manager node in the Swarm. Node labels are not included in this > field. Node labels can be retrieved using the `/nodes/(id)` endpoint > on a manager node in the Swarm. */ + // User-defined labels (key/value metadata) as set on the daemon.


> **Note**: When part of a Swarm, nodes can both have _daemon_ labels, > set through the daemon configuration, and _node_ labels, set from a > manager node in the Swarm. Node labels are not included in this > field. Node labels can be retrieved using the `/nodes/(id)` endpoint > on a manager node in the Swarm. @Json(name = "Labels") var labels: kotlin.collections.MutableList? = null, - - /* Indicates if experimental features are enabled on the daemon. */ + // Indicates if experimental features are enabled on the daemon. @Json(name = "ExperimentalBuild") var experimentalBuild: kotlin.Boolean? = null, - - /* Version string of the daemon. */ + // Version string of the daemon. @Json(name = "ServerVersion") var serverVersion: kotlin.String? = null, - - /* List of [OCI compliant](https://github.com/opencontainers/runtime-spec) runtimes configured on the daemon. Keys hold the \"name\" used to reference the runtime. The Docker daemon relies on an OCI compliant runtime (invoked via the `containerd` daemon) as its interface to the Linux kernel namespaces, cgroups, and SELinux. The default runtime is `runc`, and automatically configured. Additional runtimes can be configured by the user and will be listed here. */ + // List of [OCI compliant](https://github.com/opencontainers/runtime-spec) runtimes configured on the daemon. Keys hold the \"name\" used to reference the runtime. The Docker daemon relies on an OCI compliant runtime (invoked via the `containerd` daemon) as its interface to the Linux kernel namespaces, cgroups, and SELinux. The default runtime is `runc`, and automatically configured. Additional runtimes can be configured by the user and will be listed here. @Json(name = "Runtimes") var runtimes: kotlin.collections.MutableMap? = null, - - /* Name of the default OCI runtime that is used when starting containers. The default can be overridden per-container at create time. */ + // Name of the default OCI runtime that is used when starting containers. The default can be overridden per-container at create time. @Json(name = "DefaultRuntime") var defaultRuntime: kotlin.String? = "runc", - @Json(name = "Swarm") var swarm: SwarmInfo? = null, - - /* Indicates if live restore is enabled. If enabled, containers are kept running when the daemon is shutdown or upon daemon start if running containers are detected. */ + // Indicates if live restore is enabled. If enabled, containers are kept running when the daemon is shutdown or upon daemon start if running containers are detected. @Json(name = "LiveRestoreEnabled") var liveRestoreEnabled: kotlin.Boolean? = false, - - /* Represents the isolation technology to use as a default for containers. The supported values are platform-specific. If no isolation value is specified on daemon start, on Windows client, the default is `hyperv`, and on Windows server, the default is `process`. This option is currently not used on other platforms. */ + // Represents the isolation technology to use as a default for containers. The supported values are platform-specific. If no isolation value is specified on daemon start, on Windows client, the default is `hyperv`, and on Windows server, the default is `process`. This option is currently not used on other platforms. @Json(name = "Isolation") var isolation: SystemInfo.Isolation? = Isolation.Default, - - /* Name and, optional, path of the `docker-init` binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. */ + // Name and, optional, path of the `docker-init` binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. @Json(name = "InitBinary") var initBinary: kotlin.String? = null, - @Json(name = "ContainerdCommit") var containerdCommit: Commit? = null, - @Json(name = "RuncCommit") var runcCommit: Commit? = null, - @Json(name = "InitCommit") var initCommit: Commit? = null, - - /* List of security features that are enabled on the daemon, such as apparmor, seccomp, SELinux, user-namespaces (userns), rootless and no-new-privileges. Additional configuration options for each security feature may be present, and are included as a comma-separated list of key/value pairs. */ + // List of security features that are enabled on the daemon, such as apparmor, seccomp, SELinux, user-namespaces (userns), rootless and no-new-privileges. Additional configuration options for each security feature may be present, and are included as a comma-separated list of key/value pairs. @Json(name = "SecurityOptions") var securityOptions: kotlin.collections.MutableList? = null, - - /* Reports a summary of the product license on the daemon. If a commercial license has been applied to the daemon, information such as number of nodes, and expiration are included. */ + // Reports a summary of the product license on the daemon. If a commercial license has been applied to the daemon, information such as number of nodes, and expiration are included. @Json(name = "ProductLicense") var productLicense: kotlin.String? = null, - - /* List of custom default address pools for local networks, which can be specified in the daemon.json file or dockerd option. Example: a Base \"10.10.0.0/16\" with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools. */ + // List of custom default address pools for local networks, which can be specified in the daemon.json file or dockerd option. Example: a Base \"10.10.0.0/16\" with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools. @Json(name = "DefaultAddressPools") var defaultAddressPools: kotlin.collections.MutableList? = null, - - /* List of warnings / informational messages about missing features, or issues related to the daemon configuration. These messages can be printed by the client as information to the user. */ + // List of warnings / informational messages about missing features, or issues related to the daemon configuration. These messages can be printed by the client as information to the user. @Json(name = "Warnings") - var warnings: kotlin.collections.MutableList? = null - + var warnings: kotlin.collections.MutableList? = null, ) { - /** * The driver to use for managing cgroups. * @@ -336,7 +273,7 @@ data class SystemInfo( Systemd("systemd"), @Json(name = "none") - None("none"); + None("none"), } /** @@ -350,7 +287,7 @@ data class SystemInfo( V1("1"), @Json(name = "2") - V2("2"); + V2("2"), } /** @@ -367,6 +304,6 @@ data class SystemInfo( Hyperv("hyperv"), @Json(name = "process") - Process("process"); + Process("process"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemInfoDefaultAddressPoolsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemInfoDefaultAddressPoolsInner.kt index 43a48d7a..020a6ee8 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemInfoDefaultAddressPoolsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemInfoDefaultAddressPoolsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param propertySize The network pool size */ @JsonClass(generateAdapter = true) - data class SystemInfoDefaultAddressPoolsInner( - - /* The network address in CIDR format */ + // The network address in CIDR format @Json(name = "Base") var base: kotlin.String? = null, - - /* The network pool size */ + // The network pool size @Json(name = "Size") - var propertySize: kotlin.Int? = null - + var propertySize: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersion.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersion.kt index 97f1f343..4625f802 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersion.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersion.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -35,54 +35,40 @@ import com.squareup.moshi.JsonClass * @param buildTime The date and time that the daemon was compiled. */ @JsonClass(generateAdapter = true) - data class SystemVersion( - @Json(name = "Platform") var platform: SystemVersionPlatform? = null, - - /* Information about system components */ + // Information about system components @Json(name = "Components") var components: kotlin.collections.MutableList? = null, - - /* The version of the daemon */ + // The version of the daemon @Json(name = "Version") var version: kotlin.String? = null, - - /* The default (and highest) API version that is supported by the daemon */ + // The default (and highest) API version that is supported by the daemon @Json(name = "ApiVersion") var apiVersion: kotlin.String? = null, - - /* The minimum API version that is supported by the daemon */ + // The minimum API version that is supported by the daemon @Json(name = "MinAPIVersion") var minAPIVersion: kotlin.String? = null, - - /* The Git commit of the source code that was used to build the daemon */ + // The Git commit of the source code that was used to build the daemon @Json(name = "GitCommit") var gitCommit: kotlin.String? = null, - - /* The version Go used to compile the daemon, and the version of the Go runtime in use. */ + // The version Go used to compile the daemon, and the version of the Go runtime in use. @Json(name = "GoVersion") var goVersion: kotlin.String? = null, - - /* The operating system that the daemon is running on (\"linux\" or \"windows\") */ + // The operating system that the daemon is running on (\"linux\" or \"windows\") @Json(name = "Os") var os: kotlin.String? = null, - - /* The architecture that the daemon is running on */ + // The architecture that the daemon is running on @Json(name = "Arch") var arch: kotlin.String? = null, - - /* The kernel version (`uname -r`) that the daemon is running on. This field is omitted when empty. */ + // The kernel version (`uname -r`) that the daemon is running on. This field is omitted when empty. @Json(name = "KernelVersion") var kernelVersion: kotlin.String? = null, - - /* Indicates if the daemon is started with experimental features enabled. This field is omitted when empty / false. */ + // Indicates if the daemon is started with experimental features enabled. This field is omitted when empty / false. @Json(name = "Experimental") var experimental: kotlin.Boolean? = null, - - /* The date and time that the daemon was compiled. */ + // The date and time that the daemon was compiled. @Json(name = "BuildTime") - var buildTime: kotlin.String? = null - + var buildTime: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersionComponentsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersionComponentsInner.kt index 6ff44c9d..3b69fcd9 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersionComponentsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersionComponentsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @param details Key/value pairs of strings with additional information about the component. These values are intended for informational purposes only, and their content is not defined, and not part of the API specification. These messages can be printed by the client as information to the user. */ @JsonClass(generateAdapter = true) - data class SystemVersionComponentsInner( - - /* Name of the component */ + // Name of the component @Json(name = "Name") var name: kotlin.String, - - /* Version of the component */ + // Version of the component @Json(name = "Version") var version: kotlin.String, - - /* Key/value pairs of strings with additional information about the component. These values are intended for informational purposes only, and their content is not defined, and not part of the API specification. These messages can be printed by the client as information to the user. */ + // Key/value pairs of strings with additional information about the component. These values are intended for informational purposes only, and their content is not defined, and not part of the API specification. These messages can be printed by the client as information to the user. @Json(name = "Details") - var details: kotlin.Any? = null - + var details: kotlin.Any? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersionPlatform.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersionPlatform.kt index 4d207497..3f4e6037 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersionPlatform.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/SystemVersionPlatform.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param name */ @JsonClass(generateAdapter = true) - data class SystemVersionPlatform( - @Json(name = "Name") - var name: kotlin.String - + var name: kotlin.String, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TLSInfo.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TLSInfo.kt index e136a468..01248c68 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TLSInfo.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TLSInfo.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @param certIssuerPublicKey The base64-url-safe-encoded raw public key bytes of the issuer. */ @JsonClass(generateAdapter = true) - data class TLSInfo( - - /* The root CA certificate(s) that are used to validate leaf TLS certificates. */ + // The root CA certificate(s) that are used to validate leaf TLS certificates. @Json(name = "TrustRoot") var trustRoot: kotlin.String? = null, - - /* The base64-url-safe-encoded raw subject bytes of the issuer. */ + // The base64-url-safe-encoded raw subject bytes of the issuer. @Json(name = "CertIssuerSubject") var certIssuerSubject: kotlin.String? = null, - - /* The base64-url-safe-encoded raw public key bytes of the issuer. */ + // The base64-url-safe-encoded raw public key bytes of the issuer. @Json(name = "CertIssuerPublicKey") - var certIssuerPublicKey: kotlin.String? = null - + var certIssuerPublicKey: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Task.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Task.kt index 6868dbf5..61d83a42 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Task.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Task.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -37,55 +37,39 @@ import com.squareup.moshi.JsonClass * @param jobIteration */ @JsonClass(generateAdapter = true) - data class Task( - - /* The ID of the 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. */ + // Name of the task. @Json(name = "Name") var name: kotlin.String? = null, - - /* User-defined key/value metadata. */ + // 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. */ + // 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. */ + // 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`). */ + // 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 - + var jobIteration: ObjectVersion? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpec.kt index 51715097..2596a359 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -33,40 +33,28 @@ import com.squareup.moshi.JsonClass * @param logDriver */ @JsonClass(generateAdapter = true) - data class TaskSpec( - @Json(name = "PluginSpec") var pluginSpec: TaskSpecPluginSpec? = null, - @Json(name = "ContainerSpec") var containerSpec: TaskSpecContainerSpec? = null, - @Json(name = "NetworkAttachmentSpec") var networkAttachmentSpec: TaskSpecNetworkAttachmentSpec? = null, - @Json(name = "Resources") var resources: TaskSpecResources? = null, - @Json(name = "RestartPolicy") var restartPolicy: TaskSpecRestartPolicy? = null, - @Json(name = "Placement") var placement: TaskSpecPlacement? = null, - - /* A counter that triggers an update even if no relevant parameters have been changed. */ + // A counter that triggers an update even if no relevant parameters have been changed. @Json(name = "ForceUpdate") var forceUpdate: kotlin.Int? = null, - - /* Runtime is the type of runtime specified for the task executor. */ + // Runtime is the type of runtime specified for the task executor. @Json(name = "Runtime") var runtime: kotlin.String? = null, - - /* Specifies which networks the service should attach to. */ + // Specifies which networks the service should attach to. @Json(name = "Networks") var networks: kotlin.collections.MutableList? = null, - @Json(name = "LogDriver") - var logDriver: TaskSpecLogDriver? = null - + var logDriver: TaskSpecLogDriver? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpec.kt index 8d8f1371..4e0b6926 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -50,116 +50,86 @@ import com.squareup.moshi.JsonClass * @param ulimits A list of resource limits to set in the container. For example: `{\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048}`\" */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpec( - - /* The image name to use for the container */ + // The image name to use for the container @Json(name = "Image") var image: kotlin.String? = null, - - /* User-defined key/value data. */ + // User-defined key/value data. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* The command to be run in the image. */ + // The command to be run in the image. @Json(name = "Command") var command: kotlin.collections.MutableList? = null, - - /* Arguments to the command. */ + // Arguments to the command. @Json(name = "Args") var args: kotlin.collections.MutableList? = null, - - /* The hostname to use for the container, as a valid [RFC 1123](https://tools.ietf.org/html/rfc1123) hostname. */ + // The hostname to use for the container, as a valid [RFC 1123](https://tools.ietf.org/html/rfc1123) hostname. @Json(name = "Hostname") var hostname: kotlin.String? = null, - - /* A list of environment variables in the form `VAR=value`. */ + // A list of environment variables in the form `VAR=value`. @Json(name = "Env") var env: kotlin.collections.MutableList? = null, - - /* The working directory for commands to run in. */ + // The working directory for commands to run in. @Json(name = "Dir") var dir: kotlin.String? = null, - - /* The user inside the container. */ + // The user inside the container. @Json(name = "User") var user: kotlin.String? = null, - - /* A list of additional groups that the container process will run as. */ + // A list of additional groups that the container process will run as. @Json(name = "Groups") var groups: kotlin.collections.MutableList? = null, - @Json(name = "Privileges") var privileges: TaskSpecContainerSpecPrivileges? = null, - - /* Whether a pseudo-TTY should be allocated. */ + // Whether a pseudo-TTY should be allocated. @Json(name = "TTY") var TTY: kotlin.Boolean? = null, - - /* Open `stdin` */ + // Open `stdin` @Json(name = "OpenStdin") var openStdin: kotlin.Boolean? = null, - - /* Mount the container's root filesystem as read only. */ + // Mount the container's root filesystem as read only. @Json(name = "ReadOnly") var readOnly: kotlin.Boolean? = null, - - /* Specification for mounts to be added to containers created as part of the service. */ + // Specification for mounts to be added to containers created as part of the service. @Json(name = "Mounts") var mounts: kotlin.collections.MutableList? = null, - - /* Signal to stop the container. */ + // Signal to stop the container. @Json(name = "StopSignal") var stopSignal: kotlin.String? = null, - - /* Amount of time to wait for the container to terminate before forcefully killing it. */ + // Amount of time to wait for the container to terminate before forcefully killing it. @Json(name = "StopGracePeriod") var stopGracePeriod: kotlin.Long? = null, - @Json(name = "HealthCheck") var healthCheck: HealthConfig? = null, - - /* A list of hostname/IP mappings to add to the container's `hosts` file. The format of extra hosts is specified in the [hosts(5)](http://man7.org/linux/man-pages/man5/hosts.5.html) man page: IP_address canonical_hostname [aliases] */ + // A list of hostname/IP mappings to add to the container's `hosts` file. The format of extra hosts is specified in the [hosts(5)](http://man7.org/linux/man-pages/man5/hosts.5.html) man page: IP_address canonical_hostname [aliases] @Json(name = "Hosts") var hosts: kotlin.collections.MutableList? = null, - @Json(name = "DNSConfig") var dnSConfig: TaskSpecContainerSpecDNSConfig? = null, - - /* Secrets contains references to zero or more secrets that will be exposed to the service. */ + // Secrets contains references to zero or more secrets that will be exposed to the service. @Json(name = "Secrets") var secrets: kotlin.collections.MutableList? = null, - - /* Configs contains references to zero or more configs that will be exposed to the service. */ + // Configs contains references to zero or more configs that will be exposed to the service. @Json(name = "Configs") var configs: kotlin.collections.MutableList? = null, - - /* Isolation technology of the containers running the service. (Windows only) */ + // Isolation technology of the containers running the service. (Windows only) @Json(name = "Isolation") var isolation: TaskSpecContainerSpec.Isolation? = null, - - /* Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. */ + // Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. @Json(name = "Init") var `init`: kotlin.Boolean? = null, - - /* Set kernel namedspaced parameters (sysctls) in the container. The Sysctls option on services accepts the same sysctls as the are supported on containers. Note that while the same sysctls are supported, no guarantees or checks are made about their suitability for a clustered environment, and it's up to the user to determine whether a given sysctl will work properly in a Service. */ + // Set kernel namedspaced parameters (sysctls) in the container. The Sysctls option on services accepts the same sysctls as the are supported on containers. Note that while the same sysctls are supported, no guarantees or checks are made about their suitability for a clustered environment, and it's up to the user to determine whether a given sysctl will work properly in a Service. @Json(name = "Sysctls") var sysctls: kotlin.collections.MutableMap? = null, - - /* A list of kernel capabilities to add to the default set for the container. */ + // A list of kernel capabilities to add to the default set for the container. @Json(name = "CapabilityAdd") var capabilityAdd: kotlin.collections.MutableList? = null, - - /* A list of kernel capabilities to drop from the default set for the container. */ + // A list of kernel capabilities to drop from the default set for the container. @Json(name = "CapabilityDrop") var capabilityDrop: kotlin.collections.MutableList? = null, - - /* A list of resource limits to set in the container. For example: `{\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048}`\" */ + // A list of resource limits to set in the container. For example: `{\"Name\": \"nofile\", \"Soft\": 1024, \"Hard\": 2048}`\" @Json(name = "Ulimits") - var ulimits: kotlin.collections.MutableList? = null - + var ulimits: kotlin.collections.MutableList? = null, ) { - /** * Isolation technology of the containers running the service. (Windows only) * @@ -174,6 +144,6 @@ data class TaskSpecContainerSpec( Process("process"), @Json(name = "hyperv") - Hyperv("hyperv"); + Hyperv("hyperv"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecConfigsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecConfigsInner.kt index 2161418a..52cf4da7 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecConfigsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecConfigsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,22 +27,16 @@ import com.squareup.moshi.JsonClass * @param configName ConfigName is the name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID. */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpecConfigsInner( - @Json(name = "File") var file: TaskSpecContainerSpecConfigsInnerFile? = null, - - /* Runtime represents a target that is not mounted into the container but is used by the task


> **Note**: `Configs.File` and `Configs.Runtime` are mutually > exclusive */ + // Runtime represents a target that is not mounted into the container but is used by the task


> **Note**: `Configs.File` and `Configs.Runtime` are mutually > exclusive @Json(name = "Runtime") var runtime: kotlin.Any? = null, - - /* ConfigID represents the ID of the specific config that we're referencing. */ + // ConfigID represents the ID of the specific config that we're referencing. @Json(name = "ConfigID") var configID: kotlin.String? = null, - - /* ConfigName is the name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID. */ + // ConfigName is the name of the config that this references, but this is just provided for lookup/display purposes. The config in the reference will be identified by its ID. @Json(name = "ConfigName") - var configName: kotlin.String? = null - + var configName: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecConfigsInnerFile.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecConfigsInnerFile.kt index 3937645f..c57c6547 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecConfigsInnerFile.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecConfigsInnerFile.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,23 +27,17 @@ import com.squareup.moshi.JsonClass * @param mode Mode represents the FileMode of the file. */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpecConfigsInnerFile( - - /* Name represents the final filename in the filesystem. */ + // Name represents the final filename in the filesystem. @Json(name = "Name") var name: kotlin.String? = null, - - /* UID represents the file UID. */ + // UID represents the file UID. @Json(name = "UID") var UID: kotlin.String? = null, - - /* GID represents the file GID. */ + // GID represents the file GID. @Json(name = "GID") var GID: kotlin.String? = null, - - /* Mode represents the FileMode of the file. */ + // Mode represents the FileMode of the file. @Json(name = "Mode") - var mode: kotlin.Int? = null - + var mode: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecDNSConfig.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecDNSConfig.kt index 03d86f89..48dfb94f 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecDNSConfig.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecDNSConfig.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @param options A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.). */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpecDNSConfig( - - /* The IP addresses of the name servers. */ + // The IP addresses of the name servers. @Json(name = "Nameservers") var nameservers: kotlin.collections.MutableList? = null, - - /* A search list for host-name lookup. */ + // A search list for host-name lookup. @Json(name = "Search") var search: kotlin.collections.MutableList? = null, - - /* A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.). */ + // A list of internal resolver variables to be modified (e.g., `debug`, `ndots:3`, etc.). @Json(name = "Options") - var options: kotlin.collections.MutableList? = null - + var options: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivileges.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivileges.kt index 4e5d2194..3e9674b9 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivileges.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivileges.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param seLinuxContext */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpecPrivileges( - @Json(name = "CredentialSpec") var credentialSpec: TaskSpecContainerSpecPrivilegesCredentialSpec? = null, - @Json(name = "SELinuxContext") - var seLinuxContext: TaskSpecContainerSpecPrivilegesSELinuxContext? = null - + var seLinuxContext: TaskSpecContainerSpecPrivilegesSELinuxContext? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivilegesCredentialSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivilegesCredentialSpec.kt index 13f872fd..3f3ddb8b 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivilegesCredentialSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivilegesCredentialSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,19 +26,14 @@ import com.squareup.moshi.JsonClass * @param registry Load credential spec from this value in the Windows registry. The specified registry value must be located in: `HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Virtualization\\Containers\\CredentialSpecs`


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpecPrivilegesCredentialSpec( - - /* Load credential spec from a Swarm Config with the given ID. The specified config must also be present in the Configs field with the Runtime property set.


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. */ + // Load credential spec from a Swarm Config with the given ID. The specified config must also be present in the Configs field with the Runtime property set.


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. @Json(name = "Config") var config: kotlin.String? = null, - - /* Load credential spec from this file. The file is read by the daemon, and must be present in the `CredentialSpecs` subdirectory in the docker data directory, which defaults to `C:\\ProgramData\\Docker\\` on Windows. For example, specifying `spec.json` loads `C:\\ProgramData\\Docker\\CredentialSpecs\\spec.json`.


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. */ + // Load credential spec from this file. The file is read by the daemon, and must be present in the `CredentialSpecs` subdirectory in the docker data directory, which defaults to `C:\\ProgramData\\Docker\\` on Windows. For example, specifying `spec.json` loads `C:\\ProgramData\\Docker\\CredentialSpecs\\spec.json`.


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. @Json(name = "File") var file: kotlin.String? = null, - - /* Load credential spec from this value in the Windows registry. The specified registry value must be located in: `HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Virtualization\\Containers\\CredentialSpecs`


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. */ + // Load credential spec from this value in the Windows registry. The specified registry value must be located in: `HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Virtualization\\Containers\\CredentialSpecs`


> **Note**: `CredentialSpec.File`, `CredentialSpec.Registry`, > and `CredentialSpec.Config` are mutually exclusive. @Json(name = "Registry") - var registry: kotlin.String? = null - + var registry: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivilegesSELinuxContext.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivilegesSELinuxContext.kt index 9d52e61f..4d1bc6e3 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivilegesSELinuxContext.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecPrivilegesSELinuxContext.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,27 +28,20 @@ import com.squareup.moshi.JsonClass * @param level SELinux level label */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpecPrivilegesSELinuxContext( - - /* Disable SELinux */ + // Disable SELinux @Json(name = "Disable") var disable: kotlin.Boolean? = null, - - /* SELinux user label */ + // SELinux user label @Json(name = "User") var user: kotlin.String? = null, - - /* SELinux role label */ + // SELinux role label @Json(name = "Role") var role: kotlin.String? = null, - - /* SELinux type label */ + // SELinux type label @Json(name = "Type") var type: kotlin.String? = null, - - /* SELinux level label */ + // SELinux level label @Json(name = "Level") - var level: kotlin.String? = null - + var level: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecSecretsInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecSecretsInner.kt index 920f80f0..9610bf14 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecSecretsInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecSecretsInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,18 +26,13 @@ import com.squareup.moshi.JsonClass * @param secretName SecretName is the name of the secret that this references, but this is just provided for lookup/display purposes. The secret in the reference will be identified by its ID. */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpecSecretsInner( - @Json(name = "File") var file: TaskSpecContainerSpecSecretsInnerFile? = null, - - /* SecretID represents the ID of the specific secret that we're referencing. */ + // SecretID represents the ID of the specific secret that we're referencing. @Json(name = "SecretID") var secretID: kotlin.String? = null, - - /* SecretName is the name of the secret that this references, but this is just provided for lookup/display purposes. The secret in the reference will be identified by its ID. */ + // SecretName is the name of the secret that this references, but this is just provided for lookup/display purposes. The secret in the reference will be identified by its ID. @Json(name = "SecretName") - var secretName: kotlin.String? = null - + var secretName: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecSecretsInnerFile.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecSecretsInnerFile.kt index 808b10ac..d826a4a1 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecSecretsInnerFile.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecContainerSpecSecretsInnerFile.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,23 +27,17 @@ import com.squareup.moshi.JsonClass * @param mode Mode represents the FileMode of the file. */ @JsonClass(generateAdapter = true) - data class TaskSpecContainerSpecSecretsInnerFile( - - /* Name represents the final filename in the filesystem. */ + // Name represents the final filename in the filesystem. @Json(name = "Name") var name: kotlin.String? = null, - - /* UID represents the file UID. */ + // UID represents the file UID. @Json(name = "UID") var UID: kotlin.String? = null, - - /* GID represents the file GID. */ + // GID represents the file GID. @Json(name = "GID") var GID: kotlin.String? = null, - - /* Mode represents the FileMode of the file. */ + // Mode represents the FileMode of the file. @Json(name = "Mode") - var mode: kotlin.Int? = null - + var mode: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecLogDriver.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecLogDriver.kt index 1fef35d3..d2da8e5e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecLogDriver.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecLogDriver.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param options */ @JsonClass(generateAdapter = true) - data class TaskSpecLogDriver( - @Json(name = "Name") var name: kotlin.String? = null, - @Json(name = "Options") - var options: kotlin.collections.MutableMap? = null - + var options: kotlin.collections.MutableMap? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecNetworkAttachmentSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecNetworkAttachmentSpec.kt index 0bf34e96..9da84bd1 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecNetworkAttachmentSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecNetworkAttachmentSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param containerID ID of the container represented by this task */ @JsonClass(generateAdapter = true) - data class TaskSpecNetworkAttachmentSpec( - - /* ID of the container represented by this task */ + // ID of the container represented by this task @Json(name = "ContainerID") - var containerID: kotlin.String? = null - + var containerID: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacement.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacement.kt index 186da1f2..48ec3c98 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacement.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacement.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,23 +27,17 @@ import com.squareup.moshi.JsonClass * @param platforms Platforms stores all the platforms that the service's image can run on. This field is used in the platform filter for scheduling. If empty, then the platform filter is off, meaning there are no scheduling restrictions. */ @JsonClass(generateAdapter = true) - data class TaskSpecPlacement( - - /* An array of constraint expressions to limit the set of nodes where a task can be scheduled. Constraint expressions can either use a _match_ (`==`) or _exclude_ (`!=`) rule. Multiple constraints find nodes that satisfy every expression (AND match). Constraints can match node or Docker Engine labels as follows: node attribute | matches | example ---------------------|--------------------------------|----------------------------------------------- `node.id` | Node ID | `node.id==2ivku8v2gvtg4` `node.hostname` | Node hostname | `node.hostname!=node-2` `node.role` | Node role (`manager`/`worker`) | `node.role==manager` `node.platform.os` | Node operating system | `node.platform.os==windows` `node.platform.arch` | Node architecture | `node.platform.arch==x86_64` `node.labels` | User-defined node labels | `node.labels.security==high` `engine.labels` | Docker Engine's labels | `engine.labels.operatingsystem==ubuntu-14.04` `engine.labels` apply to Docker Engine labels like operating system, drivers, etc. Swarm administrators add `node.labels` for operational purposes by using the [`node update endpoint`](#operation/NodeUpdate). */ + // An array of constraint expressions to limit the set of nodes where a task can be scheduled. Constraint expressions can either use a _match_ (`==`) or _exclude_ (`!=`) rule. Multiple constraints find nodes that satisfy every expression (AND match). Constraints can match node or Docker Engine labels as follows: node attribute | matches | example ---------------------|--------------------------------|----------------------------------------------- `node.id` | Node ID | `node.id==2ivku8v2gvtg4` `node.hostname` | Node hostname | `node.hostname!=node-2` `node.role` | Node role (`manager`/`worker`) | `node.role==manager` `node.platform.os` | Node operating system | `node.platform.os==windows` `node.platform.arch` | Node architecture | `node.platform.arch==x86_64` `node.labels` | User-defined node labels | `node.labels.security==high` `engine.labels` | Docker Engine's labels | `engine.labels.operatingsystem==ubuntu-14.04` `engine.labels` apply to Docker Engine labels like operating system, drivers, etc. Swarm administrators add `node.labels` for operational purposes by using the [`node update endpoint`](#operation/NodeUpdate). @Json(name = "Constraints") var constraints: kotlin.collections.MutableList? = null, - - /* Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence. */ + // Preferences provide a way to make the scheduler aware of factors such as topology. They are provided in order from highest to lowest precedence. @Json(name = "Preferences") var preferences: kotlin.collections.MutableList? = null, - - /* Maximum number of replicas for per node (default value is 0, which is unlimited) */ + // Maximum number of replicas for per node (default value is 0, which is unlimited) @Json(name = "MaxReplicas") var maxReplicas: kotlin.Long? = 0L, - - /* Platforms stores all the platforms that the service's image can run on. This field is used in the platform filter for scheduling. If empty, then the platform filter is off, meaning there are no scheduling restrictions. */ + // Platforms stores all the platforms that the service's image can run on. This field is used in the platform filter for scheduling. If empty, then the platform filter is off, meaning there are no scheduling restrictions. @Json(name = "Platforms") - var platforms: kotlin.collections.MutableList? = null - + var platforms: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacementPreferencesInner.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacementPreferencesInner.kt index 7e547432..153c8988 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacementPreferencesInner.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacementPreferencesInner.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param spread */ @JsonClass(generateAdapter = true) - data class TaskSpecPlacementPreferencesInner( - @Json(name = "Spread") - var spread: TaskSpecPlacementPreferencesInnerSpread? = null - + var spread: TaskSpecPlacementPreferencesInnerSpread? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacementPreferencesInnerSpread.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacementPreferencesInnerSpread.kt index 353f7f9c..14dec45c 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacementPreferencesInnerSpread.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPlacementPreferencesInnerSpread.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param spreadDescriptor label descriptor, such as `engine.labels.az`. */ @JsonClass(generateAdapter = true) - data class TaskSpecPlacementPreferencesInnerSpread( - - /* label descriptor, such as `engine.labels.az`. */ + // label descriptor, such as `engine.labels.az`. @Json(name = "SpreadDescriptor") - var spreadDescriptor: kotlin.String? = null - + var spreadDescriptor: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPluginSpec.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPluginSpec.kt index 80a796c9..c67c19fc 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPluginSpec.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecPluginSpec.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,22 +27,16 @@ import com.squareup.moshi.JsonClass * @param pluginPrivilege */ @JsonClass(generateAdapter = true) - data class TaskSpecPluginSpec( - - /* The name or 'alias' to use for the plugin. */ + // The name or 'alias' to use for the plugin. @Json(name = "Name") var name: kotlin.String? = null, - - /* The plugin image reference to use. */ + // The plugin image reference to use. @Json(name = "Remote") var remote: kotlin.String? = null, - - /* Disable the plugin once scheduled. */ + // Disable the plugin once scheduled. @Json(name = "Disabled") var disabled: kotlin.Boolean? = null, - @Json(name = "PluginPrivilege") - var pluginPrivilege: kotlin.collections.MutableList? = null - + var pluginPrivilege: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecResources.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecResources.kt index 56783fdc..2696e48e 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecResources.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecResources.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,13 +25,9 @@ import com.squareup.moshi.JsonClass * @param reservations */ @JsonClass(generateAdapter = true) - data class TaskSpecResources( - @Json(name = "Limits") var limits: Limit? = null, - @Json(name = "Reservations") - var reservations: ResourceObject? = null - + var reservations: ResourceObject? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecRestartPolicy.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecRestartPolicy.kt index 3cfa9e08..3e5adb3d 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecRestartPolicy.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskSpecRestartPolicy.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -27,27 +27,20 @@ import com.squareup.moshi.JsonClass * @param window Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded). */ @JsonClass(generateAdapter = true) - data class TaskSpecRestartPolicy( - - /* Condition for restart. */ + // Condition for restart. @Json(name = "Condition") var condition: TaskSpecRestartPolicy.Condition? = null, - - /* Delay between restart attempts. */ + // Delay between restart attempts. @Json(name = "Delay") var delay: kotlin.Long? = null, - - /* Maximum attempts to restart a given container before giving up (default value is 0, which is ignored). */ + // Maximum attempts to restart a given container before giving up (default value is 0, which is ignored). @Json(name = "MaxAttempts") var maxAttempts: kotlin.Long? = 0L, - - /* Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded). */ + // Windows is the time window used to evaluate the restart policy (default value is 0, which is unbounded). @Json(name = "Window") - var window: kotlin.Long? = 0L - + var window: kotlin.Long? = 0L, ) { - /** * Condition for restart. * @@ -62,6 +55,6 @@ data class TaskSpecRestartPolicy( OnMinusFailure("on-failure"), @Json(name = "any") - Any("any"); + Any("any"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskState.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskState.kt index b0f9f532..cda67294 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskState.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskState.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,7 +26,6 @@ import com.squareup.moshi.JsonClass @JsonClass(generateAdapter = false) enum class TaskState(val value: kotlin.String) { - @Json(name = "new") New("new"), @@ -70,7 +69,8 @@ enum class TaskState(val value: kotlin.String) { Remove("remove"), @Json(name = "orphaned") - Orphaned("orphaned"); + Orphaned("orphaned"), + ; /** * Override [toString()] to avoid using the enum variable name as the value, and instead use @@ -90,11 +90,12 @@ enum class TaskState(val value: kotlin.String) { /** * Returns a valid [TaskState] for [data], null otherwise. */ - fun decode(data: kotlin.Any?): TaskState? = data?.let { - val normalizedData = "$it".lowercase() - values().firstOrNull { value -> - it == value || normalizedData == "$value".lowercase() + fun decode(data: kotlin.Any?): TaskState? = + data?.let { + val normalizedData = "$it".lowercase() + values().firstOrNull { value -> + it == value || normalizedData == "$value".lowercase() + } } - } } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskStatus.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskStatus.kt index 97843851..db7a025b 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskStatus.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskStatus.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,22 +28,15 @@ import com.squareup.moshi.JsonClass * @param containerStatus */ @JsonClass(generateAdapter = true) - data class TaskStatus( - @Json(name = "Timestamp") var timestamp: kotlin.String? = null, - @Json(name = "State") var state: TaskState? = null, - @Json(name = "Message") var message: kotlin.String? = null, - @Json(name = "Err") var err: kotlin.String? = null, - @Json(name = "ContainerStatus") - var containerStatus: TaskStatusContainerStatus? = null - + var containerStatus: TaskStatusContainerStatus? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskStatusContainerStatus.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskStatusContainerStatus.kt index c0caa748..3d6306f6 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskStatusContainerStatus.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/TaskStatusContainerStatus.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -26,16 +26,11 @@ import com.squareup.moshi.JsonClass * @param exitCode */ @JsonClass(generateAdapter = true) - data class TaskStatusContainerStatus( - @Json(name = "ContainerID") var containerID: kotlin.String? = null, - @Json(name = "PID") var PID: kotlin.Int? = null, - @Json(name = "ExitCode") - var exitCode: kotlin.Int? = null - + var exitCode: kotlin.Int? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ThrottleDevice.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ThrottleDevice.kt index 3eb5d45e..b5a9f291 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ThrottleDevice.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ThrottleDevice.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param rate Rate */ @JsonClass(generateAdapter = true) - data class ThrottleDevice( - - /* Device path */ + // Device path @Json(name = "Path") var path: kotlin.String? = null, - - /* Rate */ + // Rate @Json(name = "Rate") - var rate: kotlin.Long? = null - + var rate: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/UnlockKeyResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/UnlockKeyResponse.kt index dd59f516..7252fe84 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/UnlockKeyResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/UnlockKeyResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,11 +24,8 @@ import com.squareup.moshi.JsonClass * @param unlockKey The swarm's unlock key. */ @JsonClass(generateAdapter = true) - data class UnlockKeyResponse( - - /* The swarm's unlock key. */ + // The swarm's unlock key. @Json(name = "UnlockKey") - var unlockKey: kotlin.String? = null - + var unlockKey: kotlin.String? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Volume.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Volume.kt index 9ac3038c..c986185c 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Volume.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Volume.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -33,49 +33,36 @@ import com.squareup.moshi.JsonClass * @param usageData */ @JsonClass(generateAdapter = true) - data class Volume( - - /* Name of the volume. */ + // Name of the volume. @Json(name = "Name") var name: kotlin.String, - - /* Name of the volume driver used by the volume. */ + // Name of the volume driver used by the volume. @Json(name = "Driver") var driver: kotlin.String, - - /* Mount path of the volume on the host. */ + // Mount path of the volume on the host. @Json(name = "Mountpoint") var mountpoint: kotlin.String, - - /* The driver specific options used when creating the volume. */ + // The driver specific options used when creating the volume. @Json(name = "Options") var options: kotlin.collections.MutableMap?, - - /* Date/Time the volume was created. */ + // Date/Time the volume was created. @Json(name = "CreatedAt") var createdAt: kotlin.String? = null, - - /* Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. */ + // Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature. @Json(name = "Status") var status: kotlin.collections.MutableMap? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - - /* The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. */ + // The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. @Json(name = "Scope") var scope: Volume.Scope? = Scope.Local, - @Json(name = "ClusterVolume") var clusterVolume: ClusterVolume? = null, - @Json(name = "UsageData") - var usageData: VolumeUsageData? = null - + var usageData: VolumeUsageData? = null, ) { - /** * The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level. * @@ -87,6 +74,6 @@ data class Volume( Local("local"), @Json(name = "global") - Global("global"); + Global("global"), } } diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeCreateOptions.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeCreateOptions.kt index 79463983..09fa21bb 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeCreateOptions.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeCreateOptions.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -28,26 +28,19 @@ import com.squareup.moshi.JsonClass * @param clusterVolumeSpec */ @JsonClass(generateAdapter = true) - data class VolumeCreateOptions( - - /* The new volume's name. If not specified, Docker generates a name. */ + // The new volume's name. If not specified, Docker generates a name. @Json(name = "Name") var name: kotlin.String? = null, - - /* Name of the volume driver to use. */ + // Name of the volume driver to use. @Json(name = "Driver") var driver: kotlin.String? = "local", - - /* A mapping of driver options and values. These options are passed directly to the driver and are driver specific. */ + // A mapping of driver options and values. These options are passed directly to the driver and are driver specific. @Json(name = "DriverOpts") var driverOpts: kotlin.collections.MutableMap? = null, - - /* User-defined key/value metadata. */ + // User-defined key/value metadata. @Json(name = "Labels") var labels: kotlin.collections.MutableMap? = null, - @Json(name = "ClusterVolumeSpec") - var clusterVolumeSpec: ClusterVolumeSpec? = null - + var clusterVolumeSpec: ClusterVolumeSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeListResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeListResponse.kt index 6ea08c29..0292cf47 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeListResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeListResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param warnings Warnings that occurred when fetching the list of volumes. */ @JsonClass(generateAdapter = true) - data class VolumeListResponse( - - /* List of volumes */ + // List of volumes @Json(name = "Volumes") var volumes: kotlin.collections.MutableList? = null, - - /* Warnings that occurred when fetching the list of volumes. */ + // Warnings that occurred when fetching the list of volumes. @Json(name = "Warnings") - var warnings: kotlin.collections.MutableList? = null - + var warnings: kotlin.collections.MutableList? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumePruneResponse.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumePruneResponse.kt index a179e570..b5c37a0f 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumePruneResponse.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumePruneResponse.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param spaceReclaimed Disk space reclaimed in bytes */ @JsonClass(generateAdapter = true) - data class VolumePruneResponse( - - /* Volumes that were deleted */ + // Volumes that were deleted @Json(name = "VolumesDeleted") var volumesDeleted: kotlin.collections.MutableList? = null, - - /* Disk space reclaimed in bytes */ + // Disk space reclaimed in bytes @Json(name = "SpaceReclaimed") - var spaceReclaimed: kotlin.Long? = null - + var spaceReclaimed: kotlin.Long? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeUpdateRequest.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeUpdateRequest.kt index bf35e2d1..0c94e57f 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeUpdateRequest.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeUpdateRequest.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -24,10 +24,7 @@ import com.squareup.moshi.JsonClass * @param spec */ @JsonClass(generateAdapter = true) - data class VolumeUpdateRequest( - @Json(name = "Spec") - var spec: ClusterVolumeSpec? = null - + var spec: ClusterVolumeSpec? = null, ) diff --git a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeUsageData.kt b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeUsageData.kt index 914dd3b6..b9fee8d7 100644 --- a/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeUsageData.kt +++ b/api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/VolumeUsageData.kt @@ -10,7 +10,7 @@ "ArrayInDataClass", "EnumEntryName", "RemoveRedundantQualifierName", - "UnusedImport" + "UnusedImport", ) package de.gesellix.docker.remote.api @@ -25,15 +25,11 @@ import com.squareup.moshi.JsonClass * @param refCount The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available. */ @JsonClass(generateAdapter = true) - data class VolumeUsageData( - - /* Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\") */ + // Amount of disk space used by the volume (in bytes). This information is only available for volumes created with the `\"local\"` volume driver. For volumes created with other volume drivers, this field is set to `-1` (\"not available\") @Json(name = "Size") var propertySize: kotlin.Long = -1L, - - /* The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available. */ + // The number of containers referencing this volume. This field is set to `-1` if the reference-count is not available. @Json(name = "RefCount") - var refCount: kotlin.Long = -1L - + var refCount: kotlin.Long = -1L, ) diff --git a/build.gradle.kts b/build.gradle.kts index bec0ff50..eaff36e5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ plugins { id("org.jetbrains.kotlin.jvm") version "1.9.21" apply false id("com.google.devtools.ksp") version "1.9.21-1.0.16" apply false id("org.openapi.generator") version "7.1.0" apply false - id("org.jlleitschuh.gradle.ktlint") version "11.6.1" apply false + id("org.jlleitschuh.gradle.ktlint") version "12.0.3" apply false } val dependencyVersions = listOf(