Skip to content

Commit e306d1a

Browse files
committed
Update API generated code
1 parent 0582ff7 commit e306d1a

File tree

317 files changed

+2365
-2169
lines changed

Some content is hidden

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

317 files changed

+2365
-2169
lines changed

src/Client.php

Lines changed: 263 additions & 263 deletions
Large diffs are not rendered by default.

src/Endpoint/BuildPrune.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ class BuildPrune extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc
1111
/**
1212
* @param array $queryParameters {
1313
*
14-
* @var int $keep-storage Amount of disk space in bytes to keep for cache
15-
* @var bool $all Remove all types of build cache
16-
* @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
17-
* process on the list of build cache objects.
14+
* @var int $keep-storage Amount of disk space in bytes to keep for cache
15+
* @var bool $all Remove all types of build cache
16+
* @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
17+
* process on the list of build cache objects.
1818
*
1919
* Available filters:
2020
*
@@ -68,13 +68,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
6868
}
6969

7070
/**
71-
* {@inheritdoc}
72-
*
7371
* @throws \Docker\API\Exception\BuildPruneInternalServerErrorException
7472
*
7573
* @return \Docker\API\Model\BuildPrunePostResponse200|null
7674
*/
77-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
75+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
7876
{
7977
$status = $response->getStatusCode();
8078
$body = (string) $response->getBody();

src/Endpoint/ConfigCreate.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class ConfigCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D
88
{
99
use \Docker\API\Runtime\Client\EndpointTrait;
1010

11-
public function __construct(?\Docker\API\Model\ConfigsCreatePostBody $requestBody = null)
11+
public function __construct(\Docker\API\Model\ConfigsCreatePostBody $requestBody = null)
1212
{
1313
$this->body = $requestBody;
1414
}
@@ -38,15 +38,13 @@ public function getExtraHeaders(): array
3838
}
3939

4040
/**
41-
* {@inheritdoc}
42-
*
4341
* @throws \Docker\API\Exception\ConfigCreateConflictException
4442
* @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException
4543
* @throws \Docker\API\Exception\ConfigCreateServiceUnavailableException
4644
*
4745
* @return \Docker\API\Model\IdResponse|null
4846
*/
49-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
47+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
5048
{
5149
$status = $response->getStatusCode();
5250
$body = (string) $response->getBody();

src/Endpoint/ConfigDelete.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ public function getExtraHeaders(): array
3838
}
3939

4040
/**
41-
* {@inheritdoc}
42-
*
4341
* @throws \Docker\API\Exception\ConfigDeleteNotFoundException
4442
* @throws \Docker\API\Exception\ConfigDeleteInternalServerErrorException
4543
* @throws \Docker\API\Exception\ConfigDeleteServiceUnavailableException
4644
*
4745
* @return null
4846
*/
49-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
47+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
5048
{
5149
$status = $response->getStatusCode();
5250
$body = (string) $response->getBody();

src/Endpoint/ConfigInspect.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,13 @@ public function getExtraHeaders(): array
3838
}
3939

4040
/**
41-
* {@inheritdoc}
42-
*
4341
* @throws \Docker\API\Exception\ConfigInspectNotFoundException
4442
* @throws \Docker\API\Exception\ConfigInspectInternalServerErrorException
4543
* @throws \Docker\API\Exception\ConfigInspectServiceUnavailableException
4644
*
4745
* @return \Docker\API\Model\Config|null
4846
*/
49-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
47+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
5048
{
5149
$status = $response->getStatusCode();
5250
$body = (string) $response->getBody();

src/Endpoint/ConfigList.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class ConfigList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc
1111
/**
1212
* @param array $queryParameters {
1313
*
14-
* @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
15-
* process on the configs list.
14+
* @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
15+
* process on the configs list.
1616
*
1717
* Available filters:
1818
*
@@ -60,14 +60,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
6060
}
6161

6262
/**
63-
* {@inheritdoc}
64-
*
6563
* @throws \Docker\API\Exception\ConfigListInternalServerErrorException
6664
* @throws \Docker\API\Exception\ConfigListServiceUnavailableException
6765
*
6866
* @return \Docker\API\Model\Config[]|null
6967
*/
70-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
68+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
7169
{
7270
$status = $response->getStatusCode();
7371
$body = (string) $response->getBody();

src/Endpoint/ConfigUpdate.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ class ConfigUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D
1414
* @param string $id The ID or name of the config
1515
* @param array $queryParameters {
1616
*
17-
* @var int $version The version number of the config object being updated. This is
18-
* required to avoid conflicting writes.
17+
* @var int $version The version number of the config object being updated. This is
18+
* required to avoid conflicting writes.
1919
*
2020
* }
2121
*
2222
* @param array $accept Accept content header application/json|text/plain
2323
*/
24-
public function __construct(string $id, ?\Docker\API\Model\ConfigSpec $requestBody = null, array $queryParameters = [], array $accept = [])
24+
public function __construct(string $id, \Docker\API\Model\ConfigSpec $requestBody = null, array $queryParameters = [], array $accept = [])
2525
{
2626
$this->id = $id;
2727
$this->body = $requestBody;
@@ -72,16 +72,14 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
7272
}
7373

7474
/**
75-
* {@inheritdoc}
76-
*
7775
* @throws \Docker\API\Exception\ConfigUpdateBadRequestException
7876
* @throws \Docker\API\Exception\ConfigUpdateNotFoundException
7977
* @throws \Docker\API\Exception\ConfigUpdateInternalServerErrorException
8078
* @throws \Docker\API\Exception\ConfigUpdateServiceUnavailableException
8179
*
8280
* @return null
8381
*/
84-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
82+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
8583
{
8684
$status = $response->getStatusCode();
8785
$body = (string) $response->getBody();

src/Endpoint/ContainerArchive.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class ContainerArchive extends \Docker\API\Runtime\Client\BaseEndpoint implement
1616
* @param string $id ID or name of the container
1717
* @param array $queryParameters {
1818
*
19-
* @var string $path Resource in the container’s filesystem to archive.
20-
* }
19+
* @var string $path Resource in the container’s filesystem to archive.
20+
* }
2121
*
2222
* @param array $accept Accept content header application/x-tar|application/json
2323
*/
@@ -64,13 +64,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
6464
}
6565

6666
/**
67-
* {@inheritdoc}
68-
*
6967
* @throws \Docker\API\Exception\ContainerArchiveNotFoundException
7068
*
7169
* @return null
7270
*/
73-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
71+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
7472
{
7573
$status = $response->getStatusCode();
7674
$body = (string) $response->getBody();

src/Endpoint/ContainerArchiveInfo.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class ContainerArchiveInfo extends \Docker\API\Runtime\Client\BaseEndpoint imple
1818
* @param string $id ID or name of the container
1919
* @param array $queryParameters {
2020
*
21-
* @var string $path Resource in the container’s filesystem to archive.
22-
* }
21+
* @var string $path Resource in the container’s filesystem to archive.
22+
* }
2323
*
2424
* @param array $accept Accept content header application/json|text/plain
2525
*/
@@ -66,15 +66,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
6666
}
6767

6868
/**
69-
* {@inheritdoc}
70-
*
7169
* @throws \Docker\API\Exception\ContainerArchiveInfoBadRequestException
7270
* @throws \Docker\API\Exception\ContainerArchiveInfoNotFoundException
7371
* @throws \Docker\API\Exception\ContainerArchiveInfoInternalServerErrorException
7472
*
7573
* @return null
7674
*/
77-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
75+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
7876
{
7977
$status = $response->getStatusCode();
8078
$body = (string) $response->getBody();

src/Endpoint/ContainerAttach.php

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -108,22 +108,22 @@ class ContainerAttach extends \Docker\API\Runtime\Client\BaseEndpoint implements
108108
* @param string $id ID or name of the container
109109
* @param array $queryParameters {
110110
*
111-
* @var string $detachKeys Override the key sequence for detaching a container.Format is a single
112-
* character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`,
113-
* `@`, `^`, `[`, `,` or `_`.
114-
* @var bool $logs Replay previous logs from the container.
111+
* @var string $detachKeys Override the key sequence for detaching a container.Format is a single
112+
* character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`,
113+
* `@`, `^`, `[`, `,` or `_`.
114+
* @var bool $logs Replay previous logs from the container.
115115
*
116116
* This is useful for attaching to a container that has started and you
117117
* want to output everything since the container started.
118118
*
119119
* If `stream` is also enabled, once all the previous output has been
120120
* returned, it will seamlessly transition into streaming current
121121
* output.
122-
* @var bool $stream stream attached streams from the time the request was made onwards
123-
* @var bool $stdin Attach to `stdin`
124-
* @var bool $stdout Attach to `stdout`
125-
* @var bool $stderr Attach to `stderr`
126-
* }
122+
* @var bool $stream stream attached streams from the time the request was made onwards
123+
* @var bool $stdin Attach to `stdin`
124+
* @var bool $stdout Attach to `stdout`
125+
* @var bool $stderr Attach to `stderr`
126+
* }
127127
*
128128
* @param array $accept Accept content header application/vnd.docker.raw-stream|application/json
129129
*/
@@ -175,13 +175,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
175175
}
176176

177177
/**
178-
* {@inheritdoc}
179-
*
180178
* @throws \Docker\API\Exception\ContainerAttachNotFoundException
181179
*
182180
* @return null
183181
*/
184-
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
182+
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
185183
{
186184
$status = $response->getStatusCode();
187185
$body = (string) $response->getBody();

0 commit comments

Comments
 (0)