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

Commit 6db2bbe

Browse files
author
Jeremy Leherpeur
committed
Add 1.40 api version
1 parent 6591301 commit 6db2bbe

File tree

119 files changed

+2768
-520
lines changed

Some content is hidden

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

119 files changed

+2768
-520
lines changed

docker-swagger.yaml

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

src/Client.php

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

src/ClientAsync.php

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

src/Endpoint/BuildPrune.php

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@
1212

1313
class BuildPrune extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\AmpArtaxEndpoint, \Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint
1414
{
15+
/**
16+
* @param array $queryParameters {
17+
*
18+
* @var int $keep-storage Amount of disk space in bytes to keep for cache
19+
* @var bool $all Remove all types of build cache
20+
* @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to process on the list of build cache objects. Available filters:
21+
- `until=<duration>`: duration relative to daemon's time, during which build cache was not used, in Go's duration format (e.g., '24h')
22+
- `id=<id>`
23+
- `parent=<id>`
24+
- `type=<string>`
25+
- `description=<string>`
26+
- `inuse`
27+
- `shared`
28+
- `private`
29+
30+
* }
31+
*/
32+
public function __construct(array $queryParameters = [])
33+
{
34+
$this->queryParameters = $queryParameters;
35+
}
36+
1537
use \Jane\OpenApiRuntime\Client\AmpArtaxEndpointTrait, \Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait;
1638

1739
public function getMethod(): string
@@ -34,12 +56,25 @@ public function getExtraHeaders(): array
3456
return ['Accept' => ['application/json']];
3557
}
3658

59+
protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
60+
{
61+
$optionsResolver = parent::getQueryOptionsResolver();
62+
$optionsResolver->setDefined(['keep-storage', 'all', 'filters']);
63+
$optionsResolver->setRequired([]);
64+
$optionsResolver->setDefaults([]);
65+
$optionsResolver->setAllowedTypes('keep-storage', ['int']);
66+
$optionsResolver->setAllowedTypes('all', ['bool']);
67+
$optionsResolver->setAllowedTypes('filters', ['string']);
68+
69+
return $optionsResolver;
70+
}
71+
3772
/**
3873
* {@inheritdoc}
3974
*
4075
* @throws \Docker\API\Exception\BuildPruneInternalServerErrorException
4176
*
42-
* @return null|\Docker\API\Model\BuildPrunePostResponse200
77+
* @return \Docker\API\Model\BuildPrunePostResponse200|null
4378
*/
4479
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer)
4580
{

src/Endpoint/ConfigCreate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function getExtraHeaders(): array
4949
* @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException
5050
* @throws \Docker\API\Exception\ConfigCreateServiceUnavailableException
5151
*
52-
* @return null|\Docker\API\Model\IdResponse
52+
* @return \Docker\API\Model\IdResponse|null
5353
*/
5454
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer)
5555
{

src/Endpoint/ConfigInspect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function getExtraHeaders(): array
5151
* @throws \Docker\API\Exception\ConfigInspectInternalServerErrorException
5252
* @throws \Docker\API\Exception\ConfigInspectServiceUnavailableException
5353
*
54-
* @return null|\Docker\API\Model\Config
54+
* @return \Docker\API\Model\Config|null
5555
*/
5656
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer)
5757
{

src/Endpoint/ConfigList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
6868
* @throws \Docker\API\Exception\ConfigListInternalServerErrorException
6969
* @throws \Docker\API\Exception\ConfigListServiceUnavailableException
7070
*
71-
* @return null|\Docker\API\Model\Config[]
71+
* @return \Docker\API\Model\Config[]|null
7272
*/
7373
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer)
7474
{

src/Endpoint/ContainerAttach.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class ContainerAttach extends \Jane\OpenApiRuntime\Client\BaseEndpoint implement
9696
* @param array $queryParameters {
9797
*
9898
* @var string $detachKeys Override the key sequence for detaching a container.Format is a single character `[a-Z]` or `ctrl-<value>` where `<value>` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
99-
* @var bool $logs replay previous logs from the container
99+
* @var bool $logs Replay previous logs from the container.
100100
101101
* @var bool $stream Stream attached streams from the time the request was made onwards
102102
* @var bool $stdin Attach to `stdin`

src/Endpoint/ContainerChanges.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function getExtraHeaders(): array
5858
* @throws \Docker\API\Exception\ContainerChangesNotFoundException
5959
* @throws \Docker\API\Exception\ContainerChangesInternalServerErrorException
6060
*
61-
* @return null|\Docker\API\Model\ContainersIdChangesGetResponse200Item[]
61+
* @return \Docker\API\Model\ContainersIdChangesGetResponse200Item[]|null
6262
*/
6363
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer)
6464
{

src/Endpoint/ContainerCreate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
6666
* @throws \Docker\API\Exception\ContainerCreateConflictException
6767
* @throws \Docker\API\Exception\ContainerCreateInternalServerErrorException
6868
*
69-
* @return null|\Docker\API\Model\ContainersCreatePostResponse201
69+
* @return \Docker\API\Model\ContainersCreatePostResponse201|null
7070
*/
7171
protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer)
7272
{

0 commit comments

Comments
 (0)