Skip to content

Commit

Permalink
Update API generated code
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Jul 10, 2023
1 parent 0582ff7 commit e306d1a
Show file tree
Hide file tree
Showing 317 changed files with 2,365 additions and 2,169 deletions.
526 changes: 263 additions & 263 deletions src/Client.php

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions src/Endpoint/BuildPrune.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class BuildPrune extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc
/**
* @param array $queryParameters {
*
* @var int $keep-storage Amount of disk space in bytes to keep for cache
* @var bool $all Remove all types of build cache
* @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
* process on the list of build cache objects.
* @var int $keep-storage Amount of disk space in bytes to keep for cache
* @var bool $all Remove all types of build cache
* @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:
*
Expand Down Expand Up @@ -68,13 +68,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\BuildPruneInternalServerErrorException
*
* @return \Docker\API\Model\BuildPrunePostResponse200|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
6 changes: 2 additions & 4 deletions src/Endpoint/ConfigCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class ConfigCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D
{
use \Docker\API\Runtime\Client\EndpointTrait;

public function __construct(?\Docker\API\Model\ConfigsCreatePostBody $requestBody = null)
public function __construct(\Docker\API\Model\ConfigsCreatePostBody $requestBody = null)
{
$this->body = $requestBody;
}
Expand Down Expand Up @@ -38,15 +38,13 @@ public function getExtraHeaders(): array
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ConfigCreateConflictException
* @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException
* @throws \Docker\API\Exception\ConfigCreateServiceUnavailableException
*
* @return \Docker\API\Model\IdResponse|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
4 changes: 1 addition & 3 deletions src/Endpoint/ConfigDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ public function getExtraHeaders(): array
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ConfigDeleteNotFoundException
* @throws \Docker\API\Exception\ConfigDeleteInternalServerErrorException
* @throws \Docker\API\Exception\ConfigDeleteServiceUnavailableException
*
* @return null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
4 changes: 1 addition & 3 deletions src/Endpoint/ConfigInspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,13 @@ public function getExtraHeaders(): array
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ConfigInspectNotFoundException
* @throws \Docker\API\Exception\ConfigInspectInternalServerErrorException
* @throws \Docker\API\Exception\ConfigInspectServiceUnavailableException
*
* @return \Docker\API\Model\Config|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
8 changes: 3 additions & 5 deletions src/Endpoint/ConfigList.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ class ConfigList extends \Docker\API\Runtime\Client\BaseEndpoint implements \Doc
/**
* @param array $queryParameters {
*
* @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
* process on the configs list.
* @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
* process on the configs list.
*
* Available filters:
*
Expand Down Expand Up @@ -60,14 +60,12 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ConfigListInternalServerErrorException
* @throws \Docker\API\Exception\ConfigListServiceUnavailableException
*
* @return \Docker\API\Model\Config[]|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
10 changes: 4 additions & 6 deletions src/Endpoint/ConfigUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ class ConfigUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D
* @param string $id The ID or name of the config
* @param array $queryParameters {
*
* @var int $version The version number of the config object being updated. This is
* required to avoid conflicting writes.
* @var int $version The version number of the config object being updated. This is
* required to avoid conflicting writes.
*
* }
*
* @param array $accept Accept content header application/json|text/plain
*/
public function __construct(string $id, ?\Docker\API\Model\ConfigSpec $requestBody = null, array $queryParameters = [], array $accept = [])
public function __construct(string $id, \Docker\API\Model\ConfigSpec $requestBody = null, array $queryParameters = [], array $accept = [])
{
$this->id = $id;
$this->body = $requestBody;
Expand Down Expand Up @@ -72,16 +72,14 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ConfigUpdateBadRequestException
* @throws \Docker\API\Exception\ConfigUpdateNotFoundException
* @throws \Docker\API\Exception\ConfigUpdateInternalServerErrorException
* @throws \Docker\API\Exception\ConfigUpdateServiceUnavailableException
*
* @return null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
8 changes: 3 additions & 5 deletions src/Endpoint/ContainerArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class ContainerArchive extends \Docker\API\Runtime\Client\BaseEndpoint implement
* @param string $id ID or name of the container
* @param array $queryParameters {
*
* @var string $path Resource in the container’s filesystem to archive.
* }
* @var string $path Resource in the container’s filesystem to archive.
* }
*
* @param array $accept Accept content header application/x-tar|application/json
*/
Expand Down Expand Up @@ -64,13 +64,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ContainerArchiveNotFoundException
*
* @return null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
8 changes: 3 additions & 5 deletions src/Endpoint/ContainerArchiveInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class ContainerArchiveInfo extends \Docker\API\Runtime\Client\BaseEndpoint imple
* @param string $id ID or name of the container
* @param array $queryParameters {
*
* @var string $path Resource in the container’s filesystem to archive.
* }
* @var string $path Resource in the container’s filesystem to archive.
* }
*
* @param array $accept Accept content header application/json|text/plain
*/
Expand Down Expand Up @@ -66,15 +66,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ContainerArchiveInfoBadRequestException
* @throws \Docker\API\Exception\ContainerArchiveInfoNotFoundException
* @throws \Docker\API\Exception\ContainerArchiveInfoInternalServerErrorException
*
* @return null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
22 changes: 10 additions & 12 deletions src/Endpoint/ContainerAttach.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,22 +108,22 @@ class ContainerAttach extends \Docker\API\Runtime\Client\BaseEndpoint implements
* @param string $id ID or name of the container
* @param array $queryParameters {
*
* @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 `_`.
* @var bool $logs Replay previous logs from the container.
* @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 `_`.
* @var bool $logs Replay previous logs from the container.
*
* This is useful for attaching to a container that has started and you
* want to output everything since the container started.
*
* If `stream` is also enabled, once all the previous output has been
* returned, it will seamlessly transition into streaming current
* output.
* @var bool $stream stream attached streams from the time the request was made onwards
* @var bool $stdin Attach to `stdin`
* @var bool $stdout Attach to `stdout`
* @var bool $stderr Attach to `stderr`
* }
* @var bool $stream stream attached streams from the time the request was made onwards
* @var bool $stdin Attach to `stdin`
* @var bool $stdout Attach to `stdout`
* @var bool $stderr Attach to `stderr`
* }
*
* @param array $accept Accept content header application/vnd.docker.raw-stream|application/json
*/
Expand Down Expand Up @@ -175,13 +175,11 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ContainerAttachNotFoundException
*
* @return null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
22 changes: 10 additions & 12 deletions src/Endpoint/ContainerAttachWebsocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ class ContainerAttachWebsocket extends \Docker\API\Runtime\Client\BaseEndpoint i
* @param string $id ID or name of the container
* @param array $queryParameters {
*
* @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 `_`.
* @var bool $logs Return logs
* @var bool $stream Return stream
* @var bool $stdin Attach to `stdin`
* @var bool $stdout Attach to `stdout`
* @var bool $stderr Attach to `stderr`
* }
* @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 `_`.
* @var bool $logs Return logs
* @var bool $stream Return stream
* @var bool $stdin Attach to `stdin`
* @var bool $stdout Attach to `stdout`
* @var bool $stderr Attach to `stderr`
* }
*
* @param array $accept Accept content header application/json|text/plain
*/
Expand Down Expand Up @@ -74,15 +74,13 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ContainerAttachWebsocketBadRequestException
* @throws \Docker\API\Exception\ContainerAttachWebsocketNotFoundException
* @throws \Docker\API\Exception\ContainerAttachWebsocketInternalServerErrorException
*
* @return null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
4 changes: 1 addition & 3 deletions src/Endpoint/ContainerChanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ public function getExtraHeaders(): array
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ContainerChangesNotFoundException
* @throws \Docker\API\Exception\ContainerChangesInternalServerErrorException
*
* @return \Docker\API\Model\ContainersIdChangesGetResponse200Item[]|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
10 changes: 4 additions & 6 deletions src/Endpoint/ContainerCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ class ContainerCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements
/**
* @param array $queryParameters {
*
* @var string $name Assign the specified name to the container. Must match
* `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`.
* @var string $name Assign the specified name to the container. Must match
* `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`.
*
* }
*/
public function __construct(?\Docker\API\Model\ContainersCreatePostBody $requestBody = null, array $queryParameters = [])
public function __construct(\Docker\API\Model\ContainersCreatePostBody $requestBody = null, array $queryParameters = [])
{
$this->body = $requestBody;
$this->queryParameters = $queryParameters;
Expand Down Expand Up @@ -61,16 +61,14 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ContainerCreateBadRequestException
* @throws \Docker\API\Exception\ContainerCreateNotFoundException
* @throws \Docker\API\Exception\ContainerCreateConflictException
* @throws \Docker\API\Exception\ContainerCreateInternalServerErrorException
*
* @return \Docker\API\Model\ContainersCreatePostResponse201|null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
12 changes: 5 additions & 7 deletions src/Endpoint/ContainerDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class ContainerDelete extends \Docker\API\Runtime\Client\BaseEndpoint implements
* @param string $id ID or name of the container
* @param array $queryParameters {
*
* @var bool $v remove anonymous volumes associated with the container
* @var bool $force if the container is running, kill it before removing it
* @var bool $link Remove the specified link associated with the container.
* }
* @var bool $v remove anonymous volumes associated with the container
* @var bool $force if the container is running, kill it before removing it
* @var bool $link Remove the specified link associated with the container.
* }
*
* @param array $accept Accept content header application/json|text/plain
*/
Expand Down Expand Up @@ -66,16 +66,14 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
}

/**
* {@inheritdoc}
*
* @throws \Docker\API\Exception\ContainerDeleteBadRequestException
* @throws \Docker\API\Exception\ContainerDeleteNotFoundException
* @throws \Docker\API\Exception\ContainerDeleteConflictException
* @throws \Docker\API\Exception\ContainerDeleteInternalServerErrorException
*
* @return null
*/
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null)
protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
{
$status = $response->getStatusCode();
$body = (string) $response->getBody();
Expand Down
Loading

0 comments on commit e306d1a

Please sign in to comment.