Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Commit d78422f

Browse files
committed
Generate 1.34 version
1 parent 5598fc4 commit d78422f

13 files changed

+294
-12
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"extra": {
2626
"branch-alias": {
27-
"4.1.33": "4.1.33.x-dev"
27+
"4.1.34": "4.1.34.x-dev"
2828
}
2929
},
3030
"minimum-stability": "dev",

docker-swagger.yaml

Lines changed: 53 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ produces:
1919
consumes:
2020
- "application/json"
2121
- "text/plain"
22-
basePath: "/v1.33"
22+
basePath: "/v1.34"
2323
info:
2424
title: "Docker Engine API"
25-
version: "1.33"
25+
version: "1.34"
2626
x-logo:
2727
url: "https://docs.docker.com/images/logo-docker-main.png"
2828
description: |
@@ -44,19 +44,22 @@ info:
4444
4545
The API is usually changed in each release of Docker, so API calls are versioned to ensure that clients don't break.
4646
47-
For Docker Engine 17.09, the API version is 1.32. To lock to this version, you prefix the URL with `/v1.32`. For example, calling `/info` is the same as calling `/v1.32/info`.
47+
For Docker Engine 17.10, the API version is 1.33. To lock to this version, you prefix the URL with `/v1.33`. For example, calling `/info` is the same as calling `/v1.33/info`.
4848
4949
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.
5050
5151
In previous versions of Docker, it was possible to access the API without providing a version. This behaviour is now deprecated will be removed in a future version of Docker.
5252
53+
If the API version specified in the URL is not supported by the daemon, a HTTP `400 Bad Request` error message is returned.
54+
5355
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 Docker daemons.
5456
55-
This documentation is for version 1.33 of the API. Use this table to find documentation for previous versions of the API:
57+
This documentation is for version 1.34 of the API. Use this table to find documentation for previous versions of the API:
5658
5759
Docker version | API version | Changes
5860
----------------|-------------|---------
59-
17.09.x | [1.31](https://docs.docker.com/engine/api/v1.32/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-32-api-changes)
61+
17.10.x | [1.33](https://docs.docker.com/engine/api/v1.33/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-33-api-changes)
62+
17.09.x | [1.32](https://docs.docker.com/engine/api/v1.32/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-32-api-changes)
6063
17.07.x | [1.31](https://docs.docker.com/engine/api/v1.31/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-31-api-changes)
6164
17.06.x | [1.30](https://docs.docker.com/engine/api/v1.30/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-30-api-changes)
6265
17.05.x | [1.29](https://docs.docker.com/engine/api/v1.29/) | [API changes](https://docs.docker.com/engine/api/version-history/#v1-29-api-changes)
@@ -719,7 +722,15 @@ definitions:
719722
description: "Gives the container full access to the host."
720723
PublishAllPorts:
721724
type: "boolean"
722-
description: "Allocates a random host port for all of a container's exposed ports."
725+
description: |
726+
Allocates an ephemeral host port for all of a container's
727+
exposed ports.
728+
729+
Ports are de-allocated when the container stops and allocated when the container starts.
730+
The allocated port might be changed when restarting the container.
731+
732+
The port is selected from the ephemeral port range that depends on the kernel.
733+
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
723734
ReadonlyRootfs:
724735
type: "boolean"
725736
description: "Mount the container's root filesystem as read only."
@@ -3041,6 +3052,24 @@ definitions:
30413052
PublishedPort:
30423053
description: "The port on the swarm hosts."
30433054
type: "integer"
3055+
PublishMode:
3056+
description: |
3057+
The mode in which port is published.
3058+
3059+
<p><br /></p>
3060+
3061+
- "ingress" makes the target port accessible on on every node,
3062+
regardless of whether there is a task for the service running on
3063+
that node or not.
3064+
- "host" bypasses the routing mesh and publish the port directly on
3065+
the swarm node where that service is running.
3066+
3067+
type: "string"
3068+
enum:
3069+
- "ingress"
3070+
- "host"
3071+
default: "ingress"
3072+
example: "ingress"
30443073

30453074
EndpointSpec:
30463075
description: "Properties that can be configured to access and load balance a service."
@@ -5701,6 +5730,13 @@ paths:
57015730
description: "Exit code of the container"
57025731
type: "integer"
57035732
x-nullable: false
5733+
Error:
5734+
description: "container waiting error, if any"
5735+
type: "object"
5736+
properties:
5737+
Message:
5738+
description: "Details of an error"
5739+
type: "string"
57045740
404:
57055741
description: "no such container"
57065742
schema:
@@ -6158,6 +6194,11 @@ paths:
61586194
61596195
Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a `https://` prefix and a `/v1/` suffix even though Docker will prefer to use the v2 registry API.
61606196
type: "string"
6197+
- name: "platform"
6198+
in: "query"
6199+
description: "Platform in the format os[/arch[/variant]]"
6200+
type: "string"
6201+
default: ""
61616202
responses:
61626203
200:
61636204
description: "no error"
@@ -6239,6 +6280,11 @@ paths:
62396280
in: "header"
62406281
description: "A base64-encoded auth configuration. [See the authentication section for details.](#section/Authentication)"
62416282
type: "string"
6283+
- name: "platform"
6284+
in: "query"
6285+
description: "Platform in the format os[/arch[/variant]]"
6286+
type: "string"
6287+
default: ""
62426288
tags: ["Image"]
62436289
/images/{name}/json:
62446290
get:
@@ -9928,4 +9974,4 @@ paths:
99289974
description: "server error"
99299975
schema:
99309976
$ref: "#/definitions/ErrorResponse"
9931-
tags: ["Session (experimental)"]
9977+
tags: ["Session (experimental)"]

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static function create($httpClient = null)
3434
if (null === $httpClient) {
3535
$httpClient = \Http\Discovery\HttpClientDiscovery::find();
3636
$plugins = [];
37-
$uri = \Http\Discovery\UriFactoryDiscovery::find()->createUri('v1.33');
37+
$uri = \Http\Discovery\UriFactoryDiscovery::find()->createUri('v1.34');
3838
$plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri);
3939
$httpClient = new \Http\Client\Common\PluginClient($httpClient, $plugins);
4040
}

src/Model/ContainersIdWaitPostResponse200.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ class ContainersIdWaitPostResponse200
1818
* @var int
1919
*/
2020
protected $statusCode;
21+
/**
22+
* container waiting error, if any.
23+
*
24+
* @var ContainersIdWaitPostResponse200Error
25+
*/
26+
protected $error;
2127

2228
/**
2329
* Exit code of the container.
@@ -42,4 +48,28 @@ public function setStatusCode(?int $statusCode): self
4248

4349
return $this;
4450
}
51+
52+
/**
53+
* container waiting error, if any.
54+
*
55+
* @return ContainersIdWaitPostResponse200Error
56+
*/
57+
public function getError(): ?ContainersIdWaitPostResponse200Error
58+
{
59+
return $this->error;
60+
}
61+
62+
/**
63+
* container waiting error, if any.
64+
*
65+
* @param ContainersIdWaitPostResponse200Error $error
66+
*
67+
* @return self
68+
*/
69+
public function setError(?ContainersIdWaitPostResponse200Error $error): self
70+
{
71+
$this->error = $error;
72+
73+
return $this;
74+
}
4575
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
/*
6+
* This file has been auto generated by Jane,
7+
*
8+
* Do no edit it directly.
9+
*/
10+
11+
namespace Docker\API\Model;
12+
13+
class ContainersIdWaitPostResponse200Error
14+
{
15+
/**
16+
* Details of an error.
17+
*
18+
* @var string
19+
*/
20+
protected $message;
21+
22+
/**
23+
* Details of an error.
24+
*
25+
* @return string
26+
*/
27+
public function getMessage(): ?string
28+
{
29+
return $this->message;
30+
}
31+
32+
/**
33+
* Details of an error.
34+
*
35+
* @param string $message
36+
*
37+
* @return self
38+
*/
39+
public function setMessage(?string $message): self
40+
{
41+
$this->message = $message;
42+
43+
return $this;
44+
}
45+
}

src/Model/EndpointPortConfig.php

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ class EndpointPortConfig
3232
* @var int
3333
*/
3434
protected $publishedPort;
35+
/**
36+
* The mode in which port is published.
37+
38+
<p><br /></p>
39+
40+
- "ingress" makes the target port accessible on on every node,
41+
regardless of whether there is a task for the service running on
42+
that node or not.
43+
- "host" bypasses the routing mesh and publish the port directly on
44+
the swarm node where that service is running.
45+
46+
*
47+
* @var string
48+
*/
49+
protected $publishMode;
3550

3651
/**
3752
* @return string
@@ -120,4 +135,46 @@ public function setPublishedPort(?int $publishedPort): self
120135

121136
return $this;
122137
}
138+
139+
/**
140+
* The mode in which port is published.
141+
142+
<p><br /></p>
143+
144+
- "ingress" makes the target port accessible on on every node,
145+
regardless of whether there is a task for the service running on
146+
that node or not.
147+
- "host" bypasses the routing mesh and publish the port directly on
148+
the swarm node where that service is running.
149+
150+
*
151+
* @return string
152+
*/
153+
public function getPublishMode(): ?string
154+
{
155+
return $this->publishMode;
156+
}
157+
158+
/**
159+
* The mode in which port is published.
160+
161+
<p><br /></p>
162+
163+
- "ingress" makes the target port accessible on on every node,
164+
regardless of whether there is a task for the service running on
165+
that node or not.
166+
- "host" bypasses the routing mesh and publish the port directly on
167+
the swarm node where that service is running.
168+
169+
*
170+
* @param string $publishMode
171+
*
172+
* @return self
173+
*/
174+
public function setPublishMode(?string $publishMode): self
175+
{
176+
$this->publishMode = $publishMode;
177+
178+
return $this;
179+
}
123180
}

src/Model/HostConfig.php

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,15 @@ class HostConfig
360360
*/
361361
protected $privileged;
362362
/**
363-
* Allocates a random host port for all of a container's exposed ports.
363+
* Allocates an ephemeral host port for all of a container's.
364+
exposed ports.
365+
366+
Ports are de-allocated when the container stops and allocated when the container starts.
367+
The allocated port might be changed when restarting the container.
368+
369+
The port is selected from the ephemeral port range that depends on the kernel.
370+
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
371+
364372
*
365373
* @var bool
366374
*/
@@ -1763,7 +1771,15 @@ public function setPrivileged(?bool $privileged): self
17631771
}
17641772

17651773
/**
1766-
* Allocates a random host port for all of a container's exposed ports.
1774+
* Allocates an ephemeral host port for all of a container's.
1775+
exposed ports.
1776+
1777+
Ports are de-allocated when the container stops and allocated when the container starts.
1778+
The allocated port might be changed when restarting the container.
1779+
1780+
The port is selected from the ephemeral port range that depends on the kernel.
1781+
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
1782+
17671783
*
17681784
* @return bool
17691785
*/
@@ -1773,7 +1789,15 @@ public function getPublishAllPorts(): ?bool
17731789
}
17741790

17751791
/**
1776-
* Allocates a random host port for all of a container's exposed ports.
1792+
* Allocates an ephemeral host port for all of a container's.
1793+
exposed ports.
1794+
1795+
Ports are de-allocated when the container stops and allocated when the container starts.
1796+
The allocated port might be changed when restarting the container.
1797+
1798+
The port is selected from the ephemeral port range that depends on the kernel.
1799+
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
1800+
17771801
*
17781802
* @param bool $publishAllPorts
17791803
*

0 commit comments

Comments
 (0)