Skip to content

Commit 0983de5

Browse files
committed
Update API generated code (last update for Docker Engine API 1.41)
1 parent e306d1a commit 0983de5

40 files changed

+200
-221
lines changed

src/Client.php

Lines changed: 35 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ public function containerList(array $queryParameters = [], string $fetch = self:
5757
}
5858

5959
/**
60-
* @param \Docker\API\Model\ContainersCreatePostBody|null $requestBody
61-
* @param array $queryParameters {
60+
* @param array $queryParameters {
6261
*
6362
* @var string $name Assign the specified name to the container. Must match
6463
* `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`.
@@ -356,9 +355,8 @@ public function containerKill(string $id, array $queryParameters = [], string $f
356355
* Change various configuration options of a container without having to
357356
* recreate it.
358357
*
359-
* @param string $id ID or name of the container
360-
* @param \Docker\API\Model\ContainersIdUpdatePostBody|null $requestBody
361-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
358+
* @param string $id ID or name of the container
359+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
362360
*
363361
* @throws \Docker\API\Exception\ContainerUpdateNotFoundException
364362
* @throws \Docker\API\Exception\ContainerUpdateInternalServerErrorException
@@ -1083,8 +1081,7 @@ public function imagePrune(array $queryParameters = [], string $fetch = self::FE
10831081
* Validate credentials for a registry and, if available, get an identity
10841082
* token for accessing the registry without password.
10851083
*
1086-
* @param \Docker\API\Model\AuthConfig|null $requestBody
1087-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1084+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
10881085
*
10891086
* @throws \Docker\API\Exception\SystemAuthInternalServerErrorException
10901087
*
@@ -1140,8 +1137,7 @@ public function systemPingHead(string $fetch = self::FETCH_OBJECT)
11401137
}
11411138

11421139
/**
1143-
* @param \Docker\API\Model\ContainerConfig|null $requestBody
1144-
* @param array $queryParameters {
1140+
* @param array $queryParameters {
11451141
*
11461142
* @var string $container The ID or name of the container to commit
11471143
* @var string $repo Repository name for the created image
@@ -1323,9 +1319,8 @@ public function imageLoad($requestBody = null, array $queryParameters = [], stri
13231319
/**
13241320
* Run a command inside a running container.
13251321
*
1326-
* @param string $id ID or name of container
1327-
* @param \Docker\API\Model\ContainersIdExecPostBody|null $requestBody
1328-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1322+
* @param string $id ID or name of container
1323+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
13291324
*
13301325
* @throws \Docker\API\Exception\ContainerExecNotFoundException
13311326
* @throws \Docker\API\Exception\ContainerExecConflictException
@@ -1343,9 +1338,8 @@ public function containerExec(string $id, Model\ContainersIdExecPostBody $reques
13431338
* returns immediately after starting the command. Otherwise, it sets up an
13441339
* interactive session with the command.
13451340
*
1346-
* @param string $id Exec instance ID
1347-
* @param \Docker\API\Model\ExecIdStartPostBody|null $requestBody
1348-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1341+
* @param string $id Exec instance ID
1342+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
13491343
*
13501344
* @return \Psr\Http\Message\ResponseInterface|null
13511345
*/
@@ -1422,8 +1416,7 @@ public function volumeList(array $queryParameters = [], string $fetch = self::FE
14221416
}
14231417

14241418
/**
1425-
* @param \Docker\API\Model\VolumesCreatePostBody|null $requestBody
1426-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1419+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
14271420
*
14281421
* @throws \Docker\API\Exception\VolumeCreateInternalServerErrorException
14291422
*
@@ -1568,8 +1561,7 @@ public function networkInspect(string $id, array $queryParameters = [], string $
15681561
}
15691562

15701563
/**
1571-
* @param \Docker\API\Model\NetworksCreatePostBody|null $requestBody
1572-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1564+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
15731565
*
15741566
* @throws \Docker\API\Exception\NetworkCreateForbiddenException
15751567
* @throws \Docker\API\Exception\NetworkCreateNotFoundException
@@ -1583,10 +1575,9 @@ public function networkCreate(Model\NetworksCreatePostBody $requestBody = null,
15831575
}
15841576

15851577
/**
1586-
* @param string $id Network ID or name
1587-
* @param \Docker\API\Model\NetworksIdConnectPostBody|null $requestBody
1588-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1589-
* @param array $accept Accept content header application/json|text/plain
1578+
* @param string $id Network ID or name
1579+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1580+
* @param array $accept Accept content header application/json|text/plain
15901581
*
15911582
* @throws \Docker\API\Exception\NetworkConnectForbiddenException
15921583
* @throws \Docker\API\Exception\NetworkConnectNotFoundException
@@ -1600,10 +1591,9 @@ public function networkConnect(string $id, Model\NetworksIdConnectPostBody $requ
16001591
}
16011592

16021593
/**
1603-
* @param string $id Network ID or name
1604-
* @param \Docker\API\Model\NetworksIdDisconnectPostBody|null $requestBody
1605-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1606-
* @param array $accept Accept content header application/json|text/plain
1594+
* @param string $id Network ID or name
1595+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1596+
* @param array $accept Accept content header application/json|text/plain
16071597
*
16081598
* @throws \Docker\API\Exception\NetworkDisconnectForbiddenException
16091599
* @throws \Docker\API\Exception\NetworkDisconnectNotFoundException
@@ -1954,9 +1944,8 @@ public function nodeInspect(string $id, string $fetch = self::FETCH_OBJECT, arra
19541944
}
19551945

19561946
/**
1957-
* @param string $id The ID of the node
1958-
* @param \Docker\API\Model\NodeSpec|null $requestBody
1959-
* @param array $queryParameters {
1947+
* @param string $id The ID of the node
1948+
* @param array $queryParameters {
19601949
*
19611950
* @var int $version The version number of the node object being updated. This is required
19621951
* to avoid conflicting writes.
@@ -1994,9 +1983,8 @@ public function swarmInspect(string $fetch = self::FETCH_OBJECT, array $accept =
19941983
}
19951984

19961985
/**
1997-
* @param \Docker\API\Model\SwarmInitPostBody|null $requestBody
1998-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1999-
* @param array $accept Accept content header application/json|text/plain
1986+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1987+
* @param array $accept Accept content header application/json|text/plain
20001988
*
20011989
* @throws \Docker\API\Exception\SwarmInitBadRequestException
20021990
* @throws \Docker\API\Exception\SwarmInitInternalServerErrorException
@@ -2010,9 +1998,8 @@ public function swarmInit(Model\SwarmInitPostBody $requestBody = null, string $f
20101998
}
20111999

20122000
/**
2013-
* @param \Docker\API\Model\SwarmJoinPostBody|null $requestBody
2014-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
2015-
* @param array $accept Accept content header application/json|text/plain
2001+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
2002+
* @param array $accept Accept content header application/json|text/plain
20162003
*
20172004
* @throws \Docker\API\Exception\SwarmJoinBadRequestException
20182005
* @throws \Docker\API\Exception\SwarmJoinInternalServerErrorException
@@ -2047,8 +2034,7 @@ public function swarmLeave(array $queryParameters = [], string $fetch = self::FE
20472034
}
20482035

20492036
/**
2050-
* @param \Docker\API\Model\SwarmSpec|null $requestBody
2051-
* @param array $queryParameters {
2037+
* @param array $queryParameters {
20522038
*
20532039
* @var int $version The version number of the swarm object being updated. This is
20542040
* required to avoid conflicting writes.
@@ -2086,8 +2072,7 @@ public function swarmUnlockkey(string $fetch = self::FETCH_OBJECT, array $accept
20862072
}
20872073

20882074
/**
2089-
* @param \Docker\API\Model\SwarmUnlockPostBody|null $requestBody
2090-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
2075+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
20912076
*
20922077
* @throws \Docker\API\Exception\SwarmUnlockInternalServerErrorException
20932078
* @throws \Docker\API\Exception\SwarmUnlockServiceUnavailableException
@@ -2129,8 +2114,7 @@ public function serviceList(array $queryParameters = [], string $fetch = self::F
21292114
}
21302115

21312116
/**
2132-
* @param \Docker\API\Model\ServicesCreatePostBody|null $requestBody
2133-
* @param array $headerParameters {
2117+
* @param array $headerParameters {
21342118
*
21352119
* @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private
21362120
* registries.
@@ -2193,9 +2177,8 @@ public function serviceInspect(string $id, array $queryParameters = [], string $
21932177
}
21942178

21952179
/**
2196-
* @param string $id ID or name of service
2197-
* @param \Docker\API\Model\ServicesIdUpdatePostBody|null $requestBody
2198-
* @param array $queryParameters {
2180+
* @param string $id ID or name of service
2181+
* @param array $queryParameters {
21992182
*
22002183
* @var int $version The version number of the service object being updated. This is
22012184
* required to avoid conflicting writes.
@@ -2376,8 +2359,7 @@ public function secretList(array $queryParameters = [], string $fetch = self::FE
23762359
}
23772360

23782361
/**
2379-
* @param \Docker\API\Model\SecretsCreatePostBody|null $requestBody
2380-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
2362+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
23812363
*
23822364
* @throws \Docker\API\Exception\SecretCreateConflictException
23832365
* @throws \Docker\API\Exception\SecretCreateInternalServerErrorException
@@ -2421,9 +2403,8 @@ public function secretInspect(string $id, string $fetch = self::FETCH_OBJECT)
24212403
}
24222404

24232405
/**
2424-
* @param string $id The ID or name of the secret
2425-
* @param \Docker\API\Model\SecretSpec|null $requestBody
2426-
* @param array $queryParameters {
2406+
* @param string $id The ID or name of the secret
2407+
* @param array $queryParameters {
24272408
*
24282409
* @var int $version The version number of the secret object being updated. This is
24292410
* required to avoid conflicting writes.
@@ -2473,8 +2454,7 @@ public function configList(array $queryParameters = [], string $fetch = self::FE
24732454
}
24742455

24752456
/**
2476-
* @param \Docker\API\Model\ConfigsCreatePostBody|null $requestBody
2477-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
2457+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
24782458
*
24792459
* @throws \Docker\API\Exception\ConfigCreateConflictException
24802460
* @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException
@@ -2518,9 +2498,8 @@ public function configInspect(string $id, string $fetch = self::FETCH_OBJECT)
25182498
}
25192499

25202500
/**
2521-
* @param string $id The ID or name of the config
2522-
* @param \Docker\API\Model\ConfigSpec|null $requestBody
2523-
* @param array $queryParameters {
2501+
* @param string $id The ID or name of the config
2502+
* @param array $queryParameters {
25242503
*
25252504
* @var int $version The version number of the config object being updated. This is
25262505
* required to avoid conflicting writes.
@@ -2573,7 +2552,7 @@ public static function create($httpClient = null, array $additionalPlugins = [],
25732552
if (null === $httpClient) {
25742553
$httpClient = \Http\Discovery\Psr18ClientDiscovery::find();
25752554
$plugins = [];
2576-
$uri = \Http\Discovery\Psr17FactoryDiscovery::findUrlFactory()->createUri('/v1.41');
2555+
$uri = \Http\Discovery\Psr17FactoryDiscovery::findUriFactory()->createUri('/v1.41');
25772556
$plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri);
25782557
if (\count($additionalPlugins) > 0) {
25792558
$plugins = array_merge($plugins, $additionalPlugins);

src/Model/ConfigSpec.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function isInitialized($property): bool
2424
/**
2525
* User-defined key/value metadata.
2626
*
27-
* @var string[]|null
27+
* @var array<string, string>|null
2828
*/
2929
protected $labels;
3030
/**
@@ -63,7 +63,7 @@ public function setName(?string $name): self
6363
/**
6464
* User-defined key/value metadata.
6565
*
66-
* @return string[]|null
66+
* @return array<string, string>|null
6767
*/
6868
public function getLabels(): ?iterable
6969
{
@@ -73,7 +73,7 @@ public function getLabels(): ?iterable
7373
/**
7474
* User-defined key/value metadata.
7575
*
76-
* @param string[]|null $labels
76+
* @param array<string, string>|null $labels
7777
*/
7878
public function setLabels(?iterable $labels): self
7979
{

src/Model/ConfigsCreatePostBody.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function isInitialized($property): bool
2424
/**
2525
* User-defined key/value metadata.
2626
*
27-
* @var string[]|null
27+
* @var array<string, string>|null
2828
*/
2929
protected $labels;
3030
/**
@@ -63,7 +63,7 @@ public function setName(?string $name): self
6363
/**
6464
* User-defined key/value metadata.
6565
*
66-
* @return string[]|null
66+
* @return array<string, string>|null
6767
*/
6868
public function getLabels(): ?iterable
6969
{
@@ -73,7 +73,7 @@ public function getLabels(): ?iterable
7373
/**
7474
* User-defined key/value metadata.
7575
*
76-
* @param string[]|null $labels
76+
* @param array<string, string>|null $labels
7777
*/
7878
public function setLabels(?iterable $labels): self
7979
{

src/Model/ContainerConfig.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function isInitialized($property): bool
5656
*
5757
* `{"<port>/<tcp|udp|sctp>": {}}`
5858
*
59-
* @var ContainerConfigExposedPortsItem[]|null
59+
* @var array<string, ContainerConfigExposedPortsItem>|null
6060
*/
6161
protected $exposedPorts;
6262
/**
@@ -113,7 +113,7 @@ public function isInitialized($property): bool
113113
* An object mapping mount point paths inside the container to empty
114114
* objects.
115115
*
116-
* @var ContainerConfigVolumesItem[]|null
116+
* @var array<string, ContainerConfigVolumesItem>|null
117117
*/
118118
protected $volumes;
119119
/**
@@ -153,7 +153,7 @@ public function isInitialized($property): bool
153153
/**
154154
* User-defined key/value metadata.
155155
*
156-
* @var string[]|null
156+
* @var array<string, string>|null
157157
*/
158158
protected $labels;
159159
/**
@@ -294,7 +294,7 @@ public function setAttachStderr(?bool $attachStderr): self
294294
*
295295
* `{"<port>/<tcp|udp|sctp>": {}}`
296296
*
297-
* @return ContainerConfigExposedPortsItem[]|null
297+
* @return array<string, ContainerConfigExposedPortsItem>|null
298298
*/
299299
public function getExposedPorts(): ?iterable
300300
{
@@ -306,7 +306,7 @@ public function getExposedPorts(): ?iterable
306306
*
307307
* `{"<port>/<tcp|udp|sctp>": {}}`
308308
*
309-
* @param ContainerConfigExposedPortsItem[]|null $exposedPorts
309+
* @param array<string, ContainerConfigExposedPortsItem>|null $exposedPorts
310310
*/
311311
public function setExposedPorts(?iterable $exposedPorts): self
312312
{
@@ -484,7 +484,7 @@ public function setImage(?string $image): self
484484
* An object mapping mount point paths inside the container to empty
485485
* objects.
486486
*
487-
* @return ContainerConfigVolumesItem[]|null
487+
* @return array<string, ContainerConfigVolumesItem>|null
488488
*/
489489
public function getVolumes(): ?iterable
490490
{
@@ -495,7 +495,7 @@ public function getVolumes(): ?iterable
495495
* An object mapping mount point paths inside the container to empty
496496
* objects.
497497
*
498-
* @param ContainerConfigVolumesItem[]|null $volumes
498+
* @param array<string, ContainerConfigVolumesItem>|null $volumes
499499
*/
500500
public function setVolumes(?iterable $volumes): self
501501
{
@@ -619,7 +619,7 @@ public function setOnBuild(?array $onBuild): self
619619
/**
620620
* User-defined key/value metadata.
621621
*
622-
* @return string[]|null
622+
* @return array<string, string>|null
623623
*/
624624
public function getLabels(): ?iterable
625625
{
@@ -629,7 +629,7 @@ public function getLabels(): ?iterable
629629
/**
630630
* User-defined key/value metadata.
631631
*
632-
* @param string[]|null $labels
632+
* @param array<string, string>|null $labels
633633
*/
634634
public function setLabels(?iterable $labels): self
635635
{

0 commit comments

Comments
 (0)