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

Commit c67660f

Browse files
committed
generate sources from openapi spec via gradle plugin
1 parent 2adc5b9 commit c67660f

File tree

13 files changed

+106
-17
lines changed

13 files changed

+106
-17
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,6 @@ docs/ImageRootFS.md
5858
docs/ImageSearchResponseItem.md
5959
docs/ImageSummary.md
6060
docs/IndexInfo.md
61-
docs/InlineObject.md
62-
docs/InlineObject1.md
63-
docs/InlineObject2.md
6461
docs/InlineResponse400.md
6562
docs/JoinTokens.md
6663
docs/Limit.md
@@ -74,8 +71,11 @@ docs/MountVolumeOptions.md
7471
docs/MountVolumeOptionsDriverConfig.md
7572
docs/Network.md
7673
docs/NetworkAttachmentConfig.md
74+
docs/NetworkConnectRequest.md
7775
docs/NetworkContainer.md
76+
docs/NetworkCreateRequest.md
7877
docs/NetworkCreateResponse.md
78+
docs/NetworkDisconnectRequest.md
7979
docs/NetworkPruneResponse.md
8080
docs/NetworkSettings.md
8181
docs/NetworkingConfig.md
@@ -99,6 +99,7 @@ docs/PluginDevice.md
9999
docs/PluginEnv.md
100100
docs/PluginInterfaceType.md
101101
docs/PluginMount.md
102+
docs/PluginPrivilege.md
102103
docs/PluginPrivilegeItem.md
103104
docs/PluginSettings.md
104105
docs/PluginsInfo.md
@@ -244,9 +245,6 @@ src/main/kotlin/de/gesellix/docker/engine/model/ImageRootFS.kt
244245
src/main/kotlin/de/gesellix/docker/engine/model/ImageSearchResponseItem.kt
245246
src/main/kotlin/de/gesellix/docker/engine/model/ImageSummary.kt
246247
src/main/kotlin/de/gesellix/docker/engine/model/IndexInfo.kt
247-
src/main/kotlin/de/gesellix/docker/engine/model/InlineObject.kt
248-
src/main/kotlin/de/gesellix/docker/engine/model/InlineObject1.kt
249-
src/main/kotlin/de/gesellix/docker/engine/model/InlineObject2.kt
250248
src/main/kotlin/de/gesellix/docker/engine/model/InlineResponse400.kt
251249
src/main/kotlin/de/gesellix/docker/engine/model/JoinTokens.kt
252250
src/main/kotlin/de/gesellix/docker/engine/model/Limit.kt
@@ -260,8 +258,11 @@ src/main/kotlin/de/gesellix/docker/engine/model/MountVolumeOptions.kt
260258
src/main/kotlin/de/gesellix/docker/engine/model/MountVolumeOptionsDriverConfig.kt
261259
src/main/kotlin/de/gesellix/docker/engine/model/Network.kt
262260
src/main/kotlin/de/gesellix/docker/engine/model/NetworkAttachmentConfig.kt
261+
src/main/kotlin/de/gesellix/docker/engine/model/NetworkConnectRequest.kt
263262
src/main/kotlin/de/gesellix/docker/engine/model/NetworkContainer.kt
263+
src/main/kotlin/de/gesellix/docker/engine/model/NetworkCreateRequest.kt
264264
src/main/kotlin/de/gesellix/docker/engine/model/NetworkCreateResponse.kt
265+
src/main/kotlin/de/gesellix/docker/engine/model/NetworkDisconnectRequest.kt
265266
src/main/kotlin/de/gesellix/docker/engine/model/NetworkPruneResponse.kt
266267
src/main/kotlin/de/gesellix/docker/engine/model/NetworkSettings.kt
267268
src/main/kotlin/de/gesellix/docker/engine/model/NetworkingConfig.kt
@@ -285,6 +286,7 @@ src/main/kotlin/de/gesellix/docker/engine/model/PluginDevice.kt
285286
src/main/kotlin/de/gesellix/docker/engine/model/PluginEnv.kt
286287
src/main/kotlin/de/gesellix/docker/engine/model/PluginInterfaceType.kt
287288
src/main/kotlin/de/gesellix/docker/engine/model/PluginMount.kt
289+
src/main/kotlin/de/gesellix/docker/engine/model/PluginPrivilege.kt
288290
src/main/kotlin/de/gesellix/docker/engine/model/PluginPrivilegeItem.kt
289291
src/main/kotlin/de/gesellix/docker/engine/model/PluginSettings.kt
290292
src/main/kotlin/de/gesellix/docker/engine/model/PluginsInfo.kt

engine-api-model/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,6 @@ Class | Method | HTTP request | Description
207207
- [de.gesellix.docker.engine.model.ImageSearchResponseItem](docs/ImageSearchResponseItem.md)
208208
- [de.gesellix.docker.engine.model.ImageSummary](docs/ImageSummary.md)
209209
- [de.gesellix.docker.engine.model.IndexInfo](docs/IndexInfo.md)
210-
- [de.gesellix.docker.engine.model.InlineObject](docs/InlineObject.md)
211-
- [de.gesellix.docker.engine.model.InlineObject1](docs/InlineObject1.md)
212-
- [de.gesellix.docker.engine.model.InlineObject2](docs/InlineObject2.md)
213210
- [de.gesellix.docker.engine.model.InlineResponse400](docs/InlineResponse400.md)
214211
- [de.gesellix.docker.engine.model.JoinTokens](docs/JoinTokens.md)
215212
- [de.gesellix.docker.engine.model.Limit](docs/Limit.md)
@@ -223,8 +220,11 @@ Class | Method | HTTP request | Description
223220
- [de.gesellix.docker.engine.model.MountVolumeOptionsDriverConfig](docs/MountVolumeOptionsDriverConfig.md)
224221
- [de.gesellix.docker.engine.model.Network](docs/Network.md)
225222
- [de.gesellix.docker.engine.model.NetworkAttachmentConfig](docs/NetworkAttachmentConfig.md)
223+
- [de.gesellix.docker.engine.model.NetworkConnectRequest](docs/NetworkConnectRequest.md)
226224
- [de.gesellix.docker.engine.model.NetworkContainer](docs/NetworkContainer.md)
225+
- [de.gesellix.docker.engine.model.NetworkCreateRequest](docs/NetworkCreateRequest.md)
227226
- [de.gesellix.docker.engine.model.NetworkCreateResponse](docs/NetworkCreateResponse.md)
227+
- [de.gesellix.docker.engine.model.NetworkDisconnectRequest](docs/NetworkDisconnectRequest.md)
228228
- [de.gesellix.docker.engine.model.NetworkPruneResponse](docs/NetworkPruneResponse.md)
229229
- [de.gesellix.docker.engine.model.NetworkSettings](docs/NetworkSettings.md)
230230
- [de.gesellix.docker.engine.model.NetworkingConfig](docs/NetworkingConfig.md)
@@ -248,6 +248,7 @@ Class | Method | HTTP request | Description
248248
- [de.gesellix.docker.engine.model.PluginEnv](docs/PluginEnv.md)
249249
- [de.gesellix.docker.engine.model.PluginInterfaceType](docs/PluginInterfaceType.md)
250250
- [de.gesellix.docker.engine.model.PluginMount](docs/PluginMount.md)
251+
- [de.gesellix.docker.engine.model.PluginPrivilege](docs/PluginPrivilege.md)
251252
- [de.gesellix.docker.engine.model.PluginPrivilegeItem](docs/PluginPrivilegeItem.md)
252253
- [de.gesellix.docker.engine.model.PluginSettings](docs/PluginSettings.md)
253254
- [de.gesellix.docker.engine.model.PluginsInfo](docs/PluginsInfo.md)

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2977,6 +2977,7 @@ definitions:
29772977
Describes a permission accepted by the user upon installing the
29782978
plugin.
29792979
type: "object"
2980+
title: "PluginPrivilege"
29802981
properties:
29812982
Name:
29822983
type: "string"
@@ -9151,6 +9152,7 @@ paths:
91519152
required: true
91529153
schema:
91539154
type: "object"
9155+
title: "NetworkCreateRequest"
91549156
required: ["Name"]
91559157
properties:
91569158
Name:
@@ -9261,6 +9263,7 @@ paths:
92619263
required: true
92629264
schema:
92639265
type: "object"
9266+
title: "NetworkConnectRequest"
92649267
properties:
92659268
Container:
92669269
type: "string"
@@ -9307,6 +9310,7 @@ paths:
93079310
required: true
93089311
schema:
93099312
type: "object"
9313+
title: "NetworkDisconnectRequest"
93109314
properties:
93119315
Container:
93129316
type: "string"
@@ -9484,6 +9488,7 @@ paths:
94849488
Describes a permission accepted by the user upon installing the
94859489
plugin.
94869490
type: "object"
9491+
title: "PluginPrivilege"
94879492
properties:
94889493
Name:
94899494
type: "string"
@@ -9668,6 +9673,7 @@ paths:
96689673
Describes a permission accepted by the user upon installing the
96699674
plugin.
96709675
type: "object"
9676+
title: "PluginPrivilege"
96719677
properties:
96729678
Name:
96739679
type: "string"

engine-api-model/docs/InlineObject1.md renamed to engine-api-model/docs/NetworkConnectRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# InlineObject1
2+
# NetworkConnectRequest
33

44
## Properties
55
Name | Type | Description | Notes
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
2+
# NetworkCreateRequest
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**name** | **kotlin.String** | The network's name. |
8+
**checkDuplicate** | **kotlin.Boolean** | Check for networks with duplicate names. Since Network is primarily keyed based on a random ID and not on the name, and network name is strictly a user-friendly alias to the network which is uniquely identified using ID, there is no guaranteed way to check for duplicates. CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions. | [optional]
9+
**driver** | **kotlin.String** | Name of the network driver plugin to use. | [optional]
10+
**`internal`** | **kotlin.Boolean** | Restrict external access to the network. | [optional]
11+
**attachable** | **kotlin.Boolean** | Globally scoped network is manually attachable by regular containers from workers in swarm mode. | [optional]
12+
**ingress** | **kotlin.Boolean** | Ingress network is the network which provides the routing-mesh in swarm mode. | [optional]
13+
**IPAM** | [**IPAM**](IPAM.md) | | [optional]
14+
**enableIPv6** | **kotlin.Boolean** | Enable IPv6 on the network. | [optional]
15+
**options** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | Network specific options to be used by the drivers. | [optional]
16+
**labels** | **kotlin.collections.Map<kotlin.String, kotlin.String>** | User-defined key/value metadata. | [optional]
17+
18+
19+

engine-api-model/docs/InlineObject2.md renamed to engine-api-model/docs/NetworkDisconnectRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# InlineObject2
2+
# NetworkDisconnectRequest
33

44
## Properties
55
Name | Type | Description | Notes

engine-api-model/docs/InlineObject.md renamed to engine-api-model/docs/PluginPrivilege.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# InlineObject
2+
# PluginPrivilege
33

44
## Properties
55
Name | Type | Description | Notes

engine-api-model/docs/TaskSpecPluginSpec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**name** | **kotlin.String** | The name or 'alias' to use for the plugin. | [optional]
88
**remote** | **kotlin.String** | The plugin image reference to use. | [optional]
99
**disabled** | **kotlin.Boolean** | Disable the plugin once scheduled. | [optional]
10-
**pluginPrivilege** | [**kotlin.collections.List<InlineObject>**](InlineObject.md) | | [optional]
10+
**pluginPrivilege** | [**kotlin.collections.List<PluginPrivilege>**](PluginPrivilege.md) | | [optional]
1111

1212

1313

engine-api-model/src/main/kotlin/de/gesellix/docker/engine/model/InlineObject1.kt renamed to engine-api-model/src/main/kotlin/de/gesellix/docker/engine/model/NetworkConnectRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import com.squareup.moshi.JsonClass
2020
* @param endpointConfig
2121
*/
2222
@JsonClass(generateAdapter = true)
23-
data class InlineObject1(
23+
data class NetworkConnectRequest(
2424
/* The ID or name of the container to connect to the network. */
2525
@Json(name = "Container")
2626
val container: kotlin.String? = null,
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/**
2+
* Docker Engine API
3+
* The Engine API is an HTTP API served by Docker Engine. It is the API the Docker client uses to communicate with the Engine, so everything the Docker client can do can be done with the API. Most of the client's commands map directly to API endpoints (e.g. `docker ps` is `GET /containers/json`). The notable exception is running containers, which consists of several API calls. # Errors The API uses standard HTTP status codes to indicate the success or failure of the API call. The body of the response will be JSON in the following format: ``` { \"message\": \"page not found\" } ``` # Versioning The API is usually changed in each release, so API calls are versioned to ensure that clients don't break. To lock to a specific version of the API, you prefix the URL with its version, for example, call `/v1.30/info` to use the v1.30 version of the `/info` endpoint. If the API version specified in the URL is not supported by the daemon, a HTTP `400 Bad Request` error message is returned. If you omit the version-prefix, the current version of the API (v1.41) is used. For example, calling `/info` is the same as calling `/v1.41/info`. Using the API without a version-prefix is deprecated and will be removed in a future release. Engine releases in the near future should support this version of the API, so your client will continue to work even if it is talking to a newer Engine. The API uses an open schema model, which means server may add extra properties to responses. Likewise, the server will ignore any extra query parameters and request body properties. When you write clients, you need to ignore additional properties in responses to ensure they do not break when talking to newer daemons. # Authentication Authentication for registries is handled client side. The client has to send authentication details to various endpoints that need to communicate with registries, such as `POST /images/(name)/push`. These are sent as `X-Registry-Auth` header as a [base64url encoded](https://tools.ietf.org/html/rfc4648#section-5) (JSON) string with the following structure: ``` { \"username\": \"string\", \"password\": \"string\", \"email\": \"string\", \"serveraddress\": \"string\" } ``` The `serveraddress` is a domain/IP without a protocol. Throughout this structure, double quotes are required. If you have already got an identity token from the [`/auth` endpoint](#operation/SystemAuth), you can just pass this instead of credentials: ``` { \"identitytoken\": \"9cbaf023786cd7...\" } ```
4+
*
5+
* The version of the OpenAPI document: 1.41
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
package de.gesellix.docker.engine.model
13+
14+
import com.squareup.moshi.Json
15+
import com.squareup.moshi.JsonClass
16+
17+
/**
18+
*
19+
* @param name The network's name.
20+
* @param checkDuplicate Check for networks with duplicate names. Since Network is primarily keyed based on a random ID and not on the name, and network name is strictly a user-friendly alias to the network which is uniquely identified using ID, there is no guaranteed way to check for duplicates. CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions.
21+
* @param driver Name of the network driver plugin to use.
22+
* @param `internal` Restrict external access to the network.
23+
* @param attachable Globally scoped network is manually attachable by regular containers from workers in swarm mode.
24+
* @param ingress Ingress network is the network which provides the routing-mesh in swarm mode.
25+
* @param IPAM
26+
* @param enableIPv6 Enable IPv6 on the network.
27+
* @param options Network specific options to be used by the drivers.
28+
* @param labels User-defined key/value metadata.
29+
*/
30+
@JsonClass(generateAdapter = true)
31+
data class NetworkCreateRequest(
32+
/* The network's name. */
33+
@Json(name = "Name")
34+
val name: kotlin.String,
35+
/* Check for networks with duplicate names. Since Network is primarily keyed based on a random ID and not on the name, and network name is strictly a user-friendly alias to the network which is uniquely identified using ID, there is no guaranteed way to check for duplicates. CheckDuplicate is there to provide a best effort checking of any networks which has the same name but it is not guaranteed to catch all name collisions. */
36+
@Json(name = "CheckDuplicate")
37+
val checkDuplicate: kotlin.Boolean? = null,
38+
/* Name of the network driver plugin to use. */
39+
@Json(name = "Driver")
40+
val driver: kotlin.String? = null,
41+
/* Restrict external access to the network. */
42+
@Json(name = "Internal")
43+
val `internal`: kotlin.Boolean? = null,
44+
/* Globally scoped network is manually attachable by regular containers from workers in swarm mode. */
45+
@Json(name = "Attachable")
46+
val attachable: kotlin.Boolean? = null,
47+
/* Ingress network is the network which provides the routing-mesh in swarm mode. */
48+
@Json(name = "Ingress")
49+
val ingress: kotlin.Boolean? = null,
50+
@Json(name = "IPAM")
51+
val IPAM: IPAM? = null,
52+
/* Enable IPv6 on the network. */
53+
@Json(name = "EnableIPv6")
54+
val enableIPv6: kotlin.Boolean? = null,
55+
/* Network specific options to be used by the drivers. */
56+
@Json(name = "Options")
57+
val options: kotlin.collections.Map<kotlin.String, kotlin.String>? = null,
58+
/* User-defined key/value metadata. */
59+
@Json(name = "Labels")
60+
val labels: kotlin.collections.Map<kotlin.String, kotlin.String>? = null
61+
)

0 commit comments

Comments
 (0)