Skip to content

Commit

Permalink
Bump Docker Engine API to v1.44
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Apr 9, 2024
1 parent 6cdbc9d commit 3671811
Show file tree
Hide file tree
Showing 414 changed files with 61,848 additions and 21,210 deletions.
16,801 changes: 16,801 additions & 0 deletions spec/v1.44.json

Large diffs are not rendered by default.

800 changes: 400 additions & 400 deletions src/Client.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Endpoint/BuildPrune.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
4 changes: 2 additions & 2 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 @@ -44,7 +44,7 @@ public function getExtraHeaders(): array
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ConfigDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getExtraHeaders(): array
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ConfigInspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function getExtraHeaders(): array
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ConfigList.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
4 changes: 2 additions & 2 deletions src/Endpoint/ConfigUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ConfigUpdate extends \Docker\API\Runtime\Client\BaseEndpoint implements \D
*
* @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 @@ -79,7 +79,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerArchiveInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerAttach.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerAttachWebsocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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: 2 additions & 2 deletions src/Endpoint/ContainerChanges.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ContainerChanges extends \Docker\API\Runtime\Client\BaseEndpoint implement

/**
* Returns which files in a container's filesystem have been added, deleted,
* or modified. The `Kind` of modification can be one of:.
* or modified. The `Kind` of modification can be one of:
*
* - `0`: Modified ("C")
* - `1`: Added ("A")
Expand Down Expand Up @@ -50,7 +50,7 @@ public function getExtraHeaders(): array
*
* @return \Docker\API\Model\FilesystemChange[]|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: 2 additions & 2 deletions src/Endpoint/ContainerCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ContainerCreate extends \Docker\API\Runtime\Client\BaseEndpoint implements
*
* }
*/
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 @@ -85,7 +85,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @return \Docker\API\Model\ContainerCreateResponse|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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerDelete.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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: 2 additions & 2 deletions src/Endpoint/ContainerExec.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ContainerExec extends \Docker\API\Runtime\Client\BaseEndpoint implements \
*
* @param string $id ID or name of container
*/
public function __construct(string $id, \Docker\API\Model\ContainersIdExecPostBody $requestBody = null)
public function __construct(string $id, ?\Docker\API\Model\ContainersIdExecPostBody $requestBody = null)
{
$this->id = $id;
$this->body = $requestBody;
Expand Down Expand Up @@ -51,7 +51,7 @@ public function getExtraHeaders(): array
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getExtraHeaders(): array
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerInspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @return \Docker\API\Model\ContainersIdJsonGetResponse200|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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerKill.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerList.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @return \Docker\API\Model\ContainerSummary[]|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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerLogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerPause.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getExtraHeaders(): array
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerPrune.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @return \Docker\API\Model\ContainersPrunePostResponse200|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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerRename.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerRestart.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerStart.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerStats.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerStop.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerTop.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver
*
* @return \Docker\API\Model\ContainersIdTopGetJsonResponse200|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
2 changes: 1 addition & 1 deletion src/Endpoint/ContainerUnpause.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function getExtraHeaders(): array
*
* @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 3671811

Please sign in to comment.