Skip to content

Commit d813a30

Browse files
committed
Create a mutable model
1 parent 5efb76d commit d813a30

File tree

185 files changed

+1075
-1069
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

185 files changed

+1075
-1069
lines changed

api-model-v1-41/openapi-generator-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ artifactVersion: 1.41
1313
outputDir: api-model-v1-41
1414
dateLibrary: java8
1515
moshiCodeGen: true
16+
modelMutable: true

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Address.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import com.squareup.moshi.JsonClass
2323
data class Address(
2424
/* IP address. */
2525
@Json(name = "Addr")
26-
val addr: kotlin.String? = null,
26+
var addr: kotlin.String? = null,
2727
/* Mask length of the IP address. */
2828
@Json(name = "PrefixLen")
29-
val prefixLen: kotlin.Int? = null
29+
var prefixLen: kotlin.Int? = null
3030
)

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/AuthConfig.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ import com.squareup.moshi.JsonClass
2424
@JsonClass(generateAdapter = true)
2525
data class AuthConfig(
2626
@Json(name = "username")
27-
val username: kotlin.String? = null,
27+
var username: kotlin.String? = null,
2828
@Json(name = "password")
29-
val password: kotlin.String? = null,
29+
var password: kotlin.String? = null,
3030
@Json(name = "email")
31-
val email: kotlin.String? = null,
31+
var email: kotlin.String? = null,
3232
@Json(name = "serveraddress")
33-
val serveraddress: kotlin.String? = null
33+
var serveraddress: kotlin.String? = null
3434
)

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildCache.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,26 @@ import com.squareup.moshi.JsonClass
3030
@JsonClass(generateAdapter = true)
3131
data class BuildCache(
3232
@Json(name = "ID")
33-
val ID: kotlin.String? = null,
33+
var ID: kotlin.String? = null,
3434
@Json(name = "Parent")
35-
val parent: kotlin.String? = null,
35+
var parent: kotlin.String? = null,
3636
@Json(name = "Type")
37-
val type: kotlin.String? = null,
37+
var type: kotlin.String? = null,
3838
@Json(name = "Description")
39-
val description: kotlin.String? = null,
39+
var description: kotlin.String? = null,
4040
@Json(name = "InUse")
41-
val inUse: kotlin.Boolean? = null,
41+
var inUse: kotlin.Boolean? = null,
4242
@Json(name = "Shared")
43-
val shared: kotlin.Boolean? = null,
43+
var shared: kotlin.Boolean? = null,
4444
/* Amount of disk space used by the build cache (in bytes). */
4545
@Json(name = "Size")
46-
val size: kotlin.Int? = null,
46+
var size: kotlin.Int? = null,
4747
/* Date and time at which the build cache was created in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */
4848
@Json(name = "CreatedAt")
49-
val createdAt: kotlin.String? = null,
49+
var createdAt: kotlin.String? = null,
5050
/* 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. */
5151
@Json(name = "LastUsedAt")
52-
val lastUsedAt: kotlin.String? = null,
52+
var lastUsedAt: kotlin.String? = null,
5353
@Json(name = "UsageCount")
54-
val usageCount: kotlin.Int? = null
54+
var usageCount: kotlin.Int? = null
5555
)

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildInfo.kt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ import com.squareup.moshi.JsonClass
2828
@JsonClass(generateAdapter = true)
2929
data class BuildInfo(
3030
@Json(name = "id")
31-
val id: kotlin.String? = null,
31+
var id: kotlin.String? = null,
3232
@Json(name = "stream")
33-
val stream: kotlin.String? = null,
33+
var stream: kotlin.String? = null,
3434
@Json(name = "error")
35-
val error: kotlin.String? = null,
35+
var error: kotlin.String? = null,
3636
@Json(name = "errorDetail")
37-
val errorDetail: ErrorDetail? = null,
37+
var errorDetail: ErrorDetail? = null,
3838
@Json(name = "status")
39-
val status: kotlin.String? = null,
39+
var status: kotlin.String? = null,
4040
@Json(name = "progress")
41-
val progress: kotlin.String? = null,
41+
var progress: kotlin.String? = null,
4242
@Json(name = "progressDetail")
43-
val progressDetail: ProgressDetail? = null,
43+
var progressDetail: ProgressDetail? = null,
4444
@Json(name = "aux")
45-
val aux: ImageID? = null
45+
var aux: ImageID? = null
4646
)

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/BuildPruneResponse.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import com.squareup.moshi.JsonClass
2222
@JsonClass(generateAdapter = true)
2323
data class BuildPruneResponse(
2424
@Json(name = "CachesDeleted")
25-
val cachesDeleted: kotlin.collections.List<kotlin.String>? = null,
25+
var cachesDeleted: kotlin.collections.List<kotlin.String>? = null,
2626
/* Disk space reclaimed in bytes */
2727
@Json(name = "SpaceReclaimed")
28-
val spaceReclaimed: kotlin.Long? = null
28+
var spaceReclaimed: kotlin.Long? = null
2929
)

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ClusterInfo.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,29 @@ import com.squareup.moshi.JsonClass
3131
data class ClusterInfo(
3232
/* The ID of the swarm. */
3333
@Json(name = "ID")
34-
val ID: kotlin.String? = null,
34+
var ID: kotlin.String? = null,
3535
@Json(name = "Version")
36-
val version: ObjectVersion? = null,
36+
var version: ObjectVersion? = null,
3737
/* Date and time at which the swarm was initialised in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */
3838
@Json(name = "CreatedAt")
39-
val createdAt: kotlin.String? = null,
39+
var createdAt: kotlin.String? = null,
4040
/* Date and time at which the swarm was last updated in [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds. */
4141
@Json(name = "UpdatedAt")
42-
val updatedAt: kotlin.String? = null,
42+
var updatedAt: kotlin.String? = null,
4343
@Json(name = "Spec")
44-
val spec: SwarmSpec? = null,
44+
var spec: SwarmSpec? = null,
4545
@Json(name = "TLSInfo")
46-
val tlSInfo: TLSInfo? = null,
46+
var tlSInfo: TLSInfo? = null,
4747
/* Whether there is currently a root CA rotation in progress for the swarm */
4848
@Json(name = "RootRotationInProgress")
49-
val rootRotationInProgress: kotlin.Boolean? = null,
49+
var rootRotationInProgress: kotlin.Boolean? = null,
5050
/* 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. */
5151
@Json(name = "DataPathPort")
52-
val dataPathPort: kotlin.Int? = null,
52+
var dataPathPort: kotlin.Int? = null,
5353
/* Default Address Pool specifies default subnet pools for global scope networks. */
5454
@Json(name = "DefaultAddrPool")
55-
val defaultAddrPool: kotlin.collections.List<kotlin.String>? = null,
55+
var defaultAddrPool: kotlin.collections.List<kotlin.String>? = null,
5656
/* SubnetSize specifies the subnet size of the networks created from the default subnet pool. */
5757
@Json(name = "SubnetSize")
58-
val subnetSize: kotlin.Int? = null
58+
var subnetSize: kotlin.Int? = null
5959
)

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Commit.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import com.squareup.moshi.JsonClass
2323
data class Commit(
2424
/* Actual commit ID of external tool. */
2525
@Json(name = "ID")
26-
val ID: kotlin.String? = null,
26+
var ID: kotlin.String? = null,
2727
/* Commit ID of external tool expected by dockerd as set at build time. */
2828
@Json(name = "Expected")
29-
val expected: kotlin.String? = null
29+
var expected: kotlin.String? = null
3030
)

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/Config.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import com.squareup.moshi.JsonClass
2525
@JsonClass(generateAdapter = true)
2626
data class Config(
2727
@Json(name = "ID")
28-
val ID: kotlin.String? = null,
28+
var ID: kotlin.String? = null,
2929
@Json(name = "Version")
30-
val version: ObjectVersion? = null,
30+
var version: ObjectVersion? = null,
3131
@Json(name = "CreatedAt")
32-
val createdAt: kotlin.String? = null,
32+
var createdAt: kotlin.String? = null,
3333
@Json(name = "UpdatedAt")
34-
val updatedAt: kotlin.String? = null,
34+
var updatedAt: kotlin.String? = null,
3535
@Json(name = "Spec")
36-
val spec: ConfigSpec? = null
36+
var spec: ConfigSpec? = null
3737
)

api-model-v1-41/src/main/kotlin/de/gesellix/docker/remote/api/ConfigSpec.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import com.squareup.moshi.JsonClass
2525
data class ConfigSpec(
2626
/* User-defined name of the config. */
2727
@Json(name = "Name")
28-
val name: kotlin.String? = null,
28+
var name: kotlin.String? = null,
2929
/* User-defined key/value metadata. */
3030
@Json(name = "Labels")
31-
val labels: kotlin.collections.Map<kotlin.String, kotlin.String>? = null,
31+
var labels: kotlin.collections.Map<kotlin.String, kotlin.String>? = null,
3232
/* Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5)) config data. */
3333
@Json(name = "Data")
34-
val data: kotlin.String? = null,
34+
var data: kotlin.String? = null,
3535
@Json(name = "Templating")
36-
val templating: Driver? = null
36+
var templating: Driver? = null
3737
)

0 commit comments

Comments
 (0)