Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

Commit ecc2a56

Browse files
committed
generate api model with a patched version of the v1.41 api schema
1 parent e363d60 commit ecc2a56

File tree

234 files changed

+2414
-14013
lines changed

Some content is hidden

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

234 files changed

+2414
-14013
lines changed

engine-api-model/.openapi-generator/FILES

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ docs/ContainerCreateResponse.md
1414
docs/ContainerInspectResponse.md
1515
docs/ContainerPruneResponse.md
1616
docs/ContainerState.md
17+
docs/ContainerSummary.md
18+
docs/ContainerSummaryHostConfig.md
19+
docs/ContainerSummaryNetworkSettings.md
1720
docs/ContainerTopResponse.md
1821
docs/ContainerUpdateResponse.md
1922
docs/ContainerWaitResponse.md
@@ -197,6 +200,9 @@ src/main/kotlin/de/gesellix/docker/engine/model/ContainerCreateResponse.kt
197200
src/main/kotlin/de/gesellix/docker/engine/model/ContainerInspectResponse.kt
198201
src/main/kotlin/de/gesellix/docker/engine/model/ContainerPruneResponse.kt
199202
src/main/kotlin/de/gesellix/docker/engine/model/ContainerState.kt
203+
src/main/kotlin/de/gesellix/docker/engine/model/ContainerSummary.kt
204+
src/main/kotlin/de/gesellix/docker/engine/model/ContainerSummaryHostConfig.kt
205+
src/main/kotlin/de/gesellix/docker/engine/model/ContainerSummaryNetworkSettings.kt
200206
src/main/kotlin/de/gesellix/docker/engine/model/ContainerTopResponse.kt
201207
src/main/kotlin/de/gesellix/docker/engine/model/ContainerUpdateResponse.kt
202208
src/main/kotlin/de/gesellix/docker/engine/model/ContainerWaitResponse.kt

engine-api-model/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# de.gesellix.docker.engine.client - Kotlin client library for Docker Engine API
22

3+
## Generate/update api sources
4+
5+
The config from `openapi-generator-config.yaml` will be used via Gradle plugin:
6+
7+
```shell
8+
./gradlew clean updateApiModelSource publishToMavenLocal -x signDockerApiModelPublication -x signDockerEnginePublication
9+
```
10+
11+
Using the official OpenApi generator works like below. Please note that some customizations
12+
from the Gradle build script will be missing:
13+
14+
```shell
15+
docker run --rm -it \
16+
-v "${PWD}:/local" -w /local \
17+
openapitools/openapi-generator-cli generate \
18+
-c openapi-generator-config.yaml
19+
```
20+
321
## Requires
422

523
* Kotlin 1.4.30
@@ -145,6 +163,9 @@ Class | Method | HTTP request | Description
145163
- [de.gesellix.docker.engine.model.ContainerInspectResponse](docs/ContainerInspectResponse.md)
146164
- [de.gesellix.docker.engine.model.ContainerPruneResponse](docs/ContainerPruneResponse.md)
147165
- [de.gesellix.docker.engine.model.ContainerState](docs/ContainerState.md)
166+
- [de.gesellix.docker.engine.model.ContainerSummary](docs/ContainerSummary.md)
167+
- [de.gesellix.docker.engine.model.ContainerSummaryHostConfig](docs/ContainerSummaryHostConfig.md)
168+
- [de.gesellix.docker.engine.model.ContainerSummaryNetworkSettings](docs/ContainerSummaryNetworkSettings.md)
148169
- [de.gesellix.docker.engine.model.ContainerTopResponse](docs/ContainerTopResponse.md)
149170
- [de.gesellix.docker.engine.model.ContainerUpdateResponse](docs/ContainerUpdateResponse.md)
150171
- [de.gesellix.docker.engine.model.ContainerWaitResponse](docs/ContainerWaitResponse.md)

engine-api-model/docker-engine-api-v1.41.yaml

Lines changed: 66 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ definitions:
16161616
type: "string"
16171617
RepoDigests:
16181618
type: "array"
1619-
x-nullable: false
1619+
x-nullable: true
16201620
items:
16211621
type: "string"
16221622
Created:
@@ -1633,7 +1633,7 @@ definitions:
16331633
x-nullable: false
16341634
Labels:
16351635
type: "object"
1636-
x-nullable: false
1636+
x-nullable: true
16371637
additionalProperties:
16381638
type: "string"
16391639
Containers:
@@ -1706,7 +1706,7 @@ definitions:
17061706
Labels:
17071707
type: "object"
17081708
description: "User-defined key/value metadata."
1709-
x-nullable: false
1709+
x-nullable: true
17101710
additionalProperties:
17111711
type: "string"
17121712
Scope:
@@ -1719,6 +1719,7 @@ definitions:
17191719
enum: ["local", "global"]
17201720
Options:
17211721
type: "object"
1722+
x-nullable: true
17221723
description: |
17231724
The driver specific options used when creating the volume.
17241725
additionalProperties:
@@ -4022,73 +4023,71 @@ definitions:
40224023
Warning: "unable to pin image doesnotexist:latest to digest: image library/doesnotexist:latest not found"
40234024

40244025
ContainerSummary:
4025-
type: "array"
4026-
items:
4027-
type: "object"
4028-
properties:
4029-
Id:
4030-
description: "The ID of this container"
4031-
type: "string"
4032-
x-go-name: "ID"
4033-
Names:
4034-
description: "The names that this container has been given"
4035-
type: "array"
4036-
items:
4037-
type: "string"
4038-
Image:
4039-
description: "The name of the image used when creating this container"
4040-
type: "string"
4041-
ImageID:
4042-
description: "The ID of the image that this container was created from"
4026+
type: "object"
4027+
properties:
4028+
Id:
4029+
description: "The ID of this container"
4030+
type: "string"
4031+
x-go-name: "ID"
4032+
Names:
4033+
description: "The names that this container has been given"
4034+
type: "array"
4035+
items:
40434036
type: "string"
4044-
Command:
4045-
description: "Command to run when starting the container"
4037+
Image:
4038+
description: "The name of the image used when creating this container"
4039+
type: "string"
4040+
ImageID:
4041+
description: "The ID of the image that this container was created from"
4042+
type: "string"
4043+
Command:
4044+
description: "Command to run when starting the container"
4045+
type: "string"
4046+
Created:
4047+
description: "When the container was created"
4048+
type: "integer"
4049+
format: "int64"
4050+
Ports:
4051+
description: "The ports exposed by this container"
4052+
type: "array"
4053+
items:
4054+
$ref: "#/definitions/Port"
4055+
SizeRw:
4056+
description: "The size of files that have been created or changed by this container"
4057+
type: "integer"
4058+
format: "int64"
4059+
SizeRootFs:
4060+
description: "The total size of all the files in this container"
4061+
type: "integer"
4062+
format: "int64"
4063+
Labels:
4064+
description: "User-defined key/value metadata."
4065+
type: "object"
4066+
additionalProperties:
40464067
type: "string"
4047-
Created:
4048-
description: "When the container was created"
4049-
type: "integer"
4050-
format: "int64"
4051-
Ports:
4052-
description: "The ports exposed by this container"
4053-
type: "array"
4054-
items:
4055-
$ref: "#/definitions/Port"
4056-
SizeRw:
4057-
description: "The size of files that have been created or changed by this container"
4058-
type: "integer"
4059-
format: "int64"
4060-
SizeRootFs:
4061-
description: "The total size of all the files in this container"
4062-
type: "integer"
4063-
format: "int64"
4064-
Labels:
4065-
description: "User-defined key/value metadata."
4066-
type: "object"
4067-
additionalProperties:
4068+
State:
4069+
description: "The state of this container (e.g. `Exited`)"
4070+
type: "string"
4071+
Status:
4072+
description: "Additional human-readable status of this container (e.g. `Exit 0`)"
4073+
type: "string"
4074+
HostConfig:
4075+
type: "object"
4076+
properties:
4077+
NetworkMode:
40684078
type: "string"
4069-
State:
4070-
description: "The state of this container (e.g. `Exited`)"
4071-
type: "string"
4072-
Status:
4073-
description: "Additional human-readable status of this container (e.g. `Exit 0`)"
4074-
type: "string"
4075-
HostConfig:
4076-
type: "object"
4077-
properties:
4078-
NetworkMode:
4079-
type: "string"
4080-
NetworkSettings:
4081-
description: "A summary of the container's network settings"
4082-
type: "object"
4083-
properties:
4084-
Networks:
4085-
type: "object"
4086-
additionalProperties:
4087-
$ref: "#/definitions/EndpointSettings"
4088-
Mounts:
4089-
type: "array"
4090-
items:
4091-
$ref: "#/definitions/Mount"
4079+
NetworkSettings:
4080+
description: "A summary of the container's network settings"
4081+
type: "object"
4082+
properties:
4083+
Networks:
4084+
type: "object"
4085+
additionalProperties:
4086+
$ref: "#/definitions/EndpointSettings"
4087+
Mounts:
4088+
type: "array"
4089+
items:
4090+
$ref: "#/definitions/Mount"
40924091

40934092
Driver:
40944093
description: "Driver represents a driver (network, logging, secrets)."

engine-api-model/docs/ContainerChangeResponseItem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**path** | **kotlin.String** | Path to file that has changed |
8-
**kind** | **kotlin.Int** | Kind of change |
7+
**path** | **kotlin.String** | Path to file that has changed |
8+
**kind** | **kotlin.Int** | Kind of change |
99

1010

1111

engine-api-model/docs/ContainerCreateResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**id** | **kotlin.String** | The ID of the created container |
8-
**warnings** | **kotlin.collections.List<kotlin.String>** | Warnings encountered when creating the container |
7+
**id** | **kotlin.String** | The ID of the created container |
8+
**warnings** | **kotlin.collections.List<kotlin.String>** | Warnings encountered when creating the container |
99

1010

1111

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
# ContainerSummary
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**id** | **kotlin.String** | The ID of this container | [optional]
8+
**names** | **kotlin.collections.List<kotlin.String>** | The names that this container has been given | [optional]
9+
**image** | **kotlin.String** | The name of the image used when creating this container | [optional]
10+
**imageID** | **kotlin.String** | The ID of the image that this container was created from | [optional]
11+
**command** | **kotlin.String** | Command to run when starting the container | [optional]
12+
**created** | **kotlin.Long** | When the container was created | [optional]
13+
**ports** | [**kotlin.collections.List<Port>**](Port.md) | The ports exposed by this container | [optional]
14+
**sizeRw** | **kotlin.Long** | The size of files that have been created or changed by this container | [optional]
15+
**sizeRootFs** | **kotlin.Long** | The total size of all the files in this container | [optional]
16+
**labels** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | User-defined key/value metadata. | [optional]
17+
**state** | **kotlin.String** | The state of this container (e.g. `Exited`) | [optional]
18+
**status** | **kotlin.String** | Additional human-readable status of this container (e.g. `Exit 0`) | [optional]
19+
**hostConfig** | [**ContainerSummaryHostConfig**](ContainerSummaryHostConfig.md) | | [optional]
20+
**networkSettings** | [**ContainerSummaryNetworkSettings**](ContainerSummaryNetworkSettings.md) | | [optional]
21+
**mounts** | [**kotlin.collections.List<Mount>**](Mount.md) | | [optional]
22+
23+
24+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# ContainerSummaryHostConfig
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**networkMode** | **kotlin.String** | | [optional]
8+
9+
10+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
# ContainerSummaryNetworkSettings
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**networks** | [**kotlin.collections.Map<kotlin.String, EndpointSettings>**](EndpointSettings.md) | | [optional]
8+
9+
10+

engine-api-model/docs/ContainerWaitResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**statusCode** | **kotlin.Int** | Exit code of the container |
7+
**statusCode** | **kotlin.Int** | Exit code of the container |
88
**error** | [**ContainerWaitResponseError**](ContainerWaitResponseError.md) | | [optional]
99

1010

engine-api-model/docs/DistributionInspectResponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**descriptor** | [**DistributionInspectResponseDescriptor**](DistributionInspectResponseDescriptor.md) | |
8-
**platforms** | [**kotlin.collections.List<DistributionInspectResponsePlatforms>**](DistributionInspectResponsePlatforms.md) | An array containing all platforms supported by the image. |
7+
**descriptor** | [**DistributionInspectResponseDescriptor**](DistributionInspectResponseDescriptor.md) | |
8+
**platforms** | [**kotlin.collections.List<DistributionInspectResponsePlatforms>**](DistributionInspectResponsePlatforms.md) | An array containing all platforms supported by the image. |
99

1010

1111

0 commit comments

Comments
 (0)