diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
deleted file mode 100644
index d018c1530..000000000
--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-# These are supported funding model platforms
-
-github: flavioheleno
-patreon: flavioheleno
-custom: "https://www.buymeacoffee.com/flavioheleno"
diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml
index 68e9a8d8f..c695983fe 100644
--- a/.github/workflows/continuous-integration.yml
+++ b/.github/workflows/continuous-integration.yml
@@ -4,11 +4,9 @@ on:
push:
paths-ignore:
- 'doc/**'
- - '.github/**'
pull_request:
paths-ignore:
- 'doc/**'
- - '.github/**'
jobs:
phpunit:
@@ -49,22 +47,9 @@ jobs:
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-php-${{ matrix.php-version }}-
- - name: Install dependencies (PHP 7)
- if: steps.composer-cache.outputs.cache-hit != 'true' && matrix.php-version < 8
- run: composer update --${{ matrix.dependency-version }} --no-progress --no-interaction
-
- name: Install dependencies (PHP 8)
if: steps.composer-cache.outputs.cache-hit != 'true' && matrix.php-version >= 8
run: composer update --${{ matrix.dependency-version }} --ignore-platform-req=php --no-progress --no-interaction
- - name: Run PHPUnit test suite
+ - name: Run test suite
run: composer run-script test-ci
-
- - name: Publish code coverage
- uses: paambaati/codeclimate-action@v3.2.0
- env:
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
- with:
- coverageCommand: composer run-script test-coverage
- coverageLocations: |
- ${{github.workspace}}/clover.xml:clover
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml
index e6477607e..7fac6c45c 100644
--- a/.github/workflows/static-analysis.yml
+++ b/.github/workflows/static-analysis.yml
@@ -22,7 +22,7 @@ jobs:
- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@2.25.4
with:
- php-version: 8.0
+ php-version: 8.1
tools: composer:v2
coverage: none
@@ -45,4 +45,4 @@ jobs:
run: composer update --prefer-stable --ignore-platform-req=php --no-progress --no-interaction
- name: Run PHPStan
- run: composer run-script phpstan -- --no-progress
+ run: composer run-script phpstan
diff --git a/.gitignore b/.gitignore
index 64afb0b51..aa4650fce 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,6 @@ bin/
composer.lock
.vagrant
/.php-cs-fixer.cache
+report
+build
+.phpunit.result.cache
diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php
old mode 100644
new mode 100755
index 3bde3b9fc..0717702d5
--- a/.php-cs-fixer.php
+++ b/.php-cs-fixer.php
@@ -1,47 +1,60 @@
in([
- __DIR__.'/src',
- __DIR__.'/tests',
- ])
- ->notPath('/fixtures/')
-;
+declare(strict_types=1);
-$config = new \PhpCsFixer\Config();
-return $config
+return (new PhpCsFixer\Config())
+ ->setRiskyAllowed(true)
->setRules([
- '@Symfony' => true,
- '@Symfony:risky' => true,
- '@PHP56Migration:risky' => true,
- '@PHP70Migration' => true,
- '@PHP70Migration:risky' => true,
- '@PHP71Migration' => true,
- '@PHP71Migration:risky' => true,
- '@PHP73Migration' => true,
- '@PHP74Migration' => true,
- '@PHP74Migration:risky' => true,
- '@PHP80Migration' => true,
- '@PHP80Migration:risky' => true,
- '@PHPUnit75Migration:risky' => true,
- '@PHPUnit84Migration:risky' => true,
- 'array_syntax' => [
- 'syntax' => 'short'
+ '@Symfony' => true,
+ '@PHP80Migration' => true,
+ '@PHP80Migration:risky' => true,
+ 'declare_strict_types' => true,
+ 'phpdoc_align' => false,
+ 'phpdoc_summary' => false,
+ 'phpdoc_to_comment' => false,
+ 'concat_space' => ['spacing' => 'one'],
+ 'multiline_whitespace_before_semicolons' => false,
+ 'no_useless_else' => true,
+ 'no_useless_return' => true,
+ 'ordered_imports' => [
+ 'sort_algorithm' => 'alpha',
+ 'imports_order' => ['class', 'function', 'const'],
+ ],
+ 'phpdoc_order' => true,
+ 'array_syntax' => ['syntax' => 'short'],
+ 'echo_tag_syntax' => ['format' => 'long'],
+ 'php_unit_method_casing' => false,
+ 'php_unit_set_up_tear_down_visibility' => true,
+ 'php_unit_internal_class' => true,
+ 'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
+ 'final_internal_class' => false,
+ 'increment_style' => ['style' => 'pre'],
+ 'return_type_declaration' => ['space_before' => 'none'],
+ 'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments', 'parameters']],
+ 'global_namespace_import' => ['import_classes' => true, 'import_constants' => false, 'import_functions' => false],
+ 'void_return' => true,
+ 'yoda_style' => [
+ 'equal' => false,
+ 'identical' => false,
],
- 'combine_consecutive_unsets' => true,
- 'declare_strict_types' => true,
- 'linebreak_after_opening_tag' => true,
- 'modernize_types_casting' => true,
- 'native_function_invocation' => true,
- 'no_php4_constructor' => true,
- 'ordered_imports' => true,
- 'php_unit_strict' => true,
- 'phpdoc_order' => true,
- 'strict_comparison' => true,
- 'strict_param' => true,
+ 'class_definition' => [
+ 'multi_line_extends_each_single_line' => true,
+ ],
+ 'method_argument_space' => [
+ 'on_multiline' => 'ensure_fully_multiline',
+ ],
+ 'single_line_throw' => false,
+ 'compact_nullable_typehint' => true,
])
- ->setRiskyAllowed(true)
- ->setIndent(' ')
- ->setLineEnding("\n")
- ->setFinder($finder)
-;
+ ->setCacheFile('/tmp/backend.php_cs.cache')
+ ->setFinder(
+ PhpCsFixer\Finder::create()
+ ->in([
+ __DIR__ . '/src',
+ __DIR__ . '/tests',
+ ])
+ ->exclude([
+ __DIR__ . 'var',
+ ])
+ ->name('*.php')
+ );
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index b3b5716d6..000000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Changelog
-
-## 2.0
-
- - [BC Break] All endpoints have new names and potentially new parameters
- - Add async (with amp artax) support
- - It now uses the official swagger specification of docker
- - Allow to use from 1.25 to 1.36 api version of Docker
- - Add support for more keywords in ContextBuilder
- - Lot of bug fixes
-
-## 1.24.0 - 08/08/2014
-
- - [BC Break] Listing containers now return `ContainerInfo` object (instead of `ContainerConfig`)
diff --git a/README.md b/README.md
index 51495e03b..8e2976a77 100644
--- a/README.md
+++ b/README.md
@@ -1,31 +1,20 @@
-# Docker PHP
+# Docker PHP api client
-**Docker PHP** (for lack of a better name) is a [Docker](http://docker.com/) client written in PHP.
+**Docker PHP** is a [Docker](http://docker.com/) client written in PHP.
This library aim to reach 100% API support of the Docker Engine.
-The test suite currently passes against Docker Remote API v1.25 to v1.36.
+The test suite currently passes against Docker Remote API v1.41.
-[](http://docker-php.readthedocs.org/en/latest/)
-[](https://github.com/beluga-php/docker-php/releases)
-[](LICENSE)
-[](https://packagist.org/packages/beluga-php/docker-php)
+The API classes are autogenerated by [jane-php](https://packagist.org/packages/jane-php/open-api-runtime)
## Installation
The recommended way to install Docker PHP is of course to use [Composer](http://getcomposer.org/):
```bash
-composer require beluga-php/docker-php
+composer require micoli/docker-php-api-client
```
-## Docker API Version
-
-By default it will use the last version of docker api available, if you want to fix a version (like 1.41) you can add this
-requirement to composer:
-
-```bash
-composer require "beluga-php/docker-php-api:6.1.41.*"
-```
## Usage
@@ -53,7 +42,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
This README heavily inspired by [willdurand/Negotiation](https://github.com/willdurand/Negotiation) by @willdurand. This guy is pretty awesome.
-This library is a fork of the original [docker-php/docker-php](https://github.com/docker-php/docker-php), created by [Geoffrey Bachelet](https://github.com/ubermuda) and [Joel Wurtz](https://github.com/joelwurtz).
+This library is a fork of the original [beluga-php/docker-php](https://github.com/beluga-php/docker-php), created by [beluga-php](https://github.com/beluga-php), wich was itself a fork of the original [docker-php/docker-php](https://github.com/docker-php/docker-php), created by [Geoffrey Bachelet](https://github.com/ubermuda) and [Joel Wurtz](https://github.com/joelwurtz).
## License
diff --git a/composer.json b/composer.json
index 45cccea6d..cecc45216 100644
--- a/composer.json
+++ b/composer.json
@@ -1,5 +1,5 @@
{
- "name": "beluga-php/docker-php",
+ "name": "micoli/docker-php-api-client",
"license": "MIT",
"type": "library",
"description": "A Docker PHP client",
@@ -8,7 +8,8 @@
"sort-packages": true,
"preferred-install": "dist",
"allow-plugins": {
- "infection/extension-installer": true
+ "infection/extension-installer": true,
+ "php-http/discovery": true
}
},
"minimum-stability": "dev",
@@ -23,74 +24,56 @@
"Docker\\Tests\\": "tests/"
}
},
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/flavioheleno"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/flavioheleno"
- }
- ],
"require": {
"php": ">=8.1",
- "beluga-php/docker-php-api": "7.1.41.x-dev",
- "nyholm/psr7": "^1.3",
- "php-http/client-common": "^2.3",
- "php-http/socket-client": "^2.0",
+ "jane-php/open-api-runtime": "^7.4",
+ "php-http/socket-client": "^2.1",
"psr/http-client": "^1.0",
+ "psr/http-factory": "^1.0",
"psr/http-message": "^1.0",
- "symfony/filesystem": "^6.1",
- "symfony/process": "^6.1"
+ "symfony/filesystem": "^6.0",
+ "symfony/http-client": "^6.0",
+ "thecodingmachine/safe": "^2.5"
},
"suggest": {
"php-http/httplug-bundle": "For integration with Symfony"
},
"require-dev": {
- "friendsofphp/php-cs-fixer": "^3.8",
- "infection/infection": "^0.26",
+ "friendsofphp/php-cs-fixer": "^v3.20.0",
+ "jane-php/json-schema": "^7.4",
+ "jane-php/open-api-3": "^7.4",
"php-parallel-lint/php-parallel-lint": "^1.2",
- "phpstan/phpstan": "^1.0",
- "phpunit/phpunit": "^9.5",
- "psy/psysh": "^0.11",
- "roave/security-advisories": "dev-master",
- "squizlabs/php_codesniffer": "^3.5",
- "vimeo/psalm": "^4.3"
+ "phpstan/phpstan-symfony": "1.3.2",
+ "phpunit/phpunit": "^10.2"
},
"conflict": {
"docker-php/docker-php": "*"
},
"scripts": {
+ "generate-docker-api": "vendor/bin/jane-openapi generate --config-file src/.jane-openapi",
"php-cs-fixer": "vendor/bin/php-cs-fixer fix --dry-run --verbose --diff",
"php-cs-fixer-fix": "vendor/bin/php-cs-fixer fix --verbose",
- "console": "vendor/bin/psysh",
"infection": "vendor/bin/infection",
"lint": "vendor/bin/parallel-lint --exclude vendor .",
- "phpcs": "vendor/bin/phpcs --standard=ruleset.xml src/ tests/",
- "phpstan": "vendor/bin/phpstan analyse --level=max --autoload-file=vendor/autoload.php src/",
- "phpunit": "vendor/bin/phpunit ./tests/ --coverage-html=./report/coverage/ --whitelist=./src/ --testdox-html=./report/testdox.html --disallow-test-output --process-isolation",
- "psalm": "vendor/bin/psalm --taint-analysis",
- "test-ci": "vendor/bin/phpunit ./tests/ --disallow-test-output --process-isolation",
- "test-coverage": "vendor/bin/phpunit ./tests/ --whitelist=./src/ --coverage-clover=clover.xml",
+ "phpunit": "vendor/bin/phpunit ./tests/",
+ "phpstan": "vendor/bin/phpstan analyse",
"test": [
- "@infection",
"@lint",
- "@phpunit",
"@phpstan",
- "@psalm",
- "@phpcs"
+ "@phpunit"
+ ],
+ "test-ci": [
+ "@lint",
+ "@phpstan",
+ "@phpunit"
]
},
"scripts-descriptions": {
- "console": "Runs PsySH Console",
"infection": "Runs mutation test framework",
"lint": "Runs complete codebase lint testing",
"phpcs": "Runs coding style checking",
"phpstan": "Runs complete codebase static analysis",
"phpunit": "Runs library test suite",
- "psalm": "Runs complete codebase taint analysis",
- "test-ci": "Runs library test suite (for continuous integration)",
"test-coverage": "Runs test-coverage analysis",
"test": "Runs all tests"
},
diff --git a/phpstan.neon.dist b/phpstan.neon.dist
new file mode 100644
index 000000000..b1e035649
--- /dev/null
+++ b/phpstan.neon.dist
@@ -0,0 +1,9 @@
+parameters:
+ tmpDir: ./build/cache/phpstan
+ level: 5
+ treatPhpDocTypesAsCertain: false
+ paths:
+ - ./src
+ - ./tests
+ excludePaths:
+ - './src/API/*'
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index d1446e798..f7119bd7d 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -4,19 +4,24 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
backupGlobals="false"
- backupStaticAttributes="false"
colors="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- processIsolation="false"
+ processIsolation="true"
stopOnFailure="false"
bootstrap="vendor/autoload.php">
+
+
+
+
+
+
+
+
+
src
-
+
tests/
diff --git a/src/.jane-openapi b/src/.jane-openapi
new file mode 100644
index 000000000..f61033010
--- /dev/null
+++ b/src/.jane-openapi
@@ -0,0 +1,11 @@
+ true,
+ 'directory' => __DIR__ . '/API/',
+ 'namespace' => 'Docker\\API',
+ 'openapi-file' => __DIR__ . '/v1.41.json',
+ 'reference' => true,
+ 'strict' => false,
+ 'date-input-format' => 'Y-m-d\TH:i:s.uuP',
+];
diff --git a/src/API/Client.php b/src/API/Client.php
new file mode 100644
index 000000000..372ce4805
--- /dev/null
+++ b/src/API/Client.php
@@ -0,0 +1,2593 @@
+[:]`, ``, or ``)
+ * - `before`=(`` or ``)
+ * - `expose`=(`[/]`|`/[]`)
+ * - `exited=` containers with exit code of ``
+ * - `health`=(`starting`|`healthy`|`unhealthy`|`none`)
+ * - `id=` a container's ID
+ * - `isolation=`(`default`|`process`|`hyperv`) (Windows daemon only)
+ * - `is-task=`(`true`|`false`)
+ * - `label=key` or `label="key=value"` of a container label
+ * - `name=` a container's name
+ * - `network`=(`` or ``)
+ * - `publish`=(`[/]`|`/[]`)
+ * - `since`=(`` or ``)
+ * - `status=`(`created`|`restarting`|`running`|`removing`|`paused`|`exited`|`dead`)
+ * - `volume`=(`` or ``)
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ContainerListBadRequestException
+ * @throws \Docker\API\Exception\ContainerListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainerSummaryItem[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerList($queryParameters), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\ContainersCreatePostBody|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var string $name Assign the specified name to the container. Must match
+ * `/?[a-zA-Z0-9][a-zA-Z0-9_.-]+`.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @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|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerCreate(Model\ContainersCreatePostBody $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerCreate($requestBody, $queryParameters), $fetch);
+ }
+
+ /**
+ * Return low-level information about a container.
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var bool $size Return the size of container as fields `SizeRw` and `SizeRootFs`
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ContainerInspectNotFoundException
+ * @throws \Docker\API\Exception\ContainerInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdJsonGetResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerInspect($id, $queryParameters), $fetch);
+ }
+
+ /**
+ * On Unix systems, this is done by running the `ps` command. This endpoint
+ * is not supported on Windows.
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var string $ps_args The arguments to pass to `ps`. For example, `aux`
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerTopNotFoundException
+ * @throws \Docker\API\Exception\ContainerTopInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdTopGetJsonResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerTop(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerTop($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Get `stdout` and `stderr` logs from a container.
+ *
+ * Note: This endpoint works only for containers with the `json-file` or
+ * `journald` logging driver.
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var bool $follow keep connection after returning logs
+ * @var bool $stdout Return logs from `stdout`
+ * @var bool $stderr Return logs from `stderr`
+ * @var int $since Only return logs since this time, as a UNIX timestamp
+ * @var int $until Only return logs before this time, as a UNIX timestamp
+ * @var bool $timestamps Add timestamps to every log line
+ * @var string $tail Only return this number of log lines from the end of the logs.
+ * Specify as an integer or `all` to output all log lines.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerLogsNotFoundException
+ * @throws \Docker\API\Exception\ContainerLogsInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerLogs($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Returns which files in a container's filesystem have been added, deleted,
+ * or modified. The `Kind` of modification can be one of:
+ *
+ * - `0`: Modified
+ * - `1`: Added
+ * - `2`: Deleted
+ *
+ * @param string $id ID or name of the container
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ContainerChangesNotFoundException
+ * @throws \Docker\API\Exception\ContainerChangesInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdChangesGetResponse200Item[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerChanges(string $id, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerChanges($id), $fetch);
+ }
+
+ /**
+ * Export the contents of a container as a tarball.
+ *
+ * @param string $id ID or name of the container
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/octet-stream|application/json
+ *
+ * @throws \Docker\API\Exception\ContainerExportNotFoundException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerExport(string $id, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerExport($id, $accept), $fetch);
+ }
+
+ /**
+ * This endpoint returns a live stream of a container’s resource usage
+ * statistics.
+ *
+ * The `precpu_stats` is the CPU statistic of the *previous* read, and is
+ * used to calculate the CPU usage percentage. It is not an exact copy
+ * of the `cpu_stats` field.
+ *
+ * If either `precpu_stats.online_cpus` or `cpu_stats.online_cpus` is
+ * nil then for compatibility with older daemons the length of the
+ * corresponding `cpu_usage.percpu_usage` array should be used.
+ *
+ * On a cgroup v2 host, the following fields are not set
+ * `blkio_stats`: all fields other than `io_service_bytes_recursive`
+ * `cpu_stats`: `cpu_usage.percpu_usage`
+ * `memory_stats`: `max_usage` and `failcnt`
+ * Also, `memory_stats.stats` fields are incompatible with cgroup v1.
+ *
+ * To calculate the values shown by the `stats` command of the docker cli tool
+ * the following formulas can be used:
+ * used_memory = `memory_stats.usage - memory_stats.stats.cache`
+ * available_memory = `memory_stats.limit`
+ * Memory usage % = `(used_memory / available_memory) * 100.0`
+ * cpu_delta = `cpu_stats.cpu_usage.total_usage - precpu_stats.cpu_usage.total_usage`
+ * system_cpu_delta = `cpu_stats.system_cpu_usage - precpu_stats.system_cpu_usage`
+ * number_cpus = `lenght(cpu_stats.cpu_usage.percpu_usage)` or `cpu_stats.online_cpus`
+ * CPU usage % = `(cpu_delta / system_cpu_delta) * number_cpus * 100.0`
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var bool $stream Stream the output. If false, the stats will be output once and then
+ * it will disconnect.
+ * @var bool $one-shot Only get a single stat instead of waiting for 2 cycles. Must be used
+ * with `stream=false`.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ContainerStatsNotFoundException
+ * @throws \Docker\API\Exception\ContainerStatsInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerStats(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerStats($id, $queryParameters), $fetch);
+ }
+
+ /**
+ * Resize the TTY for a container.
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var int $h Height of the TTY session in characters
+ * @var int $w Width of the TTY session in characters
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header text/plain|application/json
+ *
+ * @throws \Docker\API\Exception\ContainerResizeNotFoundException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerResize(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerResize($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @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-` where `` is one
+ * of: `a-z`, `@`, `^`, `[`, `,` or `_`.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerStartNotFoundException
+ * @throws \Docker\API\Exception\ContainerStartInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerStart(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerStart($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var int $t Number of seconds to wait before killing the container
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerStopNotFoundException
+ * @throws \Docker\API\Exception\ContainerStopInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerStop(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerStop($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var int $t Number of seconds to wait before killing the container
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerRestartNotFoundException
+ * @throws \Docker\API\Exception\ContainerRestartInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerRestart(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerRestart($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Send a POSIX signal to a container, defaulting to killing to the
+ * container.
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var string $signal Signal to send to the container as an integer or string (e.g. `SIGINT`)
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerKillNotFoundException
+ * @throws \Docker\API\Exception\ContainerKillConflictException
+ * @throws \Docker\API\Exception\ContainerKillInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerKill(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerKill($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Change various configuration options of a container without having to
+ * recreate it.
+ *
+ * @param string $id ID or name of the container
+ * @param \Docker\API\Model\ContainersIdUpdatePostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ContainerUpdateNotFoundException
+ * @throws \Docker\API\Exception\ContainerUpdateInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdUpdatePostResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerUpdate(string $id, Model\ContainersIdUpdatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerUpdate($id, $requestBody), $fetch);
+ }
+
+ /**
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var string $name New name for the container
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerRenameNotFoundException
+ * @throws \Docker\API\Exception\ContainerRenameConflictException
+ * @throws \Docker\API\Exception\ContainerRenameInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerRename(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerRename($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Use the freezer cgroup to suspend all processes in a container.
+ *
+ * Traditionally, when suspending a process the `SIGSTOP` signal is used,
+ * which is observable by the process being suspended. With the freezer
+ * cgroup the process is unaware, and unable to capture, that it is being
+ * suspended, and subsequently resumed.
+ *
+ * @param string $id ID or name of the container
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerPauseNotFoundException
+ * @throws \Docker\API\Exception\ContainerPauseInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerPause(string $id, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerPause($id, $accept), $fetch);
+ }
+
+ /**
+ * Resume a container which has been paused.
+ *
+ * @param string $id ID or name of the container
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerUnpauseNotFoundException
+ * @throws \Docker\API\Exception\ContainerUnpauseInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerUnpause($id, $accept), $fetch);
+ }
+
+ /**
+ * Attach to a container to read its output or send it input. You can attach
+ * to the same container multiple times and you can reattach to containers
+ * that have been detached.
+ *
+ * Either the `stream` or `logs` parameter must be `true` for this endpoint
+ * to do anything.
+ *
+ * See the [documentation for the `docker attach` command](https://docs.docker.com/engine/reference/commandline/attach/)
+ * for more details.
+ *
+ * ### Hijacking
+ *
+ * This endpoint hijacks the HTTP connection to transport `stdin`, `stdout`,
+ * and `stderr` on the same socket.
+ *
+ * This is the response from the daemon for an attach request:
+ *
+ * ```
+ * HTTP/1.1 200 OK
+ * Content-Type: application/vnd.docker.raw-stream
+ *
+ * [STREAM]
+ * ```
+ *
+ * After the headers and two new lines, the TCP connection can now be used
+ * for raw, bidirectional communication between the client and server.
+ *
+ * To hint potential proxies about connection hijacking, the Docker client
+ * can also optionally send connection upgrade headers.
+ *
+ * For example, the client sends this request to upgrade the connection:
+ *
+ * ```
+ * POST /containers/16253994b7c4/attach?stream=1&stdout=1 HTTP/1.1
+ * Upgrade: tcp
+ * Connection: Upgrade
+ * ```
+ *
+ * The Docker daemon will respond with a `101 UPGRADED` response, and will
+ * similarly follow with the raw stream:
+ *
+ * ```
+ * HTTP/1.1 101 UPGRADED
+ * Content-Type: application/vnd.docker.raw-stream
+ * Connection: Upgrade
+ * Upgrade: tcp
+ *
+ * [STREAM]
+ * ```
+ *
+ * ### Stream format
+ *
+ * When the TTY setting is disabled in [`POST /containers/create`](#operation/ContainerCreate),
+ * the stream over the hijacked connected is multiplexed to separate out
+ * `stdout` and `stderr`. The stream consists of a series of frames, each
+ * containing a header and a payload.
+ *
+ * The header contains the information which the stream writes (`stdout` or
+ * `stderr`). It also contains the size of the associated frame encoded in
+ * the last four bytes (`uint32`).
+ *
+ * It is encoded on the first eight bytes like this:
+ *
+ * ```go
+ * header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4}
+ * ```
+ *
+ * `STREAM_TYPE` can be:
+ *
+ * - 0: `stdin` (is written on `stdout`)
+ * - 1: `stdout`
+ * - 2: `stderr`
+ *
+ * `SIZE1, SIZE2, SIZE3, SIZE4` are the four bytes of the `uint32` size
+ * encoded as big endian.
+ *
+ * Following the header is the payload, which is the specified number of
+ * bytes of `STREAM_TYPE`.
+ *
+ * The simplest way to implement this protocol is the following:
+ *
+ * 1. Read 8 bytes.
+ * 2. Choose `stdout` or `stderr` depending on the first byte.
+ * 3. Extract the frame size from the last four bytes.
+ * 4. Read the extracted size and output it on the correct output.
+ * 5. Goto 1.
+ *
+ * ### Stream format when using a TTY
+ *
+ * When the TTY setting is enabled in [`POST /containers/create`](#operation/ContainerCreate),
+ * the stream is not multiplexed. The data exchanged over the hijacked
+ * connection is simply the raw data from the process PTY and client's
+ * `stdin`.
+ *
+ * @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-` where `` 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`
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/vnd.docker.raw-stream|application/json
+ *
+ * @throws \Docker\API\Exception\ContainerAttachNotFoundException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerAttach(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerAttach($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @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-` where `` 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 string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerAttachWebsocketBadRequestException
+ * @throws \Docker\API\Exception\ContainerAttachWebsocketNotFoundException
+ * @throws \Docker\API\Exception\ContainerAttachWebsocketInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerAttachWebsocket(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerAttachWebsocket($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Block until a container stops, then returns the exit code.
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var string $condition Wait until a container state reaches the given condition, either
+ * 'not-running' (default), 'next-exit', or 'removed'.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ContainerWaitNotFoundException
+ * @throws \Docker\API\Exception\ContainerWaitInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdWaitPostResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerWait(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerWait($id, $queryParameters), $fetch);
+ }
+
+ /**
+ * @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.
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerDeleteBadRequestException
+ * @throws \Docker\API\Exception\ContainerDeleteNotFoundException
+ * @throws \Docker\API\Exception\ContainerDeleteConflictException
+ * @throws \Docker\API\Exception\ContainerDeleteInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerDelete(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerDelete($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Get a tar archive of a resource in the filesystem of container id.
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var string $path Resource in the container’s filesystem to archive.
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/x-tar|application/json
+ *
+ * @throws \Docker\API\Exception\ContainerArchiveNotFoundException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerArchive(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerArchive($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * A response header `X-Docker-Container-Path-Stat` is returned, containing
+ * a base64 - encoded JSON object with some filesystem header information
+ * about the path.
+ *
+ * @param string $id ID or name of the container
+ * @param array $queryParameters {
+ *
+ * @var string $path Resource in the container’s filesystem to archive.
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ContainerArchiveInfoBadRequestException
+ * @throws \Docker\API\Exception\ContainerArchiveInfoNotFoundException
+ * @throws \Docker\API\Exception\ContainerArchiveInfoInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerArchiveInfo(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerArchiveInfo($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Upload a tar archive to be extracted to a path in the filesystem of container id.
+ *
+ * @param string $id ID or name of the container
+ * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var string $path path to a directory in the container to extract the archive’s contents into
+ * @var string $noOverwriteDirNonDir if `1`, `true`, or `True` then it will be an error if unpacking the
+ * given content would cause an existing directory to be replaced with
+ * a non-directory and vice versa
+ * @var string $copyUIDGID If `1`, `true`, then it will copy UID/GID maps to the dest file or
+ * dir
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PutContainerArchiveBadRequestException
+ * @throws \Docker\API\Exception\PutContainerArchiveForbiddenException
+ * @throws \Docker\API\Exception\PutContainerArchiveNotFoundException
+ * @throws \Docker\API\Exception\PutContainerArchiveInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function putContainerArchive(string $id, $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PutContainerArchive($id, $requestBody, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
+ *
+ * Available filters:
+ * - `until=` Prune containers created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
+ * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune containers with (or without, in case `label!=...` is used) the specified labels.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ContainerPruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerPrune($queryParameters), $fetch);
+ }
+
+ /**
+ * Returns a list of images on the server. Note that it uses a different, smaller representation of an image than inspecting a single image.
+ *
+ * @param array $queryParameters {
+ *
+ * @var bool $all Show all images. Only images from a final layer (no children) are shown by default.
+ * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
+ * process on the images list.
+ *
+ * Available filters:
+ *
+ * - `before`=(`[:]`, `` or ``)
+ * - `dangling=true`
+ * - `label=key` or `label="key=value"` of an image label
+ * - `reference`=(`[:]`)
+ * - `since`=(`[:]`, `` or ``)
+ * @var bool $digests Show digest information as a `RepoDigests` field on each image.
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImageSummary[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageList($queryParameters), $fetch);
+ }
+
+ /**
+ * Build an image from a tar archive with a `Dockerfile` in it.
+ *
+ * The `Dockerfile` specifies how the image is built from the tar archive. It is typically in the archive's root, but can be at a different path or have a different name by specifying the `dockerfile` parameter. [See the `Dockerfile` reference for more information](https://docs.docker.com/engine/reference/builder/).
+ *
+ * The Docker daemon performs a preliminary validation of the `Dockerfile` before starting the build, and returns an error if the syntax is incorrect. After that, each instruction is run one-by-one until the ID of the new image is output.
+ *
+ * The build is canceled if the client drops the connection by quitting or being killed.
+ *
+ * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var string $dockerfile Path within the build context to the `Dockerfile`. This is ignored if `remote` is specified and points to an external `Dockerfile`.
+ * @var string $t A name and optional tag to apply to the image in the `name:tag` format. If you omit the tag the default `latest` value is assumed. You can provide several `t` parameters.
+ * @var string $extrahosts Extra hosts to add to /etc/hosts
+ * @var string $remote A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called `Dockerfile` and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the `dockerfile` parameter is also specified, there must be a file with the corresponding path inside the tarball.
+ * @var bool $q suppress verbose build output
+ * @var bool $nocache do not use the cache when building the image
+ * @var string $cachefrom JSON array of images used for build cache resolution
+ * @var string $pull attempt to pull the image even if an older image exists locally
+ * @var bool $rm remove intermediate containers after a successful build
+ * @var bool $forcerm always remove intermediate containers, even upon failure
+ * @var int $memory set memory limit for build
+ * @var int $memswap Total memory (memory + swap). Set as `-1` to disable swap.
+ * @var int $cpushares CPU shares (relative weight)
+ * @var string $cpusetcpus CPUs in which to allow execution (e.g., `0-3`, `0,1`).
+ * @var int $cpuperiod the length of a CPU period in microseconds
+ * @var int $cpuquota microseconds of CPU time that the container can get in a CPU period
+ * @var string $buildargs JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the buildargs as the environment context for commands run via the `Dockerfile` RUN instruction, or for variable expansion in other `Dockerfile` instructions. This is not meant for passing secret values.
+ *
+ * For example, the build arg `FOO=bar` would become `{"FOO":"bar"}` in JSON. This would result in the the query parameter `buildargs={"FOO":"bar"}`. Note that `{"FOO":"bar"}` should be URI component encoded.
+ *
+ * [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg)
+ * @var int $shmsize Size of `/dev/shm` in bytes. The size must be greater than 0. If omitted the system uses 64MB.
+ * @var bool $squash Squash the resulting images layers into a single layer. *(Experimental release only.)*
+ * @var string $labels arbitrary key/value labels to set on the image, as a JSON map of string pairs
+ * @var string $networkmode Sets the networking mode for the run commands during build. Supported
+ * standard values are: `bridge`, `host`, `none`, and `container:`.
+ * Any other value is taken as a custom network's name or ID to which this
+ * container should connect to.
+ * @var string $platform Platform in the format os[/arch[/variant]]
+ * @var string $target Target build stage
+ * @var string $outputs BuildKit output configuration
+ * }
+ *
+ * @param array $headerParameters {
+ *
+ * @var string $Content-type
+ * @var string $X-Registry-Config This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to.
+ *
+ * The key is a registry URL, and the value is an auth configuration object, [as described in the authentication section](#section/Authentication). For example:
+ *
+ * ```
+ * {
+ * "docker.example.com": {
+ * "username": "janedoe",
+ * "password": "hunter2"
+ * },
+ * "https://index.docker.io/v1/": {
+ * "username": "mobydock",
+ * "password": "conta1n3rize14"
+ * }
+ * }
+ * ```
+ *
+ * Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a `https://` prefix and a `/v1/` suffix even though Docker will prefer to use the v2 registry API.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageBuildBadRequestException
+ * @throws \Docker\API\Exception\ImageBuildInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageBuild($requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageBuild($requestBody, $queryParameters, $headerParameters), $fetch);
+ }
+
+ /**
+ * @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.
+ *
+ * Available filters:
+ *
+ * - `until=`: duration relative to daemon's time, during which build cache was not used, in Go's duration format (e.g., '24h')
+ * - `id=`
+ * - `parent=`
+ * - `type=`
+ * - `description=`
+ * - `inuse`
+ * - `shared`
+ * - `private`
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\BuildPruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\BuildPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function buildPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\BuildPrune($queryParameters), $fetch);
+ }
+
+ /**
+ * Create an image by either pulling it from a registry or importing it.
+ *
+ * @param array $queryParameters {
+ *
+ * @var string $fromImage Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed.
+ * @var string $fromSrc Source to import. The value may be a URL from which the image can be retrieved or `-` to read the image from the request body. This parameter may only be used when importing an image.
+ * @var string $repo Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image.
+ * @var string $tag Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled.
+ * @var string $message set commit message for imported image
+ * @var string $platform Platform in the format os[/arch[/variant]]
+ * }
+ *
+ * @param array $headerParameters {
+ *
+ * @var string $X-Registry-Auth A base64url-encoded auth configuration.
+ *
+ * Refer to the [authentication section](#section/Authentication) for
+ * details.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageCreateNotFoundException
+ * @throws \Docker\API\Exception\ImageCreateInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageCreate(string $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageCreate($requestBody, $queryParameters, $headerParameters), $fetch);
+ }
+
+ /**
+ * Return low-level information about an image.
+ *
+ * @param string $name Image name or id
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageInspectNotFoundException
+ * @throws \Docker\API\Exception\ImageInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Image|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageInspect(string $name, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageInspect($name), $fetch);
+ }
+
+ /**
+ * Return parent layers of an image.
+ *
+ * @param string $name Image name or ID
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageHistoryNotFoundException
+ * @throws \Docker\API\Exception\ImageHistoryInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImagesNameHistoryGetResponse200Item[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageHistory(string $name, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageHistory($name), $fetch);
+ }
+
+ /**
+ * Push an image to a registry.
+ *
+ * If you wish to push an image on to a private registry, that image must
+ * already have a tag which references the registry. For example,
+ * `registry.example.com/myimage:latest`.
+ *
+ * The push is cancelled if the HTTP connection is closed.
+ *
+ * @param string $name image name or ID
+ * @param array $queryParameters {
+ *
+ * @var string $tag The tag to associate with the image on the registry.
+ * }
+ *
+ * @param array $headerParameters {
+ *
+ * @var string $X-Registry-Auth A base64url-encoded auth configuration.
+ *
+ * Refer to the [authentication section](#section/Authentication) for
+ * details.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ImagePushNotFoundException
+ * @throws \Docker\API\Exception\ImagePushInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function imagePush(string $name, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImagePush($name, $queryParameters, $headerParameters, $accept), $fetch);
+ }
+
+ /**
+ * Tag an image so that it becomes part of a repository.
+ *
+ * @param string $name image name or ID to tag
+ * @param array $queryParameters {
+ *
+ * @var string $repo The repository to tag in. For example, `someuser/someimage`.
+ * @var string $tag The name of the new tag.
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ImageTagBadRequestException
+ * @throws \Docker\API\Exception\ImageTagNotFoundException
+ * @throws \Docker\API\Exception\ImageTagConflictException
+ * @throws \Docker\API\Exception\ImageTagInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageTag(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageTag($name, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Remove an image, along with any untagged parent images that were
+ * referenced by that image.
+ *
+ * Images can't be removed if they have descendant images, are being
+ * used by a running container or are being used by a build.
+ *
+ * @param string $name Image name or ID
+ * @param array $queryParameters {
+ *
+ * @var bool $force Remove the image even if it is being used by stopped containers or has other tags
+ * @var bool $noprune Do not delete untagged parent images
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageDeleteNotFoundException
+ * @throws \Docker\API\Exception\ImageDeleteConflictException
+ * @throws \Docker\API\Exception\ImageDeleteInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImageDeleteResponseItem[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageDelete($name, $queryParameters), $fetch);
+ }
+
+ /**
+ * Search for an image on Docker Hub.
+ *
+ * @param array $queryParameters {
+ *
+ * @var string $term Term to search
+ * @var int $limit Maximum number of results to return
+ * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to process on the images list. Available filters:
+ *
+ * - `is-automated=(true|false)`
+ * - `is-official=(true|false)`
+ * - `stars=` Matches images that has at least 'number' stars.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageSearchInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImagesSearchGetResponse200Item[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageSearch(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageSearch($queryParameters), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). Available filters:
+ *
+ * - `dangling=` When set to `true` (or `1`), prune only
+ * unused *and* untagged images. When set to `false`
+ * (or `0`), all unused images are pruned.
+ * - `until=` Prune images created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
+ * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune images with (or without, in case `label!=...` is used) the specified labels.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImagePruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImagesPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function imagePrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImagePrune($queryParameters), $fetch);
+ }
+
+ /**
+ * Validate credentials for a registry and, if available, get an identity
+ * token for accessing the registry without password.
+ *
+ * @param \Docker\API\Model\AuthConfig|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SystemAuthInternalServerErrorException
+ *
+ * @return \Docker\API\Model\AuthPostResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function systemAuth(Model\AuthConfig $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SystemAuth($requestBody), $fetch);
+ }
+
+ /**
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SystemInfoInternalServerErrorException
+ *
+ * @return \Docker\API\Model\SystemInfo|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function systemInfo(string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SystemInfo(), $fetch);
+ }
+
+ /**
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SystemVersionInternalServerErrorException
+ *
+ * @return \Docker\API\Model\SystemVersion|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function systemVersion(string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SystemVersion(), $fetch);
+ }
+
+ /**
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function systemPing(string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SystemPing(), $fetch);
+ }
+
+ /**
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function systemPingHead(string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SystemPingHead(), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\ContainerConfig|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var string $container The ID or name of the container to commit
+ * @var string $repo Repository name for the created image
+ * @var string $tag Tag name for the create image
+ * @var string $comment Commit message
+ * @var string $author Author of the image (e.g., `John Hannibal Smith `)
+ * @var bool $pause Whether to pause the container before committing
+ * @var string $changes `Dockerfile` instructions to apply while committing
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageCommitNotFoundException
+ * @throws \Docker\API\Exception\ImageCommitInternalServerErrorException
+ *
+ * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageCommit(Model\ContainerConfig $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageCommit($requestBody, $queryParameters), $fetch);
+ }
+
+ /**
+ * Stream real-time events from the server.
+ *
+ * Various objects within Docker report events when something happens to them.
+ *
+ * Containers report these events: `attach`, `commit`, `copy`, `create`, `destroy`, `detach`, `die`, `exec_create`, `exec_detach`, `exec_start`, `exec_die`, `export`, `health_status`, `kill`, `oom`, `pause`, `rename`, `resize`, `restart`, `start`, `stop`, `top`, `unpause`, `update`, and `prune`
+ *
+ * Images report these events: `delete`, `import`, `load`, `pull`, `push`, `save`, `tag`, `untag`, and `prune`
+ *
+ * Volumes report these events: `create`, `mount`, `unmount`, `destroy`, and `prune`
+ *
+ * Networks report these events: `create`, `connect`, `disconnect`, `destroy`, `update`, `remove`, and `prune`
+ *
+ * The Docker daemon reports these events: `reload`
+ *
+ * Services report these events: `create`, `update`, and `remove`
+ *
+ * Nodes report these events: `create`, `update`, and `remove`
+ *
+ * Secrets report these events: `create`, `update`, and `remove`
+ *
+ * Configs report these events: `create`, `update`, and `remove`
+ *
+ * The Builder reports `prune` events
+ *
+ * @param array $queryParameters {
+ *
+ * @var string $since show events created since this timestamp then stream new events
+ * @var string $until show events created until this timestamp then stop streaming
+ * @var string $filters A JSON encoded value of filters (a `map[string][]string`) to process on the event list. Available filters:
+ *
+ * - `config=` config name or ID
+ * - `container=` container name or ID
+ * - `daemon=` daemon name or ID
+ * - `event=` event type
+ * - `image=` image name or ID
+ * - `label=` image or container label
+ * - `network=` network name or ID
+ * - `node=` node ID
+ * - `plugin`= plugin name or ID
+ * - `scope`= local or swarm
+ * - `secret=` secret name or ID
+ * - `service=` service name or ID
+ * - `type=` object to filter by, one of `container`, `image`, `volume`, `network`, `daemon`, `plugin`, `node`, `service`, `secret` or `config`
+ * - `volume=` volume name
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SystemEventsBadRequestException
+ * @throws \Docker\API\Exception\SystemEventsInternalServerErrorException
+ *
+ * @return \Docker\API\Model\EventsGetResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function systemEvents(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SystemEvents($queryParameters), $fetch);
+ }
+
+ /**
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\SystemDataUsageInternalServerErrorException
+ *
+ * @return \Docker\API\Model\SystemDfGetJsonResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function systemDataUsage(string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SystemDataUsage($accept), $fetch);
+ }
+
+ /**
+ * Get a tarball containing all images and metadata for a repository.
+ *
+ * If `name` is a specific name and tag (e.g. `ubuntu:latest`), then only that image (and its parents) are returned. If `name` is an image ID, similarly only that image (and its parents) are returned, but with the exclusion of the `repositories` file in the tarball, as there were no image names referenced.
+ *
+ * ### Image tarball format
+ *
+ * An image tarball contains one directory per image layer (named using its long ID), each containing these files:
+ *
+ * - `VERSION`: currently `1.0` - the file format version
+ * - `json`: detailed layer information, similar to `docker inspect layer_id`
+ * - `layer.tar`: A tarfile containing the filesystem changes in this layer
+ *
+ * The `layer.tar` file contains `aufs` style `.wh..wh.aufs` files and directories for storing attribute changes and deletions.
+ *
+ * If the tarball defines a repository, the tarball should also include a `repositories` file at the root that contains a list of repository and tag names mapped to layer IDs.
+ *
+ * ```json
+ * {
+ * "hello-world": {
+ * "latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"
+ * }
+ * }
+ * ```
+ *
+ * @param string $name Image name or ID
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageGet(string $name, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageGet($name), $fetch);
+ }
+
+ /**
+ * Get a tarball containing all images and metadata for several image
+ * repositories.
+ *
+ * For each value of the `names` parameter: if it is a specific name and
+ * tag (e.g. `ubuntu:latest`), then only that image (and its parents) are
+ * returned; if it is an image ID, similarly only that image (and its parents)
+ * are returned and there would be no names referenced in the 'repositories'
+ * file for this image ID.
+ *
+ * For details on the format, see the [export image endpoint](#operation/ImageGet).
+ *
+ * @param array $queryParameters {
+ *
+ * @var array $names Image names to filter by
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageGetAll(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageGetAll($queryParameters), $fetch);
+ }
+
+ /**
+ * Load a set of images and tags into a repository.
+ *
+ * For details on the format, see the [export image endpoint](#operation/ImageGet).
+ *
+ * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var bool $quiet Suppress progress details during load.
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ImageLoadInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function imageLoad($requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ImageLoad($requestBody, $queryParameters), $fetch);
+ }
+
+ /**
+ * Run a command inside a running container.
+ *
+ * @param string $id ID or name of container
+ * @param \Docker\API\Model\ContainersIdExecPostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ContainerExecNotFoundException
+ * @throws \Docker\API\Exception\ContainerExecConflictException
+ * @throws \Docker\API\Exception\ContainerExecInternalServerErrorException
+ *
+ * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function containerExec(string $id, Model\ContainersIdExecPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ContainerExec($id, $requestBody), $fetch);
+ }
+
+ /**
+ * Starts a previously set up exec instance. If detach is true, this endpoint
+ * returns immediately after starting the command. Otherwise, it sets up an
+ * interactive session with the command.
+ *
+ * @param string $id Exec instance ID
+ * @param \Docker\API\Model\ExecIdStartPostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function execStart(string $id, Model\ExecIdStartPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ExecStart($id, $requestBody), $fetch);
+ }
+
+ /**
+ * Resize the TTY session used by an exec instance. This endpoint only works
+ * if `tty` was specified as part of creating and starting the exec instance.
+ *
+ * @param string $id Exec instance ID
+ * @param array $queryParameters {
+ *
+ * @var int $h Height of the TTY session in characters
+ * @var int $w Width of the TTY session in characters
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ExecResizeNotFoundException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function execResize(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ExecResize($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Return low-level information about an exec instance.
+ *
+ * @param string $id Exec instance ID
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ExecInspectNotFoundException
+ * @throws \Docker\API\Exception\ExecInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ExecIdJsonGetResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function execInspect(string $id, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ExecInspect($id), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to
+ * process on the volumes list. Available filters:
+ *
+ * - `dangling=` When set to `true` (or `1`), returns all
+ * volumes that are not in use by a container. When set to `false`
+ * (or `0`), only volumes that are in use by one or more
+ * containers are returned.
+ * - `driver=` Matches volumes based on their driver.
+ * - `label=` or `label=:` Matches volumes based on
+ * the presence of a `label` alone or a `label` and a value.
+ * - `name=` Matches all or part of a volume name.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\VolumeListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\VolumesGetResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function volumeList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\VolumeList($queryParameters), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\VolumesCreatePostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\VolumeCreateInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Volume|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function volumeCreate(Model\VolumesCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\VolumeCreate($requestBody), $fetch);
+ }
+
+ /**
+ * Instruct the driver to remove the volume.
+ *
+ * @param string $name Volume name or ID
+ * @param array $queryParameters {
+ *
+ * @var bool $force Force the removal of the volume
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\VolumeDeleteNotFoundException
+ * @throws \Docker\API\Exception\VolumeDeleteConflictException
+ * @throws \Docker\API\Exception\VolumeDeleteInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function volumeDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\VolumeDelete($name, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $name Volume name or ID
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\VolumeInspectNotFoundException
+ * @throws \Docker\API\Exception\VolumeInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Volume|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function volumeInspect(string $name, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\VolumeInspect($name), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
+ *
+ * Available filters:
+ * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune volumes with (or without, in case `label!=...` is used) the specified labels.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\VolumePruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\VolumesPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function volumePrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\VolumePrune($queryParameters), $fetch);
+ }
+
+ /**
+ * Returns a list of networks. For details on the format, see the
+ * [network inspect endpoint](#operation/NetworkInspect).
+ *
+ * Note that it uses a different, smaller representation of a network than
+ * inspecting a single network. For example, the list of containers attached
+ * to the network is not propagated in API versions 1.28 and up.
+ *
+ * @param array $queryParameters {
+ *
+ * @var string $filters JSON encoded value of the filters (a `map[string][]string`) to process
+ * on the networks list.
+ *
+ * Available filters:
+ *
+ * - `dangling=` When set to `true` (or `1`), returns all
+ * networks that are not in use by a container. When set to `false`
+ * (or `0`), only networks that are in use by one or more
+ * containers are returned.
+ * - `driver=` Matches a network's driver.
+ * - `id=` Matches all or part of a network ID.
+ * - `label=` or `label==` of a network label.
+ * - `name=` Matches all or part of a network name.
+ * - `scope=["swarm"|"global"|"local"]` Filters networks by scope (`swarm`, `global`, or `local`).
+ * - `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\NetworkListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Network[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function networkList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkList($queryParameters), $fetch);
+ }
+
+ /**
+ * @param string $id Network ID or name
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\NetworkDeleteForbiddenException
+ * @throws \Docker\API\Exception\NetworkDeleteNotFoundException
+ * @throws \Docker\API\Exception\NetworkDeleteInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function networkDelete(string $id, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkDelete($id, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id Network ID or name
+ * @param array $queryParameters {
+ *
+ * @var bool $verbose Detailed inspect output for troubleshooting
+ * @var string $scope Filter the network by scope (swarm, global, or local)
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\NetworkInspectNotFoundException
+ * @throws \Docker\API\Exception\NetworkInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Network|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function networkInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkInspect($id, $queryParameters), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\NetworksCreatePostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\NetworkCreateForbiddenException
+ * @throws \Docker\API\Exception\NetworkCreateNotFoundException
+ * @throws \Docker\API\Exception\NetworkCreateInternalServerErrorException
+ *
+ * @return \Docker\API\Model\NetworksCreatePostResponse201|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function networkCreate(Model\NetworksCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkCreate($requestBody), $fetch);
+ }
+
+ /**
+ * @param string $id Network ID or name
+ * @param \Docker\API\Model\NetworksIdConnectPostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\NetworkConnectForbiddenException
+ * @throws \Docker\API\Exception\NetworkConnectNotFoundException
+ * @throws \Docker\API\Exception\NetworkConnectInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function networkConnect(string $id, Model\NetworksIdConnectPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkConnect($id, $requestBody, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id Network ID or name
+ * @param \Docker\API\Model\NetworksIdDisconnectPostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\NetworkDisconnectForbiddenException
+ * @throws \Docker\API\Exception\NetworkDisconnectNotFoundException
+ * @throws \Docker\API\Exception\NetworkDisconnectInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function networkDisconnect(string $id, Model\NetworksIdDisconnectPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkDisconnect($id, $requestBody, $accept), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`).
+ *
+ * Available filters:
+ * - `until=` Prune networks created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
+ * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune networks with (or without, in case `label!=...` is used) the specified labels.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\NetworkPruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\NetworksPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function networkPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NetworkPrune($queryParameters), $fetch);
+ }
+
+ /**
+ * Returns information about installed plugins.
+ *
+ * @param array $queryParameters {
+ *
+ * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
+ * process on the plugin list.
+ *
+ * Available filters:
+ *
+ * - `capability=`
+ * - `enable=|`
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\PluginListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Plugin[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginList($queryParameters), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $remote The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\GetPluginPrivilegesInternalServerErrorException
+ *
+ * @return \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function getPluginPrivileges(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\GetPluginPrivileges($queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Pulls and installs a plugin. After the plugin is installed, it can be
+ * enabled using the [`POST /plugins/{name}/enable` endpoint](#operation/PostPluginsEnable).
+ *
+ * @param \Docker\API\Model\PluginsPullPostBodyItem[]|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var string $remote Remote reference for plugin to install.
+ *
+ * The `:latest` tag is optional, and is used as the default if omitted.
+ * @var string $name Local name for the pulled plugin.
+ *
+ * The `:latest` tag is optional, and is used as the default if omitted.
+ *
+ * }
+ *
+ * @param array $headerParameters {
+ *
+ * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin
+ * from a registry.
+ *
+ * Refer to the [authentication section](#section/Authentication) for
+ * details.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\PluginPullInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginPull(array $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginPull($requestBody, $queryParameters, $headerParameters), $fetch);
+ }
+
+ /**
+ * @param string $name The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PluginInspectNotFoundException
+ * @throws \Docker\API\Exception\PluginInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Plugin|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginInspect(string $name, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginInspect($name, $accept), $fetch);
+ }
+
+ /**
+ * @param string $name The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ * @param array $queryParameters {
+ *
+ * @var bool $force Disable the plugin before removing. This may result in issues if the
+ * plugin is in use by a container.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PluginDeleteNotFoundException
+ * @throws \Docker\API\Exception\PluginDeleteInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Plugin|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginDelete($name, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $name The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ * @param array $queryParameters {
+ *
+ * @var int $timeout Set the HTTP client timeout (in seconds)
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PluginEnableNotFoundException
+ * @throws \Docker\API\Exception\PluginEnableInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginEnable(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginEnable($name, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $name The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PluginDisableNotFoundException
+ * @throws \Docker\API\Exception\PluginDisableInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginDisable($name, $accept), $fetch);
+ }
+
+ /**
+ * @param string $name The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ * @param \Docker\API\Model\PluginsNameUpgradePostBodyItem[]|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var string $remote Remote reference to upgrade to.
+ *
+ * The `:latest` tag is optional, and is used as the default if omitted.
+ *
+ * }
+ *
+ * @param array $headerParameters {
+ *
+ * @var string $X-Registry-Auth A base64url-encoded auth configuration to use when pulling a plugin
+ * from a registry.
+ *
+ * Refer to the [authentication section](#section/Authentication) for
+ * details.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PluginUpgradeNotFoundException
+ * @throws \Docker\API\Exception\PluginUpgradeInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginUpgrade(string $name, array $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginUpgrade($name, $requestBody, $queryParameters, $headerParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string|resource|\Psr\Http\Message\StreamInterface|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var string $name The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PluginCreateInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginCreate($requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginCreate($requestBody, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Push a plugin to the registry.
+ *
+ * @param string $name The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PluginPushNotFoundException
+ * @throws \Docker\API\Exception\PluginPushInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginPush(string $name, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginPush($name, $accept), $fetch);
+ }
+
+ /**
+ * @param string $name The name of the plugin. The `:latest` tag is optional, and is the
+ * default if omitted.
+ * @param array[]|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\PluginSetNotFoundException
+ * @throws \Docker\API\Exception\PluginSetInternalServerErrorException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function pluginSet(string $name, array $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\PluginSet($name, $requestBody, $accept), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters Filters to process on the nodes list, encoded as JSON (a `map[string][]string`).
+ *
+ * Available filters:
+ * - `id=`
+ * - `label=`
+ * - `membership=`(`accepted`|`pending`)`
+ * - `name=`
+ * - `node.label=`
+ * - `role=`(`manager`|`worker`)`
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\NodeListInternalServerErrorException
+ * @throws \Docker\API\Exception\NodeListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Node[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function nodeList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NodeList($queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id The ID or name of the node
+ * @param array $queryParameters {
+ *
+ * @var bool $force Force remove a node from the swarm
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\NodeDeleteNotFoundException
+ * @throws \Docker\API\Exception\NodeDeleteInternalServerErrorException
+ * @throws \Docker\API\Exception\NodeDeleteServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function nodeDelete(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NodeDelete($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id The ID or name of the node
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\NodeInspectNotFoundException
+ * @throws \Docker\API\Exception\NodeInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\NodeInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Node|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function nodeInspect(string $id, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NodeInspect($id, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id The ID of the node
+ * @param \Docker\API\Model\NodeSpec|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var int $version The version number of the node object being updated. This is required
+ * to avoid conflicting writes.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\NodeUpdateBadRequestException
+ * @throws \Docker\API\Exception\NodeUpdateNotFoundException
+ * @throws \Docker\API\Exception\NodeUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\NodeUpdateServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function nodeUpdate(string $id, Model\NodeSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\NodeUpdate($id, $requestBody, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\SwarmInspectNotFoundException
+ * @throws \Docker\API\Exception\SwarmInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Swarm|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function swarmInspect(string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmInspect($accept), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\SwarmInitPostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\SwarmInitBadRequestException
+ * @throws \Docker\API\Exception\SwarmInitInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmInitServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function swarmInit(Model\SwarmInitPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmInit($requestBody, $accept), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\SwarmJoinPostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\SwarmJoinBadRequestException
+ * @throws \Docker\API\Exception\SwarmJoinInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmJoinServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function swarmJoin(Model\SwarmJoinPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmJoin($requestBody, $accept), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var bool $force Force leave swarm, even if this is the last manager or that it will
+ * break the cluster.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\SwarmLeaveInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmLeaveServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function swarmLeave(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmLeave($queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\SwarmSpec|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var int $version The version number of the swarm object being updated. This is
+ * required to avoid conflicting writes.
+ * @var bool $rotateWorkerToken rotate the worker join token
+ * @var bool $rotateManagerToken rotate the manager join token
+ * @var bool $rotateManagerUnlockKey Rotate the manager unlock key.
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\SwarmUpdateBadRequestException
+ * @throws \Docker\API\Exception\SwarmUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmUpdateServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function swarmUpdate(Model\SwarmSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmUpdate($requestBody, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\SwarmUnlockkeyInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmUnlockkeyServiceUnavailableException
+ *
+ * @return \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function swarmUnlockkey(string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmUnlockkey($accept), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\SwarmUnlockPostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SwarmUnlockInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmUnlockServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function swarmUnlock(Model\SwarmUnlockPostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SwarmUnlock($requestBody), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
+ * process on the services list.
+ *
+ * Available filters:
+ *
+ * - `id=`
+ * - `label=`
+ * - `mode=["replicated"|"global"]`
+ * - `name=`
+ * @var bool $status Include service status, with count of running and desired tasks.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ServiceListInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Service[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function serviceList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ServiceList($queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\ServicesCreatePostBody|null $requestBody
+ * @param array $headerParameters {
+ *
+ * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private
+ * registries.
+ *
+ * Refer to the [authentication section](#section/Authentication) for
+ * details.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ServiceCreateBadRequestException
+ * @throws \Docker\API\Exception\ServiceCreateForbiddenException
+ * @throws \Docker\API\Exception\ServiceCreateConflictException
+ * @throws \Docker\API\Exception\ServiceCreateInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceCreateServiceUnavailableException
+ *
+ * @return \Docker\API\Model\ServicesCreatePostResponse201|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function serviceCreate(Model\ServicesCreatePostBody $requestBody = null, array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ServiceCreate($requestBody, $headerParameters), $fetch);
+ }
+
+ /**
+ * @param string $id ID or name of service
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ServiceDeleteNotFoundException
+ * @throws \Docker\API\Exception\ServiceDeleteInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceDeleteServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function serviceDelete(string $id, string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ServiceDelete($id, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id ID or name of service
+ * @param array $queryParameters {
+ *
+ * @var bool $insertDefaults Fill empty fields with default values.
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ServiceInspectNotFoundException
+ * @throws \Docker\API\Exception\ServiceInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Service|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function serviceInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ServiceInspect($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param string $id ID or name of service
+ * @param \Docker\API\Model\ServicesIdUpdatePostBody|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var int $version The version number of the service object being updated. This is
+ * required to avoid conflicting writes.
+ * This version number should be the value as currently set on the
+ * service *before* the update. You can find the current version by
+ * calling `GET /services/{id}`
+ * @var string $registryAuthFrom if the `X-Registry-Auth` header is not specified, this parameter
+ * indicates where to find registry authorization credentials
+ * @var string $rollback Set to this parameter to `previous` to cause a server-side rollback
+ * to the previous service spec. The supplied spec will be ignored in
+ * this case.
+ *
+ * }
+ *
+ * @param array $headerParameters {
+ *
+ * @var string $X-Registry-Auth A base64url-encoded auth configuration for pulling from private
+ * registries.
+ *
+ * Refer to the [authentication section](#section/Authentication) for
+ * details.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ServiceUpdateBadRequestException
+ * @throws \Docker\API\Exception\ServiceUpdateNotFoundException
+ * @throws \Docker\API\Exception\ServiceUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceUpdateServiceUnavailableException
+ *
+ * @return \Docker\API\Model\ServiceUpdateResponse|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function serviceUpdate(string $id, Model\ServicesIdUpdatePostBody $requestBody = null, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ServiceUpdate($id, $requestBody, $queryParameters, $headerParameters), $fetch);
+ }
+
+ /**
+ * Get `stdout` and `stderr` logs from a service. See also
+ * [`/containers/{id}/logs`](#operation/ContainerLogs).
+ *
+ **Note**: This endpoint works only for services with the `local`,
+ * `json-file` or `journald` logging drivers.
+ *
+ * @param string $id ID or name of the service
+ * @param array $queryParameters {
+ *
+ * @var bool $details show service context and extra details provided to logs
+ * @var bool $follow keep connection after returning logs
+ * @var bool $stdout Return logs from `stdout`
+ * @var bool $stderr Return logs from `stderr`
+ * @var int $since Only return logs since this time, as a UNIX timestamp
+ * @var bool $timestamps Add timestamps to every log line
+ * @var string $tail Only return this number of log lines from the end of the logs.
+ * Specify as an integer or `all` to output all log lines.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ServiceLogsNotFoundException
+ * @throws \Docker\API\Exception\ServiceLogsInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceLogsServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function serviceLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ServiceLogs($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
+ * process on the tasks list.
+ *
+ * Available filters:
+ *
+ * - `desired-state=(running | shutdown | accepted)`
+ * - `id=`
+ * - `label=key` or `label="key=value"`
+ * - `name=`
+ * - `node=`
+ * - `service=`
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\TaskListInternalServerErrorException
+ * @throws \Docker\API\Exception\TaskListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Task[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function taskList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\TaskList($queryParameters), $fetch);
+ }
+
+ /**
+ * @param string $id ID of the task
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\TaskInspectNotFoundException
+ * @throws \Docker\API\Exception\TaskInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\TaskInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Task|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function taskInspect(string $id, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\TaskInspect($id), $fetch);
+ }
+
+ /**
+ * Get `stdout` and `stderr` logs from a task.
+ * See also [`/containers/{id}/logs`](#operation/ContainerLogs).
+ *
+ **Note**: This endpoint works only for services with the `local`,
+ * `json-file` or `journald` logging drivers.
+ *
+ * @param string $id ID of the task
+ * @param array $queryParameters {
+ *
+ * @var bool $details show task context and extra details provided to logs
+ * @var bool $follow keep connection after returning logs
+ * @var bool $stdout Return logs from `stdout`
+ * @var bool $stderr Return logs from `stderr`
+ * @var int $since Only return logs since this time, as a UNIX timestamp
+ * @var bool $timestamps Add timestamps to every log line
+ * @var string $tail Only return this number of log lines from the end of the logs.
+ * Specify as an integer or `all` to output all log lines.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\TaskLogsNotFoundException
+ * @throws \Docker\API\Exception\TaskLogsInternalServerErrorException
+ * @throws \Docker\API\Exception\TaskLogsServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function taskLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\TaskLogs($id, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
+ * process on the secrets list.
+ *
+ * Available filters:
+ *
+ * - `id=`
+ * - `label= or label==value`
+ * - `name=`
+ * - `names=`
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SecretListInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Secret[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function secretList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SecretList($queryParameters), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\SecretsCreatePostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SecretCreateConflictException
+ * @throws \Docker\API\Exception\SecretCreateInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretCreateServiceUnavailableException
+ *
+ * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function secretCreate(Model\SecretsCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SecretCreate($requestBody), $fetch);
+ }
+
+ /**
+ * @param string $id ID of the secret
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SecretDeleteNotFoundException
+ * @throws \Docker\API\Exception\SecretDeleteInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretDeleteServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function secretDelete(string $id, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SecretDelete($id), $fetch);
+ }
+
+ /**
+ * @param string $id ID of the secret
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\SecretInspectNotFoundException
+ * @throws \Docker\API\Exception\SecretInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Secret|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function secretInspect(string $id, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SecretInspect($id), $fetch);
+ }
+
+ /**
+ * @param string $id The ID or name of the secret
+ * @param \Docker\API\Model\SecretSpec|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var int $version The version number of the secret object being updated. This is
+ * required to avoid conflicting writes.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\SecretUpdateBadRequestException
+ * @throws \Docker\API\Exception\SecretUpdateNotFoundException
+ * @throws \Docker\API\Exception\SecretUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretUpdateServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function secretUpdate(string $id, Model\SecretSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\SecretUpdate($id, $requestBody, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * @param array $queryParameters {
+ *
+ * @var string $filters A JSON encoded value of the filters (a `map[string][]string`) to
+ * process on the configs list.
+ *
+ * Available filters:
+ *
+ * - `id=`
+ * - `label= or label==value`
+ * - `name=`
+ * - `names=`
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ConfigListInternalServerErrorException
+ * @throws \Docker\API\Exception\ConfigListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Config[]|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function configList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ConfigList($queryParameters), $fetch);
+ }
+
+ /**
+ * @param \Docker\API\Model\ConfigsCreatePostBody|null $requestBody
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ConfigCreateConflictException
+ * @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException
+ * @throws \Docker\API\Exception\ConfigCreateServiceUnavailableException
+ *
+ * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function configCreate(Model\ConfigsCreatePostBody $requestBody = null, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ConfigCreate($requestBody), $fetch);
+ }
+
+ /**
+ * @param string $id ID of the config
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ConfigDeleteNotFoundException
+ * @throws \Docker\API\Exception\ConfigDeleteInternalServerErrorException
+ * @throws \Docker\API\Exception\ConfigDeleteServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function configDelete(string $id, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ConfigDelete($id), $fetch);
+ }
+
+ /**
+ * @param string $id ID of the config
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\ConfigInspectNotFoundException
+ * @throws \Docker\API\Exception\ConfigInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\ConfigInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Config|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function configInspect(string $id, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ConfigInspect($id), $fetch);
+ }
+
+ /**
+ * @param string $id The ID or name of the config
+ * @param \Docker\API\Model\ConfigSpec|null $requestBody
+ * @param array $queryParameters {
+ *
+ * @var int $version The version number of the config object being updated. This is
+ * required to avoid conflicting writes.
+ *
+ * }
+ *
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ * @param array $accept Accept content header application/json|text/plain
+ *
+ * @throws \Docker\API\Exception\ConfigUpdateBadRequestException
+ * @throws \Docker\API\Exception\ConfigUpdateNotFoundException
+ * @throws \Docker\API\Exception\ConfigUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\ConfigUpdateServiceUnavailableException
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function configUpdate(string $id, Model\ConfigSpec $requestBody = null, array $queryParameters = [], string $fetch = self::FETCH_OBJECT, array $accept = [])
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\ConfigUpdate($id, $requestBody, $queryParameters, $accept), $fetch);
+ }
+
+ /**
+ * Return image digest and platform information by contacting the registry.
+ *
+ * @param string $name Image name or id
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @throws \Docker\API\Exception\DistributionInspectUnauthorizedException
+ * @throws \Docker\API\Exception\DistributionInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\DistributionNameJsonGetResponse200|\Psr\Http\Message\ResponseInterface|null
+ */
+ public function distributionInspect(string $name, string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\DistributionInspect($name), $fetch);
+ }
+
+ /**
+ * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
+ *
+ * @return \Psr\Http\Message\ResponseInterface|null
+ */
+ public function session(string $fetch = self::FETCH_OBJECT)
+ {
+ return $this->executeEndpoint(new \Docker\API\Endpoint\Session(), $fetch);
+ }
+
+ public static function create($httpClient = null, array $additionalPlugins = [], array $additionalNormalizers = [])
+ {
+ if ($httpClient === null) {
+ $httpClient = \Http\Discovery\Psr18ClientDiscovery::find();
+ $plugins = [];
+ $uri = \Http\Discovery\Psr17FactoryDiscovery::findUrlFactory()->createUri('/v1.41');
+ $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri);
+ if (count($additionalPlugins) > 0) {
+ $plugins = array_merge($plugins, $additionalPlugins);
+ }
+ $httpClient = new \Http\Client\Common\PluginClient($httpClient, $plugins);
+ }
+ $requestFactory = \Http\Discovery\Psr17FactoryDiscovery::findRequestFactory();
+ $streamFactory = \Http\Discovery\Psr17FactoryDiscovery::findStreamFactory();
+ $normalizers = [new \Symfony\Component\Serializer\Normalizer\ArrayDenormalizer(), new \Docker\API\Normalizer\JaneObjectNormalizer()];
+ if (count($additionalNormalizers) > 0) {
+ $normalizers = array_merge($normalizers, $additionalNormalizers);
+ }
+ $serializer = new \Symfony\Component\Serializer\Serializer($normalizers, [new \Symfony\Component\Serializer\Encoder\JsonEncoder(new \Symfony\Component\Serializer\Encoder\JsonEncode(), new \Symfony\Component\Serializer\Encoder\JsonDecode(['json_decode_associative' => true]))]);
+
+ return new static($httpClient, $requestFactory, $serializer, $streamFactory);
+ }
+}
diff --git a/src/API/Endpoint/BuildPrune.php b/src/API/Endpoint/BuildPrune.php
new file mode 100644
index 000000000..3dc62ec1f
--- /dev/null
+++ b/src/API/Endpoint/BuildPrune.php
@@ -0,0 +1,91 @@
+`: duration relative to daemon's time, during which build cache was not used, in Go's duration format (e.g., '24h')
+ * - `id=`
+ * - `parent=`
+ * - `type=`
+ * - `description=`
+ * - `inuse`
+ * - `shared`
+ * - `private`
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/build/prune';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['keep-storage', 'all', 'filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('keep-storage', ['int']);
+ $optionsResolver->addAllowedTypes('all', ['bool']);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\BuildPrunePostResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\BuildPruneInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ConfigCreate.php b/src/API/Endpoint/ConfigCreate.php
new file mode 100644
index 000000000..3f357d3c9
--- /dev/null
+++ b/src/API/Endpoint/ConfigCreate.php
@@ -0,0 +1,69 @@
+body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/configs/create';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ConfigsCreatePostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 201 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\IdResponse', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigCreateConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigCreateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ConfigDelete.php b/src/API/Endpoint/ConfigDelete.php
new file mode 100644
index 000000000..d828ded1d
--- /dev/null
+++ b/src/API/Endpoint/ConfigDelete.php
@@ -0,0 +1,68 @@
+id = $id;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/configs/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigDeleteServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ConfigInspect.php b/src/API/Endpoint/ConfigInspect.php
new file mode 100644
index 000000000..ef835dc08
--- /dev/null
+++ b/src/API/Endpoint/ConfigInspect.php
@@ -0,0 +1,69 @@
+id = $id;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/configs/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Config', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigInspectServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ConfigList.php b/src/API/Endpoint/ConfigList.php
new file mode 100644
index 000000000..b4d4658b8
--- /dev/null
+++ b/src/API/Endpoint/ConfigList.php
@@ -0,0 +1,87 @@
+`
+ * - `label= or label==value`
+ * - `name=`
+ * - `names=`
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/configs';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Config[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigListServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ConfigUpdate.php b/src/API/Endpoint/ConfigUpdate.php
new file mode 100644
index 000000000..ffd901849
--- /dev/null
+++ b/src/API/Endpoint/ConfigUpdate.php
@@ -0,0 +1,106 @@
+id = $id;
+ $this->body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/configs/{id}/update');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ConfigSpec) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if ($this->body instanceof \Docker\API\Model\ConfigSpec) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['version']);
+ $optionsResolver->setRequired(['version']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('version', ['int']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigUpdateBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigUpdateNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigUpdateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ConfigUpdateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerArchive.php b/src/API/Endpoint/ContainerArchive.php
new file mode 100644
index 000000000..f0cf23ca4
--- /dev/null
+++ b/src/API/Endpoint/ContainerArchive.php
@@ -0,0 +1,90 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/archive');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/x-tar', 'application/json']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['path']);
+ $optionsResolver->setRequired(['path']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('path', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerArchiveNotFoundException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if ($status === 400) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerArchiveNotFoundException($response);
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerArchiveInfo.php b/src/API/Endpoint/ContainerArchiveInfo.php
new file mode 100644
index 000000000..47294d2a5
--- /dev/null
+++ b/src/API/Endpoint/ContainerArchiveInfo.php
@@ -0,0 +1,96 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'HEAD';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/archive');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['path']);
+ $optionsResolver->setRequired(['path']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('path', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerArchiveInfoBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ContainersIdArchiveHeadJsonResponse400', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerArchiveInfoNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerArchiveInfoInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerAttach.php b/src/API/Endpoint/ContainerAttach.php
new file mode 100644
index 000000000..00919810d
--- /dev/null
+++ b/src/API/Endpoint/ContainerAttach.php
@@ -0,0 +1,203 @@
+` where `` 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`
+ * }
+ *
+ * @param array $accept Accept content header application/vnd.docker.raw-stream|application/json
+ */
+ public function __construct(string $id, array $queryParameters = [], array $accept = [])
+ {
+ $this->id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/attach');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/vnd.docker.raw-stream', 'application/json']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['detachKeys', 'logs', 'stream', 'stdin', 'stdout', 'stderr']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['logs' => false, 'stream' => false, 'stdin' => false, 'stdout' => false, 'stderr' => false]);
+ $optionsResolver->addAllowedTypes('detachKeys', ['string']);
+ $optionsResolver->addAllowedTypes('logs', ['bool']);
+ $optionsResolver->addAllowedTypes('stream', ['bool']);
+ $optionsResolver->addAllowedTypes('stdin', ['bool']);
+ $optionsResolver->addAllowedTypes('stdout', ['bool']);
+ $optionsResolver->addAllowedTypes('stderr', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerAttachNotFoundException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 101) {
+ }
+ if ($status === 200) {
+ }
+ if ($status === 400) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerAttachNotFoundException($response);
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerAttachWebsocket.php b/src/API/Endpoint/ContainerAttachWebsocket.php
new file mode 100644
index 000000000..fd7c54c82
--- /dev/null
+++ b/src/API/Endpoint/ContainerAttachWebsocket.php
@@ -0,0 +1,106 @@
+` where `` 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
+ */
+ public function __construct(string $id, array $queryParameters = [], array $accept = [])
+ {
+ $this->id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/attach/ws');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['detachKeys', 'logs', 'stream', 'stdin', 'stdout', 'stderr']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['logs' => false, 'stream' => false, 'stdin' => false, 'stdout' => false, 'stderr' => false]);
+ $optionsResolver->addAllowedTypes('detachKeys', ['string']);
+ $optionsResolver->addAllowedTypes('logs', ['bool']);
+ $optionsResolver->addAllowedTypes('stream', ['bool']);
+ $optionsResolver->addAllowedTypes('stdin', ['bool']);
+ $optionsResolver->addAllowedTypes('stdout', ['bool']);
+ $optionsResolver->addAllowedTypes('stderr', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 101) {
+ }
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerAttachWebsocketBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerAttachWebsocketNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerAttachWebsocketInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerChanges.php b/src/API/Endpoint/ContainerChanges.php
new file mode 100644
index 000000000..5eaf2986e
--- /dev/null
+++ b/src/API/Endpoint/ContainerChanges.php
@@ -0,0 +1,72 @@
+id = $id;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/changes');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ContainersIdChangesGetResponse200Item[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerChangesNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerChangesInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerCreate.php b/src/API/Endpoint/ContainerCreate.php
new file mode 100644
index 000000000..b1e884d60
--- /dev/null
+++ b/src/API/Endpoint/ContainerCreate.php
@@ -0,0 +1,96 @@
+body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/containers/create';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ContainersCreatePostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if ($this->body instanceof \Docker\API\Model\ContainersCreatePostBody) {
+ return [['Content-Type' => ['application/octet-stream']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['name']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('name', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 201 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ContainersCreatePostResponse201', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerCreateBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerCreateNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerCreateConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerDelete.php b/src/API/Endpoint/ContainerDelete.php
new file mode 100644
index 000000000..8f53843ac
--- /dev/null
+++ b/src/API/Endpoint/ContainerDelete.php
@@ -0,0 +1,100 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['v', 'force', 'link']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['v' => false, 'force' => false, 'link' => false]);
+ $optionsResolver->addAllowedTypes('v', ['bool']);
+ $optionsResolver->addAllowedTypes('force', ['bool']);
+ $optionsResolver->addAllowedTypes('link', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @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)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerDeleteBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerDeleteConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerExec.php b/src/API/Endpoint/ContainerExec.php
new file mode 100644
index 000000000..9cceecd2d
--- /dev/null
+++ b/src/API/Endpoint/ContainerExec.php
@@ -0,0 +1,76 @@
+id = $id;
+ $this->body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/exec');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ContainersIdExecPostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerExecNotFoundException
+ * @throws \Docker\API\Exception\ContainerExecConflictException
+ * @throws \Docker\API\Exception\ContainerExecInternalServerErrorException
+ *
+ * @return \Docker\API\Model\IdResponse|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 201 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\IdResponse', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerExecNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerExecConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerExecInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerExport.php b/src/API/Endpoint/ContainerExport.php
new file mode 100644
index 000000000..b7dfa374e
--- /dev/null
+++ b/src/API/Endpoint/ContainerExport.php
@@ -0,0 +1,71 @@
+id = $id;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/export');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/octet-stream', 'application/json']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerExportNotFoundException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerExportNotFoundException($response);
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerInspect.php b/src/API/Endpoint/ContainerInspect.php
new file mode 100644
index 000000000..509417571
--- /dev/null
+++ b/src/API/Endpoint/ContainerInspect.php
@@ -0,0 +1,83 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/json');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['size']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['size' => false]);
+ $optionsResolver->addAllowedTypes('size', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerInspectNotFoundException
+ * @throws \Docker\API\Exception\ContainerInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdJsonGetResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ContainersIdJsonGetResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerKill.php b/src/API/Endpoint/ContainerKill.php
new file mode 100644
index 000000000..4f8fe32e4
--- /dev/null
+++ b/src/API/Endpoint/ContainerKill.php
@@ -0,0 +1,95 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/kill');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['signal']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['signal' => 'SIGKILL']);
+ $optionsResolver->addAllowedTypes('signal', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerKillNotFoundException
+ * @throws \Docker\API\Exception\ContainerKillConflictException
+ * @throws \Docker\API\Exception\ContainerKillInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerKillNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerKillConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerKillInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerList.php b/src/API/Endpoint/ContainerList.php
new file mode 100644
index 000000000..797b88225
--- /dev/null
+++ b/src/API/Endpoint/ContainerList.php
@@ -0,0 +1,113 @@
+[:]`, ``, or ``)
+ * - `before`=(`` or ``)
+ * - `expose`=(`[/]`|`/[]`)
+ * - `exited=` containers with exit code of ``
+ * - `health`=(`starting`|`healthy`|`unhealthy`|`none`)
+ * - `id=` a container's ID
+ * - `isolation=`(`default`|`process`|`hyperv`) (Windows daemon only)
+ * - `is-task=`(`true`|`false`)
+ * - `label=key` or `label="key=value"` of a container label
+ * - `name=` a container's name
+ * - `network`=(`` or ``)
+ * - `publish`=(`[/]`|`/[]`)
+ * - `since`=(`` or ``)
+ * - `status=`(`created`|`restarting`|`running`|`removing`|`paused`|`exited`|`dead`)
+ * - `volume`=(`` or ``)
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/containers/json';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['all', 'limit', 'size', 'filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['all' => false, 'size' => false]);
+ $optionsResolver->addAllowedTypes('all', ['bool']);
+ $optionsResolver->addAllowedTypes('limit', ['int']);
+ $optionsResolver->addAllowedTypes('size', ['bool']);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerListBadRequestException
+ * @throws \Docker\API\Exception\ContainerListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainerSummaryItem[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ContainerSummaryItem[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerListBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerLogs.php b/src/API/Endpoint/ContainerLogs.php
new file mode 100644
index 000000000..0348104a7
--- /dev/null
+++ b/src/API/Endpoint/ContainerLogs.php
@@ -0,0 +1,108 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/logs');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['follow', 'stdout', 'stderr', 'since', 'until', 'timestamps', 'tail']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['follow' => false, 'stdout' => false, 'stderr' => false, 'since' => 0, 'until' => 0, 'timestamps' => false, 'tail' => 'all']);
+ $optionsResolver->addAllowedTypes('follow', ['bool']);
+ $optionsResolver->addAllowedTypes('stdout', ['bool']);
+ $optionsResolver->addAllowedTypes('stderr', ['bool']);
+ $optionsResolver->addAllowedTypes('since', ['int']);
+ $optionsResolver->addAllowedTypes('until', ['int']);
+ $optionsResolver->addAllowedTypes('timestamps', ['bool']);
+ $optionsResolver->addAllowedTypes('tail', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerLogsNotFoundException
+ * @throws \Docker\API\Exception\ContainerLogsInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return json_decode($body);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerLogsNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerLogsInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerPause.php b/src/API/Endpoint/ContainerPause.php
new file mode 100644
index 000000000..2aac9b189
--- /dev/null
+++ b/src/API/Endpoint/ContainerPause.php
@@ -0,0 +1,78 @@
+id = $id;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/pause');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerPauseNotFoundException
+ * @throws \Docker\API\Exception\ContainerPauseInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerPauseNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerPauseInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerPrune.php b/src/API/Endpoint/ContainerPrune.php
new file mode 100644
index 000000000..650809159
--- /dev/null
+++ b/src/API/Endpoint/ContainerPrune.php
@@ -0,0 +1,79 @@
+` Prune containers created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
+ * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune containers with (or without, in case `label!=...` is used) the specified labels.
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/containers/prune';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerPruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersPrunePostResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ContainersPrunePostResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerPruneInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerRename.php b/src/API/Endpoint/ContainerRename.php
new file mode 100644
index 000000000..8c50e4b57
--- /dev/null
+++ b/src/API/Endpoint/ContainerRename.php
@@ -0,0 +1,92 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/rename');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['name']);
+ $optionsResolver->setRequired(['name']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('name', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerRenameNotFoundException
+ * @throws \Docker\API\Exception\ContainerRenameConflictException
+ * @throws \Docker\API\Exception\ContainerRenameInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerRenameNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerRenameConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerRenameInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerResize.php b/src/API/Endpoint/ContainerResize.php
new file mode 100644
index 000000000..28040c5c0
--- /dev/null
+++ b/src/API/Endpoint/ContainerResize.php
@@ -0,0 +1,90 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/resize');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['text/plain', 'application/json']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['h', 'w']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('h', ['int']);
+ $optionsResolver->addAllowedTypes('w', ['int']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerResizeNotFoundException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerResizeNotFoundException($response);
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerRestart.php b/src/API/Endpoint/ContainerRestart.php
new file mode 100644
index 000000000..e7323ca08
--- /dev/null
+++ b/src/API/Endpoint/ContainerRestart.php
@@ -0,0 +1,88 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/restart');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['t']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('t', ['int']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerRestartNotFoundException
+ * @throws \Docker\API\Exception\ContainerRestartInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerRestartNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerRestartInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerStart.php b/src/API/Endpoint/ContainerStart.php
new file mode 100644
index 000000000..32d56b9a1
--- /dev/null
+++ b/src/API/Endpoint/ContainerStart.php
@@ -0,0 +1,93 @@
+` where `` is one
+ * of: `a-z`, `@`, `^`, `[`, `,` or `_`.
+ *
+ * }
+ *
+ * @param array $accept Accept content header application/json|text/plain
+ */
+ public function __construct(string $id, array $queryParameters = [], array $accept = [])
+ {
+ $this->id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/start');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['detachKeys']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('detachKeys', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerStartNotFoundException
+ * @throws \Docker\API\Exception\ContainerStartInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if ($status === 304) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerStartNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerStartInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerStats.php b/src/API/Endpoint/ContainerStats.php
new file mode 100644
index 000000000..8bb7f24d0
--- /dev/null
+++ b/src/API/Endpoint/ContainerStats.php
@@ -0,0 +1,113 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/stats');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['stream', 'one-shot']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['stream' => true, 'one-shot' => false]);
+ $optionsResolver->addAllowedTypes('stream', ['bool']);
+ $optionsResolver->addAllowedTypes('one-shot', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerStatsNotFoundException
+ * @throws \Docker\API\Exception\ContainerStatsInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return json_decode($body);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerStatsNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerStatsInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerStop.php b/src/API/Endpoint/ContainerStop.php
new file mode 100644
index 000000000..4b6d76f07
--- /dev/null
+++ b/src/API/Endpoint/ContainerStop.php
@@ -0,0 +1,90 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/stop');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['t']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('t', ['int']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerStopNotFoundException
+ * @throws \Docker\API\Exception\ContainerStopInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if ($status === 304) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerStopNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerStopInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerTop.php b/src/API/Endpoint/ContainerTop.php
new file mode 100644
index 000000000..d36a12d1c
--- /dev/null
+++ b/src/API/Endpoint/ContainerTop.php
@@ -0,0 +1,92 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/top');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['ps_args']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['ps_args' => '-ef']);
+ $optionsResolver->addAllowedTypes('ps_args', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerTopNotFoundException
+ * @throws \Docker\API\Exception\ContainerTopInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdTopGetJsonResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ContainersIdTopGetJsonResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerTopNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerTopInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerUnpause.php b/src/API/Endpoint/ContainerUnpause.php
new file mode 100644
index 000000000..19534e63e
--- /dev/null
+++ b/src/API/Endpoint/ContainerUnpause.php
@@ -0,0 +1,73 @@
+id = $id;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/unpause');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerUnpauseNotFoundException
+ * @throws \Docker\API\Exception\ContainerUnpauseInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerUnpauseNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerUnpauseInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerUpdate.php b/src/API/Endpoint/ContainerUpdate.php
new file mode 100644
index 000000000..af705b587
--- /dev/null
+++ b/src/API/Endpoint/ContainerUpdate.php
@@ -0,0 +1,73 @@
+id = $id;
+ $this->body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/update');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ContainersIdUpdatePostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerUpdateNotFoundException
+ * @throws \Docker\API\Exception\ContainerUpdateInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdUpdatePostResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ContainersIdUpdatePostResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerUpdateNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerUpdateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ContainerWait.php b/src/API/Endpoint/ContainerWait.php
new file mode 100644
index 000000000..f41ec23e6
--- /dev/null
+++ b/src/API/Endpoint/ContainerWait.php
@@ -0,0 +1,85 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/wait');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['condition']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['condition' => 'not-running']);
+ $optionsResolver->addAllowedTypes('condition', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ContainerWaitNotFoundException
+ * @throws \Docker\API\Exception\ContainerWaitInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ContainersIdWaitPostResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ContainersIdWaitPostResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerWaitNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ContainerWaitInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/DistributionInspect.php b/src/API/Endpoint/DistributionInspect.php
new file mode 100644
index 000000000..ac1cfa5f3
--- /dev/null
+++ b/src/API/Endpoint/DistributionInspect.php
@@ -0,0 +1,67 @@
+name = $name;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/distribution/{name}/json');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\DistributionInspectUnauthorizedException
+ * @throws \Docker\API\Exception\DistributionInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\DistributionNameJsonGetResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\DistributionNameJsonGetResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 401 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\DistributionInspectUnauthorizedException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\DistributionInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ExecInspect.php b/src/API/Endpoint/ExecInspect.php
new file mode 100644
index 000000000..62642e6bd
--- /dev/null
+++ b/src/API/Endpoint/ExecInspect.php
@@ -0,0 +1,67 @@
+id = $id;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/exec/{id}/json');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ExecInspectNotFoundException
+ * @throws \Docker\API\Exception\ExecInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ExecIdJsonGetResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ExecIdJsonGetResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ExecInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ExecInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ExecResize.php b/src/API/Endpoint/ExecResize.php
new file mode 100644
index 000000000..d2fd78df9
--- /dev/null
+++ b/src/API/Endpoint/ExecResize.php
@@ -0,0 +1,89 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/exec/{id}/resize');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['h', 'w']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('h', ['int']);
+ $optionsResolver->addAllowedTypes('w', ['int']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ExecResizeNotFoundException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 201) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ExecResizeNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ExecStart.php b/src/API/Endpoint/ExecStart.php
new file mode 100644
index 000000000..e892e4035
--- /dev/null
+++ b/src/API/Endpoint/ExecStart.php
@@ -0,0 +1,68 @@
+id = $id;
+ $this->body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/exec/{id}/start');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ExecIdStartPostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/vnd.docker.raw-stream']];
+ }
+
+ /**
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if ($status === 404) {
+ }
+ if ($status === 409) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/GetPluginPrivileges.php b/src/API/Endpoint/GetPluginPrivileges.php
new file mode 100644
index 000000000..8de68fef6
--- /dev/null
+++ b/src/API/Endpoint/GetPluginPrivileges.php
@@ -0,0 +1,84 @@
+queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/plugins/privileges';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['remote']);
+ $optionsResolver->setRequired(['remote']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('remote', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\GetPluginPrivilegesInternalServerErrorException
+ *
+ * @return \Docker\API\Model\PluginsPrivilegesGetJsonResponse200Item[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\PluginsPrivilegesGetJsonResponse200Item[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\GetPluginPrivilegesInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageBuild.php b/src/API/Endpoint/ImageBuild.php
new file mode 100644
index 000000000..644f03267
--- /dev/null
+++ b/src/API/Endpoint/ImageBuild.php
@@ -0,0 +1,181 @@
+`.
+ * Any other value is taken as a custom network's name or ID to which this
+ * container should connect to.
+ * @var string $platform Platform in the format os[/arch[/variant]]
+ * @var string $target Target build stage
+ * @var string $outputs BuildKit output configuration
+ * }
+ *
+ * @param array $headerParameters {
+ *
+ * @var string $Content-type
+ * @var string $X-Registry-Config This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to.
+ *
+ * The key is a registry URL, and the value is an auth configuration object, [as described in the authentication section](#section/Authentication). For example:
+ *
+ * ```
+ * {
+ * "docker.example.com": {
+ * "username": "janedoe",
+ * "password": "hunter2"
+ * },
+ * "https://index.docker.io/v1/": {
+ * "username": "mobydock",
+ * "password": "conta1n3rize14"
+ * }
+ * }
+ * ```
+ *
+ * Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a `https://` prefix and a `/v1/` suffix even though Docker will prefer to use the v2 registry API.
+ *
+ * }
+ */
+ public function __construct($requestBody = null, array $queryParameters = [], array $headerParameters = [])
+ {
+ $this->body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->headerParameters = $headerParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/build';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if (is_string($this->body) or is_resource($this->body) or $this->body instanceof \Psr\Http\Message\StreamInterface) {
+ return [['Content-Type' => ['application/octet-stream']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['dockerfile', 't', 'extrahosts', 'remote', 'q', 'nocache', 'cachefrom', 'pull', 'rm', 'forcerm', 'memory', 'memswap', 'cpushares', 'cpusetcpus', 'cpuperiod', 'cpuquota', 'buildargs', 'shmsize', 'squash', 'labels', 'networkmode', 'platform', 'target', 'outputs']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['dockerfile' => 'Dockerfile', 'q' => false, 'nocache' => false, 'rm' => true, 'forcerm' => false]);
+ $optionsResolver->addAllowedTypes('dockerfile', ['string']);
+ $optionsResolver->addAllowedTypes('t', ['string']);
+ $optionsResolver->addAllowedTypes('extrahosts', ['string']);
+ $optionsResolver->addAllowedTypes('remote', ['string']);
+ $optionsResolver->addAllowedTypes('q', ['bool']);
+ $optionsResolver->addAllowedTypes('nocache', ['bool']);
+ $optionsResolver->addAllowedTypes('cachefrom', ['string']);
+ $optionsResolver->addAllowedTypes('pull', ['string']);
+ $optionsResolver->addAllowedTypes('rm', ['bool']);
+ $optionsResolver->addAllowedTypes('forcerm', ['bool']);
+ $optionsResolver->addAllowedTypes('memory', ['int']);
+ $optionsResolver->addAllowedTypes('memswap', ['int']);
+ $optionsResolver->addAllowedTypes('cpushares', ['int']);
+ $optionsResolver->addAllowedTypes('cpusetcpus', ['string']);
+ $optionsResolver->addAllowedTypes('cpuperiod', ['int']);
+ $optionsResolver->addAllowedTypes('cpuquota', ['int']);
+ $optionsResolver->addAllowedTypes('buildargs', ['string']);
+ $optionsResolver->addAllowedTypes('shmsize', ['int']);
+ $optionsResolver->addAllowedTypes('squash', ['bool']);
+ $optionsResolver->addAllowedTypes('labels', ['string']);
+ $optionsResolver->addAllowedTypes('networkmode', ['string']);
+ $optionsResolver->addAllowedTypes('platform', ['string']);
+ $optionsResolver->addAllowedTypes('target', ['string']);
+ $optionsResolver->addAllowedTypes('outputs', ['string']);
+
+ return $optionsResolver;
+ }
+
+ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getHeadersOptionsResolver();
+ $optionsResolver->setDefined(['Content-type', 'X-Registry-Config']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['Content-type' => 'application/x-tar']);
+ $optionsResolver->addAllowedTypes('Content-type', ['string']);
+ $optionsResolver->addAllowedTypes('X-Registry-Config', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageBuildBadRequestException
+ * @throws \Docker\API\Exception\ImageBuildInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageBuildBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageBuildInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageCommit.php b/src/API/Endpoint/ImageCommit.php
new file mode 100644
index 000000000..2bcf6ab74
--- /dev/null
+++ b/src/API/Endpoint/ImageCommit.php
@@ -0,0 +1,95 @@
+`)
+ * @var bool $pause Whether to pause the container before committing
+ * @var string $changes `Dockerfile` instructions to apply while committing
+ * }
+ */
+ public function __construct(\Docker\API\Model\ContainerConfig $requestBody = null, array $queryParameters = [])
+ {
+ $this->body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/commit';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ContainerConfig) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['container', 'repo', 'tag', 'comment', 'author', 'pause', 'changes']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['pause' => true]);
+ $optionsResolver->addAllowedTypes('container', ['string']);
+ $optionsResolver->addAllowedTypes('repo', ['string']);
+ $optionsResolver->addAllowedTypes('tag', ['string']);
+ $optionsResolver->addAllowedTypes('comment', ['string']);
+ $optionsResolver->addAllowedTypes('author', ['string']);
+ $optionsResolver->addAllowedTypes('pause', ['bool']);
+ $optionsResolver->addAllowedTypes('changes', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageCommitNotFoundException
+ * @throws \Docker\API\Exception\ImageCommitInternalServerErrorException
+ *
+ * @return \Docker\API\Model\IdResponse|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 201 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\IdResponse', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageCommitNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageCommitInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageCreate.php b/src/API/Endpoint/ImageCreate.php
new file mode 100644
index 000000000..dce065296
--- /dev/null
+++ b/src/API/Endpoint/ImageCreate.php
@@ -0,0 +1,118 @@
+body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->headerParameters = $headerParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/images/create';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if (is_string($this->body)) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+ if (is_string($this->body)) {
+ return [['Content-Type' => ['application/octet-stream']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['fromImage', 'fromSrc', 'repo', 'tag', 'message', 'platform']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('fromImage', ['string']);
+ $optionsResolver->addAllowedTypes('fromSrc', ['string']);
+ $optionsResolver->addAllowedTypes('repo', ['string']);
+ $optionsResolver->addAllowedTypes('tag', ['string']);
+ $optionsResolver->addAllowedTypes('message', ['string']);
+ $optionsResolver->addAllowedTypes('platform', ['string']);
+
+ return $optionsResolver;
+ }
+
+ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getHeadersOptionsResolver();
+ $optionsResolver->setDefined(['X-Registry-Auth']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('X-Registry-Auth', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageCreateNotFoundException
+ * @throws \Docker\API\Exception\ImageCreateInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageCreateNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageDelete.php b/src/API/Endpoint/ImageDelete.php
new file mode 100644
index 000000000..a489b7e6a
--- /dev/null
+++ b/src/API/Endpoint/ImageDelete.php
@@ -0,0 +1,93 @@
+name = $name;
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/images/{name}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['force', 'noprune']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['force' => false, 'noprune' => false]);
+ $optionsResolver->addAllowedTypes('force', ['bool']);
+ $optionsResolver->addAllowedTypes('noprune', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageDeleteNotFoundException
+ * @throws \Docker\API\Exception\ImageDeleteConflictException
+ * @throws \Docker\API\Exception\ImageDeleteInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImageDeleteResponseItem[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ImageDeleteResponseItem[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageDeleteConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageGet.php b/src/API/Endpoint/ImageGet.php
new file mode 100644
index 000000000..95fba3ccf
--- /dev/null
+++ b/src/API/Endpoint/ImageGet.php
@@ -0,0 +1,81 @@
+name = $name;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/images/{name}/get');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/x-tar']];
+ }
+
+ /**
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageGetAll.php b/src/API/Endpoint/ImageGetAll.php
new file mode 100644
index 000000000..29f511746
--- /dev/null
+++ b/src/API/Endpoint/ImageGetAll.php
@@ -0,0 +1,81 @@
+queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/images/get';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/x-tar']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['names']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('names', ['array']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageHistory.php b/src/API/Endpoint/ImageHistory.php
new file mode 100644
index 000000000..e2ed86808
--- /dev/null
+++ b/src/API/Endpoint/ImageHistory.php
@@ -0,0 +1,67 @@
+name = $name;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/images/{name}/history');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageHistoryNotFoundException
+ * @throws \Docker\API\Exception\ImageHistoryInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImagesNameHistoryGetResponse200Item[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ImagesNameHistoryGetResponse200Item[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageHistoryNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageHistoryInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageInspect.php b/src/API/Endpoint/ImageInspect.php
new file mode 100644
index 000000000..20fd05a3e
--- /dev/null
+++ b/src/API/Endpoint/ImageInspect.php
@@ -0,0 +1,67 @@
+name = $name;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/images/{name}/json');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageInspectNotFoundException
+ * @throws \Docker\API\Exception\ImageInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Image|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Image', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageList.php b/src/API/Endpoint/ImageList.php
new file mode 100644
index 000000000..dcce66c6d
--- /dev/null
+++ b/src/API/Endpoint/ImageList.php
@@ -0,0 +1,89 @@
+[:]`, `` or ``)
+ * - `dangling=true`
+ * - `label=key` or `label="key=value"` of an image label
+ * - `reference`=(`[:]`)
+ * - `since`=(`[:]`, `` or ``)
+ * @var bool $digests Show digest information as a `RepoDigests` field on each image.
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/images/json';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['all', 'filters', 'digests']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['all' => false, 'digests' => false]);
+ $optionsResolver->addAllowedTypes('all', ['bool']);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+ $optionsResolver->addAllowedTypes('digests', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImageSummary[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ImageSummary[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageLoad.php b/src/API/Endpoint/ImageLoad.php
new file mode 100644
index 000000000..3c3cc109d
--- /dev/null
+++ b/src/API/Endpoint/ImageLoad.php
@@ -0,0 +1,83 @@
+body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/images/load';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if (is_string($this->body) or is_resource($this->body) or $this->body instanceof \Psr\Http\Message\StreamInterface) {
+ return [['Content-Type' => ['application/x-tar']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['quiet']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['quiet' => false]);
+ $optionsResolver->addAllowedTypes('quiet', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageLoadInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageLoadInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImagePrune.php b/src/API/Endpoint/ImagePrune.php
new file mode 100644
index 000000000..52e033700
--- /dev/null
+++ b/src/API/Endpoint/ImagePrune.php
@@ -0,0 +1,81 @@
+` When set to `true` (or `1`), prune only
+ * unused *and* untagged images. When set to `false`
+ * (or `0`), all unused images are pruned.
+ * - `until=` Prune images created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
+ * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune images with (or without, in case `label!=...` is used) the specified labels.
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/images/prune';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImagePruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImagesPrunePostResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ImagesPrunePostResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImagePruneInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImagePush.php b/src/API/Endpoint/ImagePush.php
new file mode 100644
index 000000000..dea7e987f
--- /dev/null
+++ b/src/API/Endpoint/ImagePush.php
@@ -0,0 +1,117 @@
+name = $name;
+ $this->queryParameters = $queryParameters;
+ $this->headerParameters = $headerParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/images/{name}/push');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['tag']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('tag', ['string']);
+
+ return $optionsResolver;
+ }
+
+ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getHeadersOptionsResolver();
+ $optionsResolver->setDefined(['X-Registry-Auth']);
+ $optionsResolver->setRequired(['X-Registry-Auth']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('X-Registry-Auth', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImagePushNotFoundException
+ * @throws \Docker\API\Exception\ImagePushInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImagePushNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImagePushInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageSearch.php b/src/API/Endpoint/ImageSearch.php
new file mode 100644
index 000000000..8f5c42fd2
--- /dev/null
+++ b/src/API/Endpoint/ImageSearch.php
@@ -0,0 +1,85 @@
+` Matches images that has at least 'number' stars.
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/images/search';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['term', 'limit', 'filters']);
+ $optionsResolver->setRequired(['term']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('term', ['string']);
+ $optionsResolver->addAllowedTypes('limit', ['int']);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageSearchInternalServerErrorException
+ *
+ * @return \Docker\API\Model\ImagesSearchGetResponse200Item[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ImagesSearchGetResponse200Item[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageSearchInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ImageTag.php b/src/API/Endpoint/ImageTag.php
new file mode 100644
index 000000000..a34198edc
--- /dev/null
+++ b/src/API/Endpoint/ImageTag.php
@@ -0,0 +1,100 @@
+name = $name;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/images/{name}/tag');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['repo', 'tag']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('repo', ['string']);
+ $optionsResolver->addAllowedTypes('tag', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ImageTagBadRequestException
+ * @throws \Docker\API\Exception\ImageTagNotFoundException
+ * @throws \Docker\API\Exception\ImageTagConflictException
+ * @throws \Docker\API\Exception\ImageTagInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 201) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageTagBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageTagNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageTagConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ImageTagInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NetworkConnect.php b/src/API/Endpoint/NetworkConnect.php
new file mode 100644
index 000000000..a519f7ea1
--- /dev/null
+++ b/src/API/Endpoint/NetworkConnect.php
@@ -0,0 +1,80 @@
+id = $id;
+ $this->body = $requestBody;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/networks/{id}/connect');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\NetworksIdConnectPostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NetworkConnectForbiddenException
+ * @throws \Docker\API\Exception\NetworkConnectNotFoundException
+ * @throws \Docker\API\Exception\NetworkConnectInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 403 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkConnectForbiddenException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkConnectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkConnectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NetworkCreate.php b/src/API/Endpoint/NetworkCreate.php
new file mode 100644
index 000000000..d49295e47
--- /dev/null
+++ b/src/API/Endpoint/NetworkCreate.php
@@ -0,0 +1,69 @@
+body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/networks/create';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\NetworksCreatePostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NetworkCreateForbiddenException
+ * @throws \Docker\API\Exception\NetworkCreateNotFoundException
+ * @throws \Docker\API\Exception\NetworkCreateInternalServerErrorException
+ *
+ * @return \Docker\API\Model\NetworksCreatePostResponse201|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 201 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\NetworksCreatePostResponse201', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 403 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkCreateForbiddenException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkCreateNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NetworkDelete.php b/src/API/Endpoint/NetworkDelete.php
new file mode 100644
index 000000000..8585bf63d
--- /dev/null
+++ b/src/API/Endpoint/NetworkDelete.php
@@ -0,0 +1,75 @@
+id = $id;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/networks/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NetworkDeleteForbiddenException
+ * @throws \Docker\API\Exception\NetworkDeleteNotFoundException
+ * @throws \Docker\API\Exception\NetworkDeleteInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 403 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkDeleteForbiddenException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NetworkDisconnect.php b/src/API/Endpoint/NetworkDisconnect.php
new file mode 100644
index 000000000..2baafa80f
--- /dev/null
+++ b/src/API/Endpoint/NetworkDisconnect.php
@@ -0,0 +1,80 @@
+id = $id;
+ $this->body = $requestBody;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/networks/{id}/disconnect');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\NetworksIdDisconnectPostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NetworkDisconnectForbiddenException
+ * @throws \Docker\API\Exception\NetworkDisconnectNotFoundException
+ * @throws \Docker\API\Exception\NetworkDisconnectInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 403 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkDisconnectForbiddenException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkDisconnectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkDisconnectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NetworkInspect.php b/src/API/Endpoint/NetworkInspect.php
new file mode 100644
index 000000000..583066241
--- /dev/null
+++ b/src/API/Endpoint/NetworkInspect.php
@@ -0,0 +1,83 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/networks/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['verbose', 'scope']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['verbose' => false]);
+ $optionsResolver->addAllowedTypes('verbose', ['bool']);
+ $optionsResolver->addAllowedTypes('scope', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NetworkInspectNotFoundException
+ * @throws \Docker\API\Exception\NetworkInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Network|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Network', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NetworkList.php b/src/API/Endpoint/NetworkList.php
new file mode 100644
index 000000000..14a54b607
--- /dev/null
+++ b/src/API/Endpoint/NetworkList.php
@@ -0,0 +1,96 @@
+` When set to `true` (or `1`), returns all
+ * networks that are not in use by a container. When set to `false`
+ * (or `0`), only networks that are in use by one or more
+ * containers are returned.
+ * - `driver=` Matches a network's driver.
+ * - `id=` Matches all or part of a network ID.
+ * - `label=` or `label==` of a network label.
+ * - `name=` Matches all or part of a network name.
+ * - `scope=["swarm"|"global"|"local"]` Filters networks by scope (`swarm`, `global`, or `local`).
+ * - `type=["custom"|"builtin"]` Filters networks by type. The `custom` keyword returns all user-defined networks.
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/networks';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NetworkListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Network[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Network[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NetworkPrune.php b/src/API/Endpoint/NetworkPrune.php
new file mode 100644
index 000000000..9086aa573
--- /dev/null
+++ b/src/API/Endpoint/NetworkPrune.php
@@ -0,0 +1,79 @@
+` Prune networks created before this timestamp. The `` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon machine’s time.
+ * - `label` (`label=`, `label==`, `label!=`, or `label!==`) Prune networks with (or without, in case `label!=...` is used) the specified labels.
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/networks/prune';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NetworkPruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\NetworksPrunePostResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\NetworksPrunePostResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NetworkPruneInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NodeDelete.php b/src/API/Endpoint/NodeDelete.php
new file mode 100644
index 000000000..3eabd018b
--- /dev/null
+++ b/src/API/Endpoint/NodeDelete.php
@@ -0,0 +1,92 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/nodes/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['force']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['force' => false]);
+ $optionsResolver->addAllowedTypes('force', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NodeDeleteNotFoundException
+ * @throws \Docker\API\Exception\NodeDeleteInternalServerErrorException
+ * @throws \Docker\API\Exception\NodeDeleteServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeDeleteServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NodeInspect.php b/src/API/Endpoint/NodeInspect.php
new file mode 100644
index 000000000..018086c0b
--- /dev/null
+++ b/src/API/Endpoint/NodeInspect.php
@@ -0,0 +1,76 @@
+id = $id;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/nodes/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NodeInspectNotFoundException
+ * @throws \Docker\API\Exception\NodeInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\NodeInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Node|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Node', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeInspectServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NodeList.php b/src/API/Endpoint/NodeList.php
new file mode 100644
index 000000000..7a6c02b56
--- /dev/null
+++ b/src/API/Endpoint/NodeList.php
@@ -0,0 +1,95 @@
+`
+ * - `label=`
+ * - `membership=`(`accepted`|`pending`)`
+ * - `name=`
+ * - `node.label=`
+ * - `role=`(`manager`|`worker`)`
+ *
+ * }
+ *
+ * @param array $accept Accept content header application/json|text/plain
+ */
+ public function __construct(array $queryParameters = [], array $accept = [])
+ {
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/nodes';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NodeListInternalServerErrorException
+ * @throws \Docker\API\Exception\NodeListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Node[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Node[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeListServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/NodeUpdate.php b/src/API/Endpoint/NodeUpdate.php
new file mode 100644
index 000000000..de9d4d735
--- /dev/null
+++ b/src/API/Endpoint/NodeUpdate.php
@@ -0,0 +1,106 @@
+id = $id;
+ $this->body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/nodes/{id}/update');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\NodeSpec) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if ($this->body instanceof \Docker\API\Model\NodeSpec) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['version']);
+ $optionsResolver->setRequired(['version']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('version', ['int']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\NodeUpdateBadRequestException
+ * @throws \Docker\API\Exception\NodeUpdateNotFoundException
+ * @throws \Docker\API\Exception\NodeUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\NodeUpdateServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeUpdateBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeUpdateNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeUpdateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\NodeUpdateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginCreate.php b/src/API/Endpoint/PluginCreate.php
new file mode 100644
index 000000000..7a2febba2
--- /dev/null
+++ b/src/API/Endpoint/PluginCreate.php
@@ -0,0 +1,89 @@
+body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/plugins/create';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if (is_string($this->body) or is_resource($this->body) or $this->body instanceof \Psr\Http\Message\StreamInterface) {
+ return [['Content-Type' => ['application/x-tar']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['name']);
+ $optionsResolver->setRequired(['name']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('name', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginCreateInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginDelete.php b/src/API/Endpoint/PluginDelete.php
new file mode 100644
index 000000000..655132a6f
--- /dev/null
+++ b/src/API/Endpoint/PluginDelete.php
@@ -0,0 +1,92 @@
+name = $name;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/plugins/{name}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['force']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['force' => false]);
+ $optionsResolver->addAllowedTypes('force', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginDeleteNotFoundException
+ * @throws \Docker\API\Exception\PluginDeleteInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Plugin|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Plugin', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginDisable.php b/src/API/Endpoint/PluginDisable.php
new file mode 100644
index 000000000..e7e552874
--- /dev/null
+++ b/src/API/Endpoint/PluginDisable.php
@@ -0,0 +1,72 @@
+name = $name;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/plugins/{name}/disable');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginDisableNotFoundException
+ * @throws \Docker\API\Exception\PluginDisableInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginDisableNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginDisableInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginEnable.php b/src/API/Endpoint/PluginEnable.php
new file mode 100644
index 000000000..5543fedb6
--- /dev/null
+++ b/src/API/Endpoint/PluginEnable.php
@@ -0,0 +1,89 @@
+name = $name;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/plugins/{name}/enable');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['timeout']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['timeout' => 0]);
+ $optionsResolver->addAllowedTypes('timeout', ['int']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginEnableNotFoundException
+ * @throws \Docker\API\Exception\PluginEnableInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginEnableNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginEnableInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginInspect.php b/src/API/Endpoint/PluginInspect.php
new file mode 100644
index 000000000..50b7491dd
--- /dev/null
+++ b/src/API/Endpoint/PluginInspect.php
@@ -0,0 +1,73 @@
+name = $name;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/plugins/{name}/json');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginInspectNotFoundException
+ * @throws \Docker\API\Exception\PluginInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Plugin|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Plugin', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginList.php b/src/API/Endpoint/PluginList.php
new file mode 100644
index 000000000..1ac71c94e
--- /dev/null
+++ b/src/API/Endpoint/PluginList.php
@@ -0,0 +1,83 @@
+`
+ * - `enable=|`
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/plugins';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Plugin[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Plugin[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginPull.php b/src/API/Endpoint/PluginPull.php
new file mode 100644
index 000000000..a565a732d
--- /dev/null
+++ b/src/API/Endpoint/PluginPull.php
@@ -0,0 +1,114 @@
+body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->headerParameters = $headerParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/plugins/pull';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if (is_array($this->body) and isset($this->body[0]) and $this->body[0] instanceof \Docker\API\Model\PluginsPullPostBodyItem) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if (is_array($this->body) and isset($this->body[0]) and $this->body[0] instanceof \Docker\API\Model\PluginsPullPostBodyItem) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['remote', 'name']);
+ $optionsResolver->setRequired(['remote']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('remote', ['string']);
+ $optionsResolver->addAllowedTypes('name', ['string']);
+
+ return $optionsResolver;
+ }
+
+ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getHeadersOptionsResolver();
+ $optionsResolver->setDefined(['X-Registry-Auth']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('X-Registry-Auth', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginPullInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginPullInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginPush.php b/src/API/Endpoint/PluginPush.php
new file mode 100644
index 000000000..cc0bcad40
--- /dev/null
+++ b/src/API/Endpoint/PluginPush.php
@@ -0,0 +1,74 @@
+name = $name;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/plugins/{name}/push');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginPushNotFoundException
+ * @throws \Docker\API\Exception\PluginPushInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginPushNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginPushInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginSet.php b/src/API/Endpoint/PluginSet.php
new file mode 100644
index 000000000..39f3c66a3
--- /dev/null
+++ b/src/API/Endpoint/PluginSet.php
@@ -0,0 +1,78 @@
+name = $name;
+ $this->body = $requestBody;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/plugins/{name}/set');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if (is_array($this->body) and isset($this->body[0]) and is_array($this->body[0])) {
+ return [['Content-Type' => ['application/json']], json_encode($this->body)];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginSetNotFoundException
+ * @throws \Docker\API\Exception\PluginSetInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginSetNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginSetInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PluginUpgrade.php b/src/API/Endpoint/PluginUpgrade.php
new file mode 100644
index 000000000..b40a2159b
--- /dev/null
+++ b/src/API/Endpoint/PluginUpgrade.php
@@ -0,0 +1,123 @@
+name = $name;
+ $this->body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->headerParameters = $headerParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/plugins/{name}/upgrade');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if (is_array($this->body) and isset($this->body[0]) and $this->body[0] instanceof \Docker\API\Model\PluginsNameUpgradePostBodyItem) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if (is_array($this->body) and isset($this->body[0]) and $this->body[0] instanceof \Docker\API\Model\PluginsNameUpgradePostBodyItem) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['remote']);
+ $optionsResolver->setRequired(['remote']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('remote', ['string']);
+
+ return $optionsResolver;
+ }
+
+ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getHeadersOptionsResolver();
+ $optionsResolver->setDefined(['X-Registry-Auth']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('X-Registry-Auth', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PluginUpgradeNotFoundException
+ * @throws \Docker\API\Exception\PluginUpgradeInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginUpgradeNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PluginUpgradeInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/PutContainerArchive.php b/src/API/Endpoint/PutContainerArchive.php
new file mode 100644
index 000000000..8329a4218
--- /dev/null
+++ b/src/API/Endpoint/PutContainerArchive.php
@@ -0,0 +1,115 @@
+id = $id;
+ $this->body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'PUT';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/containers/{id}/archive');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if (is_string($this->body) or is_resource($this->body) or $this->body instanceof \Psr\Http\Message\StreamInterface) {
+ return [['Content-Type' => ['application/x-tar']], $this->body];
+ }
+ if (is_string($this->body) or is_resource($this->body) or $this->body instanceof \Psr\Http\Message\StreamInterface) {
+ return [['Content-Type' => ['application/octet-stream']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['path', 'noOverwriteDirNonDir', 'copyUIDGID']);
+ $optionsResolver->setRequired(['path']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('path', ['string']);
+ $optionsResolver->addAllowedTypes('noOverwriteDirNonDir', ['string']);
+ $optionsResolver->addAllowedTypes('copyUIDGID', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\PutContainerArchiveBadRequestException
+ * @throws \Docker\API\Exception\PutContainerArchiveForbiddenException
+ * @throws \Docker\API\Exception\PutContainerArchiveNotFoundException
+ * @throws \Docker\API\Exception\PutContainerArchiveInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PutContainerArchiveBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 403 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PutContainerArchiveForbiddenException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PutContainerArchiveNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\PutContainerArchiveInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SecretCreate.php b/src/API/Endpoint/SecretCreate.php
new file mode 100644
index 000000000..c3824f294
--- /dev/null
+++ b/src/API/Endpoint/SecretCreate.php
@@ -0,0 +1,69 @@
+body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/secrets/create';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\SecretsCreatePostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SecretCreateConflictException
+ * @throws \Docker\API\Exception\SecretCreateInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretCreateServiceUnavailableException
+ *
+ * @return \Docker\API\Model\IdResponse|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 201 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\IdResponse', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretCreateConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretCreateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SecretDelete.php b/src/API/Endpoint/SecretDelete.php
new file mode 100644
index 000000000..a9c10a86f
--- /dev/null
+++ b/src/API/Endpoint/SecretDelete.php
@@ -0,0 +1,68 @@
+id = $id;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/secrets/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SecretDeleteNotFoundException
+ * @throws \Docker\API\Exception\SecretDeleteInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretDeleteServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretDeleteServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SecretInspect.php b/src/API/Endpoint/SecretInspect.php
new file mode 100644
index 000000000..2a709b47e
--- /dev/null
+++ b/src/API/Endpoint/SecretInspect.php
@@ -0,0 +1,69 @@
+id = $id;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/secrets/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SecretInspectNotFoundException
+ * @throws \Docker\API\Exception\SecretInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Secret|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Secret', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretInspectServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SecretList.php b/src/API/Endpoint/SecretList.php
new file mode 100644
index 000000000..f8b79d86b
--- /dev/null
+++ b/src/API/Endpoint/SecretList.php
@@ -0,0 +1,87 @@
+`
+ * - `label= or label==value`
+ * - `name=`
+ * - `names=`
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/secrets';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SecretListInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Secret[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Secret[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretListServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SecretUpdate.php b/src/API/Endpoint/SecretUpdate.php
new file mode 100644
index 000000000..dbc31a3e0
--- /dev/null
+++ b/src/API/Endpoint/SecretUpdate.php
@@ -0,0 +1,106 @@
+id = $id;
+ $this->body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/secrets/{id}/update');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\SecretSpec) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if ($this->body instanceof \Docker\API\Model\SecretSpec) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['version']);
+ $optionsResolver->setRequired(['version']);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('version', ['int']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SecretUpdateBadRequestException
+ * @throws \Docker\API\Exception\SecretUpdateNotFoundException
+ * @throws \Docker\API\Exception\SecretUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\SecretUpdateServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretUpdateBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretUpdateNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretUpdateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SecretUpdateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ServiceCreate.php b/src/API/Endpoint/ServiceCreate.php
new file mode 100644
index 000000000..6408758ee
--- /dev/null
+++ b/src/API/Endpoint/ServiceCreate.php
@@ -0,0 +1,100 @@
+body = $requestBody;
+ $this->headerParameters = $headerParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/services/create';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ServicesCreatePostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getHeadersOptionsResolver();
+ $optionsResolver->setDefined(['X-Registry-Auth']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('X-Registry-Auth', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ServiceCreateBadRequestException
+ * @throws \Docker\API\Exception\ServiceCreateForbiddenException
+ * @throws \Docker\API\Exception\ServiceCreateConflictException
+ * @throws \Docker\API\Exception\ServiceCreateInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceCreateServiceUnavailableException
+ *
+ * @return \Docker\API\Model\ServicesCreatePostResponse201|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 201 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ServicesCreatePostResponse201', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceCreateBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 403 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceCreateForbiddenException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceCreateConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceCreateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ServiceDelete.php b/src/API/Endpoint/ServiceDelete.php
new file mode 100644
index 000000000..88b188a6e
--- /dev/null
+++ b/src/API/Endpoint/ServiceDelete.php
@@ -0,0 +1,75 @@
+id = $id;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/services/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ServiceDeleteNotFoundException
+ * @throws \Docker\API\Exception\ServiceDeleteInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceDeleteServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceDeleteServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ServiceInspect.php b/src/API/Endpoint/ServiceInspect.php
new file mode 100644
index 000000000..acad48d24
--- /dev/null
+++ b/src/API/Endpoint/ServiceInspect.php
@@ -0,0 +1,93 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/services/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['insertDefaults']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['insertDefaults' => false]);
+ $optionsResolver->addAllowedTypes('insertDefaults', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ServiceInspectNotFoundException
+ * @throws \Docker\API\Exception\ServiceInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Service|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Service', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceInspectServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ServiceList.php b/src/API/Endpoint/ServiceList.php
new file mode 100644
index 000000000..2a08f58e4
--- /dev/null
+++ b/src/API/Endpoint/ServiceList.php
@@ -0,0 +1,97 @@
+`
+ * - `label=`
+ * - `mode=["replicated"|"global"]`
+ * - `name=`
+ * @var bool $status Include service status, with count of running and desired tasks.
+ *
+ * }
+ *
+ * @param array $accept Accept content header application/json|text/plain
+ */
+ public function __construct(array $queryParameters = [], array $accept = [])
+ {
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/services';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters', 'status']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+ $optionsResolver->addAllowedTypes('status', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ServiceListInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Service[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Service[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceListServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ServiceLogs.php b/src/API/Endpoint/ServiceLogs.php
new file mode 100644
index 000000000..66b15284f
--- /dev/null
+++ b/src/API/Endpoint/ServiceLogs.php
@@ -0,0 +1,113 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/services/{id}/logs');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['details', 'follow', 'stdout', 'stderr', 'since', 'timestamps', 'tail']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['details' => false, 'follow' => false, 'stdout' => false, 'stderr' => false, 'since' => 0, 'timestamps' => false, 'tail' => 'all']);
+ $optionsResolver->addAllowedTypes('details', ['bool']);
+ $optionsResolver->addAllowedTypes('follow', ['bool']);
+ $optionsResolver->addAllowedTypes('stdout', ['bool']);
+ $optionsResolver->addAllowedTypes('stderr', ['bool']);
+ $optionsResolver->addAllowedTypes('since', ['int']);
+ $optionsResolver->addAllowedTypes('timestamps', ['bool']);
+ $optionsResolver->addAllowedTypes('tail', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ServiceLogsNotFoundException
+ * @throws \Docker\API\Exception\ServiceLogsInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceLogsServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return json_decode($body);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceLogsNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceLogsInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceLogsServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/ServiceUpdate.php b/src/API/Endpoint/ServiceUpdate.php
new file mode 100644
index 000000000..0cc2b016a
--- /dev/null
+++ b/src/API/Endpoint/ServiceUpdate.php
@@ -0,0 +1,128 @@
+id = $id;
+ $this->body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->headerParameters = $headerParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/services/{id}/update');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\ServicesIdUpdatePostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['version', 'registryAuthFrom', 'rollback']);
+ $optionsResolver->setRequired(['version']);
+ $optionsResolver->setDefaults(['registryAuthFrom' => 'spec']);
+ $optionsResolver->addAllowedTypes('version', ['int']);
+ $optionsResolver->addAllowedTypes('registryAuthFrom', ['string']);
+ $optionsResolver->addAllowedTypes('rollback', ['string']);
+
+ return $optionsResolver;
+ }
+
+ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getHeadersOptionsResolver();
+ $optionsResolver->setDefined(['X-Registry-Auth']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('X-Registry-Auth', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\ServiceUpdateBadRequestException
+ * @throws \Docker\API\Exception\ServiceUpdateNotFoundException
+ * @throws \Docker\API\Exception\ServiceUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\ServiceUpdateServiceUnavailableException
+ *
+ * @return \Docker\API\Model\ServiceUpdateResponse|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\ServiceUpdateResponse', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceUpdateBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceUpdateNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceUpdateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\ServiceUpdateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/Session.php b/src/API/Endpoint/Session.php
new file mode 100644
index 000000000..740ccbf7a
--- /dev/null
+++ b/src/API/Endpoint/Session.php
@@ -0,0 +1,50 @@
+ ['application/vnd.docker.raw-stream']];
+ }
+
+ /**
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 101) {
+ }
+ if ($status === 400) {
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SwarmInit.php b/src/API/Endpoint/SwarmInit.php
new file mode 100644
index 000000000..3f9747eda
--- /dev/null
+++ b/src/API/Endpoint/SwarmInit.php
@@ -0,0 +1,81 @@
+body = $requestBody;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/swarm/init';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\SwarmInitPostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if ($this->body instanceof \Docker\API\Model\SwarmInitPostBody) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SwarmInitBadRequestException
+ * @throws \Docker\API\Exception\SwarmInitInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmInitServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return json_decode($body);
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmInitBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmInitInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmInitServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SwarmInspect.php b/src/API/Endpoint/SwarmInspect.php
new file mode 100644
index 000000000..c25a1c2cc
--- /dev/null
+++ b/src/API/Endpoint/SwarmInspect.php
@@ -0,0 +1,73 @@
+accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/swarm';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SwarmInspectNotFoundException
+ * @throws \Docker\API\Exception\SwarmInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Swarm|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Swarm', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmInspectServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SwarmJoin.php b/src/API/Endpoint/SwarmJoin.php
new file mode 100644
index 000000000..0967c3601
--- /dev/null
+++ b/src/API/Endpoint/SwarmJoin.php
@@ -0,0 +1,80 @@
+body = $requestBody;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/swarm/join';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\SwarmJoinPostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if ($this->body instanceof \Docker\API\Model\SwarmJoinPostBody) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SwarmJoinBadRequestException
+ * @throws \Docker\API\Exception\SwarmJoinInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmJoinServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmJoinBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmJoinInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmJoinServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SwarmLeave.php b/src/API/Endpoint/SwarmLeave.php
new file mode 100644
index 000000000..26b7a5f3c
--- /dev/null
+++ b/src/API/Endpoint/SwarmLeave.php
@@ -0,0 +1,87 @@
+queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/swarm/leave';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['force']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['force' => false]);
+ $optionsResolver->addAllowedTypes('force', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SwarmLeaveInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmLeaveServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmLeaveInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmLeaveServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SwarmUnlock.php b/src/API/Endpoint/SwarmUnlock.php
new file mode 100644
index 000000000..736fafb95
--- /dev/null
+++ b/src/API/Endpoint/SwarmUnlock.php
@@ -0,0 +1,64 @@
+body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/swarm/unlock';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\SwarmUnlockPostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SwarmUnlockInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmUnlockServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmUnlockInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmUnlockServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SwarmUnlockkey.php b/src/API/Endpoint/SwarmUnlockkey.php
new file mode 100644
index 000000000..04637e266
--- /dev/null
+++ b/src/API/Endpoint/SwarmUnlockkey.php
@@ -0,0 +1,69 @@
+accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/swarm/unlockkey';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SwarmUnlockkeyInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmUnlockkeyServiceUnavailableException
+ *
+ * @return \Docker\API\Model\SwarmUnlockkeyGetJsonResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\SwarmUnlockkeyGetJsonResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmUnlockkeyInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmUnlockkeyServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SwarmUpdate.php b/src/API/Endpoint/SwarmUpdate.php
new file mode 100644
index 000000000..287d84e73
--- /dev/null
+++ b/src/API/Endpoint/SwarmUpdate.php
@@ -0,0 +1,104 @@
+body = $requestBody;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/swarm/update';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\SwarmSpec) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+ if ($this->body instanceof \Docker\API\Model\SwarmSpec) {
+ return [['Content-Type' => ['text/plain']], $this->body];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['version', 'rotateWorkerToken', 'rotateManagerToken', 'rotateManagerUnlockKey']);
+ $optionsResolver->setRequired(['version']);
+ $optionsResolver->setDefaults(['rotateWorkerToken' => false, 'rotateManagerToken' => false, 'rotateManagerUnlockKey' => false]);
+ $optionsResolver->addAllowedTypes('version', ['int']);
+ $optionsResolver->addAllowedTypes('rotateWorkerToken', ['bool']);
+ $optionsResolver->addAllowedTypes('rotateManagerToken', ['bool']);
+ $optionsResolver->addAllowedTypes('rotateManagerUnlockKey', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SwarmUpdateBadRequestException
+ * @throws \Docker\API\Exception\SwarmUpdateInternalServerErrorException
+ * @throws \Docker\API\Exception\SwarmUpdateServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmUpdateBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmUpdateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SwarmUpdateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SystemAuth.php b/src/API/Endpoint/SystemAuth.php
new file mode 100644
index 000000000..491759134
--- /dev/null
+++ b/src/API/Endpoint/SystemAuth.php
@@ -0,0 +1,67 @@
+body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/auth';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\AuthConfig) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SystemAuthInternalServerErrorException
+ *
+ * @return \Docker\API\Model\AuthPostResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\AuthPostResponse200', 'json');
+ }
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SystemAuthInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SystemDataUsage.php b/src/API/Endpoint/SystemDataUsage.php
new file mode 100644
index 000000000..5a13dfe0d
--- /dev/null
+++ b/src/API/Endpoint/SystemDataUsage.php
@@ -0,0 +1,65 @@
+accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/system/df';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SystemDataUsageInternalServerErrorException
+ *
+ * @return \Docker\API\Model\SystemDfGetJsonResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\SystemDfGetJsonResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SystemDataUsageInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SystemEvents.php b/src/API/Endpoint/SystemEvents.php
new file mode 100644
index 000000000..0a7efe090
--- /dev/null
+++ b/src/API/Endpoint/SystemEvents.php
@@ -0,0 +1,122 @@
+` config name or ID
+ * - `container=` container name or ID
+ * - `daemon=` daemon name or ID
+ * - `event=` event type
+ * - `image=` image name or ID
+ * - `label=` image or container label
+ * - `network=` network name or ID
+ * - `node=` node ID
+ * - `plugin`= plugin name or ID
+ * - `scope`= local or swarm
+ * - `secret=` secret name or ID
+ * - `service=` service name or ID
+ * - `type=` object to filter by, one of `container`, `image`, `volume`, `network`, `daemon`, `plugin`, `node`, `service`, `secret` or `config`
+ * - `volume=` volume name
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/events';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['since', 'until', 'filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('since', ['string']);
+ $optionsResolver->addAllowedTypes('until', ['string']);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SystemEventsBadRequestException
+ * @throws \Docker\API\Exception\SystemEventsInternalServerErrorException
+ *
+ * @return \Docker\API\Model\EventsGetResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\EventsGetResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 400 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SystemEventsBadRequestException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SystemEventsInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SystemInfo.php b/src/API/Endpoint/SystemInfo.php
new file mode 100644
index 000000000..aba73f73c
--- /dev/null
+++ b/src/API/Endpoint/SystemInfo.php
@@ -0,0 +1,52 @@
+ ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SystemInfoInternalServerErrorException
+ *
+ * @return \Docker\API\Model\SystemInfo|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\SystemInfo', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SystemInfoInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SystemPing.php b/src/API/Endpoint/SystemPing.php
new file mode 100644
index 000000000..0af9c923f
--- /dev/null
+++ b/src/API/Endpoint/SystemPing.php
@@ -0,0 +1,48 @@
+ ['text/plain']];
+ }
+
+ /**
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SystemPingHead.php b/src/API/Endpoint/SystemPingHead.php
new file mode 100644
index 000000000..ab9be2520
--- /dev/null
+++ b/src/API/Endpoint/SystemPingHead.php
@@ -0,0 +1,48 @@
+ ['text/plain']];
+ }
+
+ /**
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 200) {
+ }
+ if ($status === 500) {
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/SystemVersion.php b/src/API/Endpoint/SystemVersion.php
new file mode 100644
index 000000000..fe7c9f3eb
--- /dev/null
+++ b/src/API/Endpoint/SystemVersion.php
@@ -0,0 +1,52 @@
+ ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\SystemVersionInternalServerErrorException
+ *
+ * @return \Docker\API\Model\SystemVersion|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\SystemVersion', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\SystemVersionInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/TaskInspect.php b/src/API/Endpoint/TaskInspect.php
new file mode 100644
index 000000000..a7f955acf
--- /dev/null
+++ b/src/API/Endpoint/TaskInspect.php
@@ -0,0 +1,69 @@
+id = $id;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/tasks/{id}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\TaskInspectNotFoundException
+ * @throws \Docker\API\Exception\TaskInspectInternalServerErrorException
+ * @throws \Docker\API\Exception\TaskInspectServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Task|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Task', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\TaskInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\TaskInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\TaskInspectServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/TaskList.php b/src/API/Endpoint/TaskList.php
new file mode 100644
index 000000000..16d76ebc7
--- /dev/null
+++ b/src/API/Endpoint/TaskList.php
@@ -0,0 +1,89 @@
+`
+ * - `label=key` or `label="key=value"`
+ * - `name=`
+ * - `node=`
+ * - `service=`
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/tasks';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\TaskListInternalServerErrorException
+ * @throws \Docker\API\Exception\TaskListServiceUnavailableException
+ *
+ * @return \Docker\API\Model\Task[]|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Task[]', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\TaskListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\TaskListServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/TaskLogs.php b/src/API/Endpoint/TaskLogs.php
new file mode 100644
index 000000000..23a8812b8
--- /dev/null
+++ b/src/API/Endpoint/TaskLogs.php
@@ -0,0 +1,113 @@
+id = $id;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{id}'], [$this->id], '/tasks/{id}/logs');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['details', 'follow', 'stdout', 'stderr', 'since', 'timestamps', 'tail']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['details' => false, 'follow' => false, 'stdout' => false, 'stderr' => false, 'since' => 0, 'timestamps' => false, 'tail' => 'all']);
+ $optionsResolver->addAllowedTypes('details', ['bool']);
+ $optionsResolver->addAllowedTypes('follow', ['bool']);
+ $optionsResolver->addAllowedTypes('stdout', ['bool']);
+ $optionsResolver->addAllowedTypes('stderr', ['bool']);
+ $optionsResolver->addAllowedTypes('since', ['int']);
+ $optionsResolver->addAllowedTypes('timestamps', ['bool']);
+ $optionsResolver->addAllowedTypes('tail', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\TaskLogsNotFoundException
+ * @throws \Docker\API\Exception\TaskLogsInternalServerErrorException
+ * @throws \Docker\API\Exception\TaskLogsServiceUnavailableException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return json_decode($body);
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\TaskLogsNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\TaskLogsInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 503 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\TaskLogsServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/VolumeCreate.php b/src/API/Endpoint/VolumeCreate.php
new file mode 100644
index 000000000..2a5df823c
--- /dev/null
+++ b/src/API/Endpoint/VolumeCreate.php
@@ -0,0 +1,61 @@
+body = $requestBody;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/volumes/create';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ if ($this->body instanceof \Docker\API\Model\VolumesCreatePostBody) {
+ return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
+ }
+
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\VolumeCreateInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Volume|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 201 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Volume', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\VolumeCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/VolumeDelete.php b/src/API/Endpoint/VolumeDelete.php
new file mode 100644
index 000000000..f2b7b15a1
--- /dev/null
+++ b/src/API/Endpoint/VolumeDelete.php
@@ -0,0 +1,94 @@
+name = $name;
+ $this->queryParameters = $queryParameters;
+ $this->accept = $accept;
+ }
+
+ public function getMethod(): string
+ {
+ return 'DELETE';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/volumes/{name}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ if (empty($this->accept)) {
+ return ['Accept' => ['application/json', 'text/plain']];
+ }
+
+ return $this->accept;
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['force']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults(['force' => false]);
+ $optionsResolver->addAllowedTypes('force', ['bool']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\VolumeDeleteNotFoundException
+ * @throws \Docker\API\Exception\VolumeDeleteConflictException
+ * @throws \Docker\API\Exception\VolumeDeleteInternalServerErrorException
+ *
+ * @return null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if ($status === 204) {
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\VolumeDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 409 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\VolumeDeleteConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\VolumeDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/VolumeInspect.php b/src/API/Endpoint/VolumeInspect.php
new file mode 100644
index 000000000..dc4b29e40
--- /dev/null
+++ b/src/API/Endpoint/VolumeInspect.php
@@ -0,0 +1,65 @@
+name = $name;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return str_replace(['{name}'], [$this->name], '/volumes/{name}');
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ /**
+ * @throws \Docker\API\Exception\VolumeInspectNotFoundException
+ * @throws \Docker\API\Exception\VolumeInspectInternalServerErrorException
+ *
+ * @return \Docker\API\Model\Volume|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\Volume', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 404 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\VolumeInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\VolumeInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/VolumeList.php b/src/API/Endpoint/VolumeList.php
new file mode 100644
index 000000000..0d1356e13
--- /dev/null
+++ b/src/API/Endpoint/VolumeList.php
@@ -0,0 +1,85 @@
+` When set to `true` (or `1`), returns all
+ * volumes that are not in use by a container. When set to `false`
+ * (or `0`), only volumes that are in use by one or more
+ * containers are returned.
+ * - `driver=` Matches volumes based on their driver.
+ * - `label=` or `label=:` Matches volumes based on
+ * the presence of a `label` alone or a `label` and a value.
+ * - `name=` Matches all or part of a volume name.
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'GET';
+ }
+
+ public function getUri(): string
+ {
+ return '/volumes';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\VolumeListInternalServerErrorException
+ *
+ * @return \Docker\API\Model\VolumesGetResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\VolumesGetResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\VolumeListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Endpoint/VolumePrune.php b/src/API/Endpoint/VolumePrune.php
new file mode 100644
index 000000000..1e52b7c04
--- /dev/null
+++ b/src/API/Endpoint/VolumePrune.php
@@ -0,0 +1,78 @@
+`, `label==`, `label!=`, or `label!==`) Prune volumes with (or without, in case `label!=...` is used) the specified labels.
+ *
+ * }
+ */
+ public function __construct(array $queryParameters = [])
+ {
+ $this->queryParameters = $queryParameters;
+ }
+
+ public function getMethod(): string
+ {
+ return 'POST';
+ }
+
+ public function getUri(): string
+ {
+ return '/volumes/prune';
+ }
+
+ public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
+ {
+ return [[], null];
+ }
+
+ public function getExtraHeaders(): array
+ {
+ return ['Accept' => ['application/json']];
+ }
+
+ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
+ {
+ $optionsResolver = parent::getQueryOptionsResolver();
+ $optionsResolver->setDefined(['filters']);
+ $optionsResolver->setRequired([]);
+ $optionsResolver->setDefaults([]);
+ $optionsResolver->addAllowedTypes('filters', ['string']);
+
+ return $optionsResolver;
+ }
+
+ /**
+ * @throws \Docker\API\Exception\VolumePruneInternalServerErrorException
+ *
+ * @return \Docker\API\Model\VolumesPrunePostResponse200|null
+ */
+ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $response, \Symfony\Component\Serializer\SerializerInterface $serializer, string $contentType = null)
+ {
+ $status = $response->getStatusCode();
+ $body = (string) $response->getBody();
+ if (is_null($contentType) === false && ($status === 200 && mb_strpos($contentType, 'application/json') !== false)) {
+ return $serializer->deserialize($body, 'Docker\\API\\Model\\VolumesPrunePostResponse200', 'json');
+ }
+ if (is_null($contentType) === false && ($status === 500 && mb_strpos($contentType, 'application/json') !== false)) {
+ throw new \Docker\API\Exception\VolumePruneInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
+ }
+ }
+
+ public function getAuthenticationScopes(): array
+ {
+ return [];
+ }
+}
diff --git a/src/API/Exception/ApiException.php b/src/API/Exception/ApiException.php
new file mode 100644
index 000000000..6d2192796
--- /dev/null
+++ b/src/API/Exception/ApiException.php
@@ -0,0 +1,11 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ClientException.php b/src/API/Exception/ClientException.php
new file mode 100644
index 000000000..37ba24aaf
--- /dev/null
+++ b/src/API/Exception/ClientException.php
@@ -0,0 +1,9 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigCreateInternalServerErrorException.php b/src/API/Exception/ConfigCreateInternalServerErrorException.php
new file mode 100644
index 000000000..b8b0ff260
--- /dev/null
+++ b/src/API/Exception/ConfigCreateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigCreateServiceUnavailableException.php b/src/API/Exception/ConfigCreateServiceUnavailableException.php
new file mode 100644
index 000000000..b0571c82e
--- /dev/null
+++ b/src/API/Exception/ConfigCreateServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigDeleteInternalServerErrorException.php b/src/API/Exception/ConfigDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..ecd7ceec7
--- /dev/null
+++ b/src/API/Exception/ConfigDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigDeleteNotFoundException.php b/src/API/Exception/ConfigDeleteNotFoundException.php
new file mode 100644
index 000000000..ceac44916
--- /dev/null
+++ b/src/API/Exception/ConfigDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigDeleteServiceUnavailableException.php b/src/API/Exception/ConfigDeleteServiceUnavailableException.php
new file mode 100644
index 000000000..d80c49b73
--- /dev/null
+++ b/src/API/Exception/ConfigDeleteServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigInspectInternalServerErrorException.php b/src/API/Exception/ConfigInspectInternalServerErrorException.php
new file mode 100644
index 000000000..2c6384e77
--- /dev/null
+++ b/src/API/Exception/ConfigInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigInspectNotFoundException.php b/src/API/Exception/ConfigInspectNotFoundException.php
new file mode 100644
index 000000000..b7c8bab7c
--- /dev/null
+++ b/src/API/Exception/ConfigInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigInspectServiceUnavailableException.php b/src/API/Exception/ConfigInspectServiceUnavailableException.php
new file mode 100644
index 000000000..5903584a5
--- /dev/null
+++ b/src/API/Exception/ConfigInspectServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigListInternalServerErrorException.php b/src/API/Exception/ConfigListInternalServerErrorException.php
new file mode 100644
index 000000000..497ef694b
--- /dev/null
+++ b/src/API/Exception/ConfigListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigListServiceUnavailableException.php b/src/API/Exception/ConfigListServiceUnavailableException.php
new file mode 100644
index 000000000..5d4a06355
--- /dev/null
+++ b/src/API/Exception/ConfigListServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigUpdateBadRequestException.php b/src/API/Exception/ConfigUpdateBadRequestException.php
new file mode 100644
index 000000000..0ecc24f67
--- /dev/null
+++ b/src/API/Exception/ConfigUpdateBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigUpdateInternalServerErrorException.php b/src/API/Exception/ConfigUpdateInternalServerErrorException.php
new file mode 100644
index 000000000..92f68ac77
--- /dev/null
+++ b/src/API/Exception/ConfigUpdateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigUpdateNotFoundException.php b/src/API/Exception/ConfigUpdateNotFoundException.php
new file mode 100644
index 000000000..01105c808
--- /dev/null
+++ b/src/API/Exception/ConfigUpdateNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConfigUpdateServiceUnavailableException.php b/src/API/Exception/ConfigUpdateServiceUnavailableException.php
new file mode 100644
index 000000000..a796d0c7d
--- /dev/null
+++ b/src/API/Exception/ConfigUpdateServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ConflictException.php b/src/API/Exception/ConflictException.php
new file mode 100644
index 000000000..d40905300
--- /dev/null
+++ b/src/API/Exception/ConflictException.php
@@ -0,0 +1,15 @@
+containersIdArchiveHeadJsonResponse400 = $containersIdArchiveHeadJsonResponse400;
+ $this->response = $response;
+ }
+
+ public function getContainersIdArchiveHeadJsonResponse400(): \Docker\API\Model\ContainersIdArchiveHeadJsonResponse400
+ {
+ return $this->containersIdArchiveHeadJsonResponse400;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerArchiveInfoInternalServerErrorException.php b/src/API/Exception/ContainerArchiveInfoInternalServerErrorException.php
new file mode 100644
index 000000000..a55981422
--- /dev/null
+++ b/src/API/Exception/ContainerArchiveInfoInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerArchiveInfoNotFoundException.php b/src/API/Exception/ContainerArchiveInfoNotFoundException.php
new file mode 100644
index 000000000..24b0bfb50
--- /dev/null
+++ b/src/API/Exception/ContainerArchiveInfoNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerArchiveNotFoundException.php b/src/API/Exception/ContainerArchiveNotFoundException.php
new file mode 100644
index 000000000..a5e71f675
--- /dev/null
+++ b/src/API/Exception/ContainerArchiveNotFoundException.php
@@ -0,0 +1,24 @@
+response = $response;
+ }
+
+ public function getResponse(): ?\Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerAttachNotFoundException.php b/src/API/Exception/ContainerAttachNotFoundException.php
new file mode 100644
index 000000000..2512afb1b
--- /dev/null
+++ b/src/API/Exception/ContainerAttachNotFoundException.php
@@ -0,0 +1,24 @@
+response = $response;
+ }
+
+ public function getResponse(): ?\Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerAttachWebsocketBadRequestException.php b/src/API/Exception/ContainerAttachWebsocketBadRequestException.php
new file mode 100644
index 000000000..1302675fd
--- /dev/null
+++ b/src/API/Exception/ContainerAttachWebsocketBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerAttachWebsocketInternalServerErrorException.php b/src/API/Exception/ContainerAttachWebsocketInternalServerErrorException.php
new file mode 100644
index 000000000..51274ff35
--- /dev/null
+++ b/src/API/Exception/ContainerAttachWebsocketInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerAttachWebsocketNotFoundException.php b/src/API/Exception/ContainerAttachWebsocketNotFoundException.php
new file mode 100644
index 000000000..22ad842fa
--- /dev/null
+++ b/src/API/Exception/ContainerAttachWebsocketNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerChangesInternalServerErrorException.php b/src/API/Exception/ContainerChangesInternalServerErrorException.php
new file mode 100644
index 000000000..2851e1c4f
--- /dev/null
+++ b/src/API/Exception/ContainerChangesInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerChangesNotFoundException.php b/src/API/Exception/ContainerChangesNotFoundException.php
new file mode 100644
index 000000000..2f973dd3e
--- /dev/null
+++ b/src/API/Exception/ContainerChangesNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerCreateBadRequestException.php b/src/API/Exception/ContainerCreateBadRequestException.php
new file mode 100644
index 000000000..2461c7d59
--- /dev/null
+++ b/src/API/Exception/ContainerCreateBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerCreateConflictException.php b/src/API/Exception/ContainerCreateConflictException.php
new file mode 100644
index 000000000..df93c5f04
--- /dev/null
+++ b/src/API/Exception/ContainerCreateConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerCreateInternalServerErrorException.php b/src/API/Exception/ContainerCreateInternalServerErrorException.php
new file mode 100644
index 000000000..18624c54b
--- /dev/null
+++ b/src/API/Exception/ContainerCreateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerCreateNotFoundException.php b/src/API/Exception/ContainerCreateNotFoundException.php
new file mode 100644
index 000000000..d424723a9
--- /dev/null
+++ b/src/API/Exception/ContainerCreateNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerDeleteBadRequestException.php b/src/API/Exception/ContainerDeleteBadRequestException.php
new file mode 100644
index 000000000..895a61c13
--- /dev/null
+++ b/src/API/Exception/ContainerDeleteBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerDeleteConflictException.php b/src/API/Exception/ContainerDeleteConflictException.php
new file mode 100644
index 000000000..87425031b
--- /dev/null
+++ b/src/API/Exception/ContainerDeleteConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerDeleteInternalServerErrorException.php b/src/API/Exception/ContainerDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..be965f677
--- /dev/null
+++ b/src/API/Exception/ContainerDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerDeleteNotFoundException.php b/src/API/Exception/ContainerDeleteNotFoundException.php
new file mode 100644
index 000000000..b9fbd9298
--- /dev/null
+++ b/src/API/Exception/ContainerDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerExecConflictException.php b/src/API/Exception/ContainerExecConflictException.php
new file mode 100644
index 000000000..89eaafef5
--- /dev/null
+++ b/src/API/Exception/ContainerExecConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerExecInternalServerErrorException.php b/src/API/Exception/ContainerExecInternalServerErrorException.php
new file mode 100644
index 000000000..0aab4e688
--- /dev/null
+++ b/src/API/Exception/ContainerExecInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerExecNotFoundException.php b/src/API/Exception/ContainerExecNotFoundException.php
new file mode 100644
index 000000000..e8f7d7dc6
--- /dev/null
+++ b/src/API/Exception/ContainerExecNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerExportNotFoundException.php b/src/API/Exception/ContainerExportNotFoundException.php
new file mode 100644
index 000000000..452b78698
--- /dev/null
+++ b/src/API/Exception/ContainerExportNotFoundException.php
@@ -0,0 +1,24 @@
+response = $response;
+ }
+
+ public function getResponse(): ?\Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerInspectInternalServerErrorException.php b/src/API/Exception/ContainerInspectInternalServerErrorException.php
new file mode 100644
index 000000000..6563e651b
--- /dev/null
+++ b/src/API/Exception/ContainerInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerInspectNotFoundException.php b/src/API/Exception/ContainerInspectNotFoundException.php
new file mode 100644
index 000000000..4d0dcc351
--- /dev/null
+++ b/src/API/Exception/ContainerInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerKillConflictException.php b/src/API/Exception/ContainerKillConflictException.php
new file mode 100644
index 000000000..24cc80cf9
--- /dev/null
+++ b/src/API/Exception/ContainerKillConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerKillInternalServerErrorException.php b/src/API/Exception/ContainerKillInternalServerErrorException.php
new file mode 100644
index 000000000..910fb3ed1
--- /dev/null
+++ b/src/API/Exception/ContainerKillInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerKillNotFoundException.php b/src/API/Exception/ContainerKillNotFoundException.php
new file mode 100644
index 000000000..b18cac705
--- /dev/null
+++ b/src/API/Exception/ContainerKillNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerListBadRequestException.php b/src/API/Exception/ContainerListBadRequestException.php
new file mode 100644
index 000000000..9fdd6c72f
--- /dev/null
+++ b/src/API/Exception/ContainerListBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerListInternalServerErrorException.php b/src/API/Exception/ContainerListInternalServerErrorException.php
new file mode 100644
index 000000000..c43049bb0
--- /dev/null
+++ b/src/API/Exception/ContainerListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerLogsInternalServerErrorException.php b/src/API/Exception/ContainerLogsInternalServerErrorException.php
new file mode 100644
index 000000000..5bf998d5a
--- /dev/null
+++ b/src/API/Exception/ContainerLogsInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerLogsNotFoundException.php b/src/API/Exception/ContainerLogsNotFoundException.php
new file mode 100644
index 000000000..75a1360ea
--- /dev/null
+++ b/src/API/Exception/ContainerLogsNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerPauseInternalServerErrorException.php b/src/API/Exception/ContainerPauseInternalServerErrorException.php
new file mode 100644
index 000000000..b2e654a3d
--- /dev/null
+++ b/src/API/Exception/ContainerPauseInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerPauseNotFoundException.php b/src/API/Exception/ContainerPauseNotFoundException.php
new file mode 100644
index 000000000..f2d181202
--- /dev/null
+++ b/src/API/Exception/ContainerPauseNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerPruneInternalServerErrorException.php b/src/API/Exception/ContainerPruneInternalServerErrorException.php
new file mode 100644
index 000000000..3c7d89fa5
--- /dev/null
+++ b/src/API/Exception/ContainerPruneInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerRenameConflictException.php b/src/API/Exception/ContainerRenameConflictException.php
new file mode 100644
index 000000000..a77e4758a
--- /dev/null
+++ b/src/API/Exception/ContainerRenameConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerRenameInternalServerErrorException.php b/src/API/Exception/ContainerRenameInternalServerErrorException.php
new file mode 100644
index 000000000..f8655bb6d
--- /dev/null
+++ b/src/API/Exception/ContainerRenameInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerRenameNotFoundException.php b/src/API/Exception/ContainerRenameNotFoundException.php
new file mode 100644
index 000000000..f59a909e3
--- /dev/null
+++ b/src/API/Exception/ContainerRenameNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerResizeNotFoundException.php b/src/API/Exception/ContainerResizeNotFoundException.php
new file mode 100644
index 000000000..a1c4efd06
--- /dev/null
+++ b/src/API/Exception/ContainerResizeNotFoundException.php
@@ -0,0 +1,24 @@
+response = $response;
+ }
+
+ public function getResponse(): ?\Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerRestartInternalServerErrorException.php b/src/API/Exception/ContainerRestartInternalServerErrorException.php
new file mode 100644
index 000000000..336fd2cb4
--- /dev/null
+++ b/src/API/Exception/ContainerRestartInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerRestartNotFoundException.php b/src/API/Exception/ContainerRestartNotFoundException.php
new file mode 100644
index 000000000..ad4a95903
--- /dev/null
+++ b/src/API/Exception/ContainerRestartNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerStartInternalServerErrorException.php b/src/API/Exception/ContainerStartInternalServerErrorException.php
new file mode 100644
index 000000000..8b756f853
--- /dev/null
+++ b/src/API/Exception/ContainerStartInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerStartNotFoundException.php b/src/API/Exception/ContainerStartNotFoundException.php
new file mode 100644
index 000000000..48f5ee280
--- /dev/null
+++ b/src/API/Exception/ContainerStartNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerStatsInternalServerErrorException.php b/src/API/Exception/ContainerStatsInternalServerErrorException.php
new file mode 100644
index 000000000..250f84a38
--- /dev/null
+++ b/src/API/Exception/ContainerStatsInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerStatsNotFoundException.php b/src/API/Exception/ContainerStatsNotFoundException.php
new file mode 100644
index 000000000..7466ee237
--- /dev/null
+++ b/src/API/Exception/ContainerStatsNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerStopInternalServerErrorException.php b/src/API/Exception/ContainerStopInternalServerErrorException.php
new file mode 100644
index 000000000..e2aca0020
--- /dev/null
+++ b/src/API/Exception/ContainerStopInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerStopNotFoundException.php b/src/API/Exception/ContainerStopNotFoundException.php
new file mode 100644
index 000000000..3c5bbe4ec
--- /dev/null
+++ b/src/API/Exception/ContainerStopNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerTopInternalServerErrorException.php b/src/API/Exception/ContainerTopInternalServerErrorException.php
new file mode 100644
index 000000000..f0e5b071a
--- /dev/null
+++ b/src/API/Exception/ContainerTopInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerTopNotFoundException.php b/src/API/Exception/ContainerTopNotFoundException.php
new file mode 100644
index 000000000..157145cff
--- /dev/null
+++ b/src/API/Exception/ContainerTopNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerUnpauseInternalServerErrorException.php b/src/API/Exception/ContainerUnpauseInternalServerErrorException.php
new file mode 100644
index 000000000..51f7b2746
--- /dev/null
+++ b/src/API/Exception/ContainerUnpauseInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerUnpauseNotFoundException.php b/src/API/Exception/ContainerUnpauseNotFoundException.php
new file mode 100644
index 000000000..ea8d54667
--- /dev/null
+++ b/src/API/Exception/ContainerUnpauseNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerUpdateInternalServerErrorException.php b/src/API/Exception/ContainerUpdateInternalServerErrorException.php
new file mode 100644
index 000000000..2d7628031
--- /dev/null
+++ b/src/API/Exception/ContainerUpdateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerUpdateNotFoundException.php b/src/API/Exception/ContainerUpdateNotFoundException.php
new file mode 100644
index 000000000..2eeba767a
--- /dev/null
+++ b/src/API/Exception/ContainerUpdateNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerWaitInternalServerErrorException.php b/src/API/Exception/ContainerWaitInternalServerErrorException.php
new file mode 100644
index 000000000..64db3fa41
--- /dev/null
+++ b/src/API/Exception/ContainerWaitInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ContainerWaitNotFoundException.php b/src/API/Exception/ContainerWaitNotFoundException.php
new file mode 100644
index 000000000..d4e2853c3
--- /dev/null
+++ b/src/API/Exception/ContainerWaitNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/DistributionInspectInternalServerErrorException.php b/src/API/Exception/DistributionInspectInternalServerErrorException.php
new file mode 100644
index 000000000..f395da0de
--- /dev/null
+++ b/src/API/Exception/DistributionInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/DistributionInspectUnauthorizedException.php b/src/API/Exception/DistributionInspectUnauthorizedException.php
new file mode 100644
index 000000000..328db46e4
--- /dev/null
+++ b/src/API/Exception/DistributionInspectUnauthorizedException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ExecInspectInternalServerErrorException.php b/src/API/Exception/ExecInspectInternalServerErrorException.php
new file mode 100644
index 000000000..9e4bc326f
--- /dev/null
+++ b/src/API/Exception/ExecInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ExecInspectNotFoundException.php b/src/API/Exception/ExecInspectNotFoundException.php
new file mode 100644
index 000000000..dd7daeacb
--- /dev/null
+++ b/src/API/Exception/ExecInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ExecResizeNotFoundException.php b/src/API/Exception/ExecResizeNotFoundException.php
new file mode 100644
index 000000000..352d958ae
--- /dev/null
+++ b/src/API/Exception/ExecResizeNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ForbiddenException.php b/src/API/Exception/ForbiddenException.php
new file mode 100644
index 000000000..31a9c46b6
--- /dev/null
+++ b/src/API/Exception/ForbiddenException.php
@@ -0,0 +1,15 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageBuildBadRequestException.php b/src/API/Exception/ImageBuildBadRequestException.php
new file mode 100644
index 000000000..6d0763730
--- /dev/null
+++ b/src/API/Exception/ImageBuildBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageBuildInternalServerErrorException.php b/src/API/Exception/ImageBuildInternalServerErrorException.php
new file mode 100644
index 000000000..59f8bdcee
--- /dev/null
+++ b/src/API/Exception/ImageBuildInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageCommitInternalServerErrorException.php b/src/API/Exception/ImageCommitInternalServerErrorException.php
new file mode 100644
index 000000000..aeda8c8fc
--- /dev/null
+++ b/src/API/Exception/ImageCommitInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageCommitNotFoundException.php b/src/API/Exception/ImageCommitNotFoundException.php
new file mode 100644
index 000000000..b80bff3fc
--- /dev/null
+++ b/src/API/Exception/ImageCommitNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageCreateInternalServerErrorException.php b/src/API/Exception/ImageCreateInternalServerErrorException.php
new file mode 100644
index 000000000..c657732fb
--- /dev/null
+++ b/src/API/Exception/ImageCreateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageCreateNotFoundException.php b/src/API/Exception/ImageCreateNotFoundException.php
new file mode 100644
index 000000000..2e2429d94
--- /dev/null
+++ b/src/API/Exception/ImageCreateNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageDeleteConflictException.php b/src/API/Exception/ImageDeleteConflictException.php
new file mode 100644
index 000000000..77f898161
--- /dev/null
+++ b/src/API/Exception/ImageDeleteConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageDeleteInternalServerErrorException.php b/src/API/Exception/ImageDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..df17fe10a
--- /dev/null
+++ b/src/API/Exception/ImageDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageDeleteNotFoundException.php b/src/API/Exception/ImageDeleteNotFoundException.php
new file mode 100644
index 000000000..2e401e852
--- /dev/null
+++ b/src/API/Exception/ImageDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageHistoryInternalServerErrorException.php b/src/API/Exception/ImageHistoryInternalServerErrorException.php
new file mode 100644
index 000000000..bfee684e8
--- /dev/null
+++ b/src/API/Exception/ImageHistoryInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageHistoryNotFoundException.php b/src/API/Exception/ImageHistoryNotFoundException.php
new file mode 100644
index 000000000..479078780
--- /dev/null
+++ b/src/API/Exception/ImageHistoryNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageInspectInternalServerErrorException.php b/src/API/Exception/ImageInspectInternalServerErrorException.php
new file mode 100644
index 000000000..f06f1f6ed
--- /dev/null
+++ b/src/API/Exception/ImageInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageInspectNotFoundException.php b/src/API/Exception/ImageInspectNotFoundException.php
new file mode 100644
index 000000000..c1d6da006
--- /dev/null
+++ b/src/API/Exception/ImageInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageListInternalServerErrorException.php b/src/API/Exception/ImageListInternalServerErrorException.php
new file mode 100644
index 000000000..69f4c0612
--- /dev/null
+++ b/src/API/Exception/ImageListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageLoadInternalServerErrorException.php b/src/API/Exception/ImageLoadInternalServerErrorException.php
new file mode 100644
index 000000000..8b2163241
--- /dev/null
+++ b/src/API/Exception/ImageLoadInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImagePruneInternalServerErrorException.php b/src/API/Exception/ImagePruneInternalServerErrorException.php
new file mode 100644
index 000000000..696f092a1
--- /dev/null
+++ b/src/API/Exception/ImagePruneInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImagePushInternalServerErrorException.php b/src/API/Exception/ImagePushInternalServerErrorException.php
new file mode 100644
index 000000000..3fa34318b
--- /dev/null
+++ b/src/API/Exception/ImagePushInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImagePushNotFoundException.php b/src/API/Exception/ImagePushNotFoundException.php
new file mode 100644
index 000000000..b2c788981
--- /dev/null
+++ b/src/API/Exception/ImagePushNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageSearchInternalServerErrorException.php b/src/API/Exception/ImageSearchInternalServerErrorException.php
new file mode 100644
index 000000000..82c859d76
--- /dev/null
+++ b/src/API/Exception/ImageSearchInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageTagBadRequestException.php b/src/API/Exception/ImageTagBadRequestException.php
new file mode 100644
index 000000000..c447bacca
--- /dev/null
+++ b/src/API/Exception/ImageTagBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageTagConflictException.php b/src/API/Exception/ImageTagConflictException.php
new file mode 100644
index 000000000..bc65db35f
--- /dev/null
+++ b/src/API/Exception/ImageTagConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageTagInternalServerErrorException.php b/src/API/Exception/ImageTagInternalServerErrorException.php
new file mode 100644
index 000000000..aee456a7d
--- /dev/null
+++ b/src/API/Exception/ImageTagInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ImageTagNotFoundException.php b/src/API/Exception/ImageTagNotFoundException.php
new file mode 100644
index 000000000..593758e8f
--- /dev/null
+++ b/src/API/Exception/ImageTagNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/InternalServerErrorException.php b/src/API/Exception/InternalServerErrorException.php
new file mode 100644
index 000000000..2e5760a44
--- /dev/null
+++ b/src/API/Exception/InternalServerErrorException.php
@@ -0,0 +1,15 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkConnectInternalServerErrorException.php b/src/API/Exception/NetworkConnectInternalServerErrorException.php
new file mode 100644
index 000000000..7a9e96dcf
--- /dev/null
+++ b/src/API/Exception/NetworkConnectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkConnectNotFoundException.php b/src/API/Exception/NetworkConnectNotFoundException.php
new file mode 100644
index 000000000..5c1fae315
--- /dev/null
+++ b/src/API/Exception/NetworkConnectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkCreateForbiddenException.php b/src/API/Exception/NetworkCreateForbiddenException.php
new file mode 100644
index 000000000..8e0ffcf1d
--- /dev/null
+++ b/src/API/Exception/NetworkCreateForbiddenException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkCreateInternalServerErrorException.php b/src/API/Exception/NetworkCreateInternalServerErrorException.php
new file mode 100644
index 000000000..f8dfdf623
--- /dev/null
+++ b/src/API/Exception/NetworkCreateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkCreateNotFoundException.php b/src/API/Exception/NetworkCreateNotFoundException.php
new file mode 100644
index 000000000..fdcf8ab2a
--- /dev/null
+++ b/src/API/Exception/NetworkCreateNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkDeleteForbiddenException.php b/src/API/Exception/NetworkDeleteForbiddenException.php
new file mode 100644
index 000000000..352455991
--- /dev/null
+++ b/src/API/Exception/NetworkDeleteForbiddenException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkDeleteInternalServerErrorException.php b/src/API/Exception/NetworkDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..042423629
--- /dev/null
+++ b/src/API/Exception/NetworkDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkDeleteNotFoundException.php b/src/API/Exception/NetworkDeleteNotFoundException.php
new file mode 100644
index 000000000..8b2acb7a6
--- /dev/null
+++ b/src/API/Exception/NetworkDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkDisconnectForbiddenException.php b/src/API/Exception/NetworkDisconnectForbiddenException.php
new file mode 100644
index 000000000..830dcd296
--- /dev/null
+++ b/src/API/Exception/NetworkDisconnectForbiddenException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkDisconnectInternalServerErrorException.php b/src/API/Exception/NetworkDisconnectInternalServerErrorException.php
new file mode 100644
index 000000000..955160a3d
--- /dev/null
+++ b/src/API/Exception/NetworkDisconnectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkDisconnectNotFoundException.php b/src/API/Exception/NetworkDisconnectNotFoundException.php
new file mode 100644
index 000000000..66e891493
--- /dev/null
+++ b/src/API/Exception/NetworkDisconnectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkInspectInternalServerErrorException.php b/src/API/Exception/NetworkInspectInternalServerErrorException.php
new file mode 100644
index 000000000..09755ee4c
--- /dev/null
+++ b/src/API/Exception/NetworkInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkInspectNotFoundException.php b/src/API/Exception/NetworkInspectNotFoundException.php
new file mode 100644
index 000000000..7f1ad636b
--- /dev/null
+++ b/src/API/Exception/NetworkInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkListInternalServerErrorException.php b/src/API/Exception/NetworkListInternalServerErrorException.php
new file mode 100644
index 000000000..881e3c92c
--- /dev/null
+++ b/src/API/Exception/NetworkListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NetworkPruneInternalServerErrorException.php b/src/API/Exception/NetworkPruneInternalServerErrorException.php
new file mode 100644
index 000000000..c957acd6a
--- /dev/null
+++ b/src/API/Exception/NetworkPruneInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeDeleteInternalServerErrorException.php b/src/API/Exception/NodeDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..c968a408a
--- /dev/null
+++ b/src/API/Exception/NodeDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeDeleteNotFoundException.php b/src/API/Exception/NodeDeleteNotFoundException.php
new file mode 100644
index 000000000..bffeeedd8
--- /dev/null
+++ b/src/API/Exception/NodeDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeDeleteServiceUnavailableException.php b/src/API/Exception/NodeDeleteServiceUnavailableException.php
new file mode 100644
index 000000000..36872a20d
--- /dev/null
+++ b/src/API/Exception/NodeDeleteServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeInspectInternalServerErrorException.php b/src/API/Exception/NodeInspectInternalServerErrorException.php
new file mode 100644
index 000000000..4fc618339
--- /dev/null
+++ b/src/API/Exception/NodeInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeInspectNotFoundException.php b/src/API/Exception/NodeInspectNotFoundException.php
new file mode 100644
index 000000000..d7a7cd3d7
--- /dev/null
+++ b/src/API/Exception/NodeInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeInspectServiceUnavailableException.php b/src/API/Exception/NodeInspectServiceUnavailableException.php
new file mode 100644
index 000000000..427267b24
--- /dev/null
+++ b/src/API/Exception/NodeInspectServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeListInternalServerErrorException.php b/src/API/Exception/NodeListInternalServerErrorException.php
new file mode 100644
index 000000000..2cd0ba48b
--- /dev/null
+++ b/src/API/Exception/NodeListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeListServiceUnavailableException.php b/src/API/Exception/NodeListServiceUnavailableException.php
new file mode 100644
index 000000000..abadf6321
--- /dev/null
+++ b/src/API/Exception/NodeListServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeUpdateBadRequestException.php b/src/API/Exception/NodeUpdateBadRequestException.php
new file mode 100644
index 000000000..4a8ec8690
--- /dev/null
+++ b/src/API/Exception/NodeUpdateBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeUpdateInternalServerErrorException.php b/src/API/Exception/NodeUpdateInternalServerErrorException.php
new file mode 100644
index 000000000..9630e88ad
--- /dev/null
+++ b/src/API/Exception/NodeUpdateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeUpdateNotFoundException.php b/src/API/Exception/NodeUpdateNotFoundException.php
new file mode 100644
index 000000000..660a2b788
--- /dev/null
+++ b/src/API/Exception/NodeUpdateNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NodeUpdateServiceUnavailableException.php b/src/API/Exception/NodeUpdateServiceUnavailableException.php
new file mode 100644
index 000000000..4453c01c1
--- /dev/null
+++ b/src/API/Exception/NodeUpdateServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/NotFoundException.php b/src/API/Exception/NotFoundException.php
new file mode 100644
index 000000000..234e59ce8
--- /dev/null
+++ b/src/API/Exception/NotFoundException.php
@@ -0,0 +1,15 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginDeleteInternalServerErrorException.php b/src/API/Exception/PluginDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..c0816e5a4
--- /dev/null
+++ b/src/API/Exception/PluginDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginDeleteNotFoundException.php b/src/API/Exception/PluginDeleteNotFoundException.php
new file mode 100644
index 000000000..9daea453f
--- /dev/null
+++ b/src/API/Exception/PluginDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginDisableInternalServerErrorException.php b/src/API/Exception/PluginDisableInternalServerErrorException.php
new file mode 100644
index 000000000..017c5adae
--- /dev/null
+++ b/src/API/Exception/PluginDisableInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginDisableNotFoundException.php b/src/API/Exception/PluginDisableNotFoundException.php
new file mode 100644
index 000000000..a51779fb7
--- /dev/null
+++ b/src/API/Exception/PluginDisableNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginEnableInternalServerErrorException.php b/src/API/Exception/PluginEnableInternalServerErrorException.php
new file mode 100644
index 000000000..53b14846c
--- /dev/null
+++ b/src/API/Exception/PluginEnableInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginEnableNotFoundException.php b/src/API/Exception/PluginEnableNotFoundException.php
new file mode 100644
index 000000000..3eb438cca
--- /dev/null
+++ b/src/API/Exception/PluginEnableNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginInspectInternalServerErrorException.php b/src/API/Exception/PluginInspectInternalServerErrorException.php
new file mode 100644
index 000000000..d4242ae57
--- /dev/null
+++ b/src/API/Exception/PluginInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginInspectNotFoundException.php b/src/API/Exception/PluginInspectNotFoundException.php
new file mode 100644
index 000000000..6d1aef71e
--- /dev/null
+++ b/src/API/Exception/PluginInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginListInternalServerErrorException.php b/src/API/Exception/PluginListInternalServerErrorException.php
new file mode 100644
index 000000000..a5c7fc04f
--- /dev/null
+++ b/src/API/Exception/PluginListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginPullInternalServerErrorException.php b/src/API/Exception/PluginPullInternalServerErrorException.php
new file mode 100644
index 000000000..d1c480bf5
--- /dev/null
+++ b/src/API/Exception/PluginPullInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginPushInternalServerErrorException.php b/src/API/Exception/PluginPushInternalServerErrorException.php
new file mode 100644
index 000000000..755460296
--- /dev/null
+++ b/src/API/Exception/PluginPushInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginPushNotFoundException.php b/src/API/Exception/PluginPushNotFoundException.php
new file mode 100644
index 000000000..486ff0c53
--- /dev/null
+++ b/src/API/Exception/PluginPushNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginSetInternalServerErrorException.php b/src/API/Exception/PluginSetInternalServerErrorException.php
new file mode 100644
index 000000000..071b5d3f8
--- /dev/null
+++ b/src/API/Exception/PluginSetInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginSetNotFoundException.php b/src/API/Exception/PluginSetNotFoundException.php
new file mode 100644
index 000000000..e7d2f37ca
--- /dev/null
+++ b/src/API/Exception/PluginSetNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginUpgradeInternalServerErrorException.php b/src/API/Exception/PluginUpgradeInternalServerErrorException.php
new file mode 100644
index 000000000..9a4b34c8f
--- /dev/null
+++ b/src/API/Exception/PluginUpgradeInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PluginUpgradeNotFoundException.php b/src/API/Exception/PluginUpgradeNotFoundException.php
new file mode 100644
index 000000000..e02bba697
--- /dev/null
+++ b/src/API/Exception/PluginUpgradeNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PutContainerArchiveBadRequestException.php b/src/API/Exception/PutContainerArchiveBadRequestException.php
new file mode 100644
index 000000000..903f49a7b
--- /dev/null
+++ b/src/API/Exception/PutContainerArchiveBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PutContainerArchiveForbiddenException.php b/src/API/Exception/PutContainerArchiveForbiddenException.php
new file mode 100644
index 000000000..4fd78e921
--- /dev/null
+++ b/src/API/Exception/PutContainerArchiveForbiddenException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PutContainerArchiveInternalServerErrorException.php b/src/API/Exception/PutContainerArchiveInternalServerErrorException.php
new file mode 100644
index 000000000..db3937bda
--- /dev/null
+++ b/src/API/Exception/PutContainerArchiveInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/PutContainerArchiveNotFoundException.php b/src/API/Exception/PutContainerArchiveNotFoundException.php
new file mode 100644
index 000000000..e05b6e476
--- /dev/null
+++ b/src/API/Exception/PutContainerArchiveNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretCreateConflictException.php b/src/API/Exception/SecretCreateConflictException.php
new file mode 100644
index 000000000..350fcd51a
--- /dev/null
+++ b/src/API/Exception/SecretCreateConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretCreateInternalServerErrorException.php b/src/API/Exception/SecretCreateInternalServerErrorException.php
new file mode 100644
index 000000000..19e250516
--- /dev/null
+++ b/src/API/Exception/SecretCreateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretCreateServiceUnavailableException.php b/src/API/Exception/SecretCreateServiceUnavailableException.php
new file mode 100644
index 000000000..c09454b02
--- /dev/null
+++ b/src/API/Exception/SecretCreateServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretDeleteInternalServerErrorException.php b/src/API/Exception/SecretDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..3515bcce4
--- /dev/null
+++ b/src/API/Exception/SecretDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretDeleteNotFoundException.php b/src/API/Exception/SecretDeleteNotFoundException.php
new file mode 100644
index 000000000..bb280a662
--- /dev/null
+++ b/src/API/Exception/SecretDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretDeleteServiceUnavailableException.php b/src/API/Exception/SecretDeleteServiceUnavailableException.php
new file mode 100644
index 000000000..512fe0ade
--- /dev/null
+++ b/src/API/Exception/SecretDeleteServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretInspectInternalServerErrorException.php b/src/API/Exception/SecretInspectInternalServerErrorException.php
new file mode 100644
index 000000000..9bcaa5727
--- /dev/null
+++ b/src/API/Exception/SecretInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretInspectNotFoundException.php b/src/API/Exception/SecretInspectNotFoundException.php
new file mode 100644
index 000000000..bd6dbe817
--- /dev/null
+++ b/src/API/Exception/SecretInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretInspectServiceUnavailableException.php b/src/API/Exception/SecretInspectServiceUnavailableException.php
new file mode 100644
index 000000000..ed9cd288b
--- /dev/null
+++ b/src/API/Exception/SecretInspectServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretListInternalServerErrorException.php b/src/API/Exception/SecretListInternalServerErrorException.php
new file mode 100644
index 000000000..6e085f3c1
--- /dev/null
+++ b/src/API/Exception/SecretListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretListServiceUnavailableException.php b/src/API/Exception/SecretListServiceUnavailableException.php
new file mode 100644
index 000000000..5cbf8b4bc
--- /dev/null
+++ b/src/API/Exception/SecretListServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretUpdateBadRequestException.php b/src/API/Exception/SecretUpdateBadRequestException.php
new file mode 100644
index 000000000..481d040b7
--- /dev/null
+++ b/src/API/Exception/SecretUpdateBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretUpdateInternalServerErrorException.php b/src/API/Exception/SecretUpdateInternalServerErrorException.php
new file mode 100644
index 000000000..a5b6e2739
--- /dev/null
+++ b/src/API/Exception/SecretUpdateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretUpdateNotFoundException.php b/src/API/Exception/SecretUpdateNotFoundException.php
new file mode 100644
index 000000000..8fe63ba8a
--- /dev/null
+++ b/src/API/Exception/SecretUpdateNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SecretUpdateServiceUnavailableException.php b/src/API/Exception/SecretUpdateServiceUnavailableException.php
new file mode 100644
index 000000000..456d714c0
--- /dev/null
+++ b/src/API/Exception/SecretUpdateServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServerException.php b/src/API/Exception/ServerException.php
new file mode 100644
index 000000000..76ae5c35c
--- /dev/null
+++ b/src/API/Exception/ServerException.php
@@ -0,0 +1,9 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceCreateConflictException.php b/src/API/Exception/ServiceCreateConflictException.php
new file mode 100644
index 000000000..2e2973d40
--- /dev/null
+++ b/src/API/Exception/ServiceCreateConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceCreateForbiddenException.php b/src/API/Exception/ServiceCreateForbiddenException.php
new file mode 100644
index 000000000..1a6fe6601
--- /dev/null
+++ b/src/API/Exception/ServiceCreateForbiddenException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceCreateInternalServerErrorException.php b/src/API/Exception/ServiceCreateInternalServerErrorException.php
new file mode 100644
index 000000000..6f9457303
--- /dev/null
+++ b/src/API/Exception/ServiceCreateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceCreateServiceUnavailableException.php b/src/API/Exception/ServiceCreateServiceUnavailableException.php
new file mode 100644
index 000000000..59c5ee554
--- /dev/null
+++ b/src/API/Exception/ServiceCreateServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceDeleteInternalServerErrorException.php b/src/API/Exception/ServiceDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..89f3a71e8
--- /dev/null
+++ b/src/API/Exception/ServiceDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceDeleteNotFoundException.php b/src/API/Exception/ServiceDeleteNotFoundException.php
new file mode 100644
index 000000000..c42ba3152
--- /dev/null
+++ b/src/API/Exception/ServiceDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceDeleteServiceUnavailableException.php b/src/API/Exception/ServiceDeleteServiceUnavailableException.php
new file mode 100644
index 000000000..0355948ad
--- /dev/null
+++ b/src/API/Exception/ServiceDeleteServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceInspectInternalServerErrorException.php b/src/API/Exception/ServiceInspectInternalServerErrorException.php
new file mode 100644
index 000000000..0ac6f2931
--- /dev/null
+++ b/src/API/Exception/ServiceInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceInspectNotFoundException.php b/src/API/Exception/ServiceInspectNotFoundException.php
new file mode 100644
index 000000000..e4b7a91ea
--- /dev/null
+++ b/src/API/Exception/ServiceInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceInspectServiceUnavailableException.php b/src/API/Exception/ServiceInspectServiceUnavailableException.php
new file mode 100644
index 000000000..8cc3cb2ed
--- /dev/null
+++ b/src/API/Exception/ServiceInspectServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceListInternalServerErrorException.php b/src/API/Exception/ServiceListInternalServerErrorException.php
new file mode 100644
index 000000000..49a88cf60
--- /dev/null
+++ b/src/API/Exception/ServiceListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceListServiceUnavailableException.php b/src/API/Exception/ServiceListServiceUnavailableException.php
new file mode 100644
index 000000000..5c9316df8
--- /dev/null
+++ b/src/API/Exception/ServiceListServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceLogsInternalServerErrorException.php b/src/API/Exception/ServiceLogsInternalServerErrorException.php
new file mode 100644
index 000000000..651f38f43
--- /dev/null
+++ b/src/API/Exception/ServiceLogsInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceLogsNotFoundException.php b/src/API/Exception/ServiceLogsNotFoundException.php
new file mode 100644
index 000000000..ee83e6ace
--- /dev/null
+++ b/src/API/Exception/ServiceLogsNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceLogsServiceUnavailableException.php b/src/API/Exception/ServiceLogsServiceUnavailableException.php
new file mode 100644
index 000000000..d6deddb64
--- /dev/null
+++ b/src/API/Exception/ServiceLogsServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceUnavailableException.php b/src/API/Exception/ServiceUnavailableException.php
new file mode 100644
index 000000000..5accb39a4
--- /dev/null
+++ b/src/API/Exception/ServiceUnavailableException.php
@@ -0,0 +1,15 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceUpdateInternalServerErrorException.php b/src/API/Exception/ServiceUpdateInternalServerErrorException.php
new file mode 100644
index 000000000..83e0a895f
--- /dev/null
+++ b/src/API/Exception/ServiceUpdateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceUpdateNotFoundException.php b/src/API/Exception/ServiceUpdateNotFoundException.php
new file mode 100644
index 000000000..de2ace0e0
--- /dev/null
+++ b/src/API/Exception/ServiceUpdateNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/ServiceUpdateServiceUnavailableException.php b/src/API/Exception/ServiceUpdateServiceUnavailableException.php
new file mode 100644
index 000000000..3007a4820
--- /dev/null
+++ b/src/API/Exception/ServiceUpdateServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmInitBadRequestException.php b/src/API/Exception/SwarmInitBadRequestException.php
new file mode 100644
index 000000000..057e87daf
--- /dev/null
+++ b/src/API/Exception/SwarmInitBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmInitInternalServerErrorException.php b/src/API/Exception/SwarmInitInternalServerErrorException.php
new file mode 100644
index 000000000..7fb83e46c
--- /dev/null
+++ b/src/API/Exception/SwarmInitInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmInitServiceUnavailableException.php b/src/API/Exception/SwarmInitServiceUnavailableException.php
new file mode 100644
index 000000000..70b8354a5
--- /dev/null
+++ b/src/API/Exception/SwarmInitServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmInspectInternalServerErrorException.php b/src/API/Exception/SwarmInspectInternalServerErrorException.php
new file mode 100644
index 000000000..03a1a39ae
--- /dev/null
+++ b/src/API/Exception/SwarmInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmInspectNotFoundException.php b/src/API/Exception/SwarmInspectNotFoundException.php
new file mode 100644
index 000000000..6c81eb3a8
--- /dev/null
+++ b/src/API/Exception/SwarmInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmInspectServiceUnavailableException.php b/src/API/Exception/SwarmInspectServiceUnavailableException.php
new file mode 100644
index 000000000..c6db133ae
--- /dev/null
+++ b/src/API/Exception/SwarmInspectServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmJoinBadRequestException.php b/src/API/Exception/SwarmJoinBadRequestException.php
new file mode 100644
index 000000000..fc2b5abab
--- /dev/null
+++ b/src/API/Exception/SwarmJoinBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmJoinInternalServerErrorException.php b/src/API/Exception/SwarmJoinInternalServerErrorException.php
new file mode 100644
index 000000000..2ba81d3a1
--- /dev/null
+++ b/src/API/Exception/SwarmJoinInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmJoinServiceUnavailableException.php b/src/API/Exception/SwarmJoinServiceUnavailableException.php
new file mode 100644
index 000000000..ca054324c
--- /dev/null
+++ b/src/API/Exception/SwarmJoinServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmLeaveInternalServerErrorException.php b/src/API/Exception/SwarmLeaveInternalServerErrorException.php
new file mode 100644
index 000000000..d9a56313a
--- /dev/null
+++ b/src/API/Exception/SwarmLeaveInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmLeaveServiceUnavailableException.php b/src/API/Exception/SwarmLeaveServiceUnavailableException.php
new file mode 100644
index 000000000..a7b6dfc53
--- /dev/null
+++ b/src/API/Exception/SwarmLeaveServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmUnlockInternalServerErrorException.php b/src/API/Exception/SwarmUnlockInternalServerErrorException.php
new file mode 100644
index 000000000..85f16b09c
--- /dev/null
+++ b/src/API/Exception/SwarmUnlockInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmUnlockServiceUnavailableException.php b/src/API/Exception/SwarmUnlockServiceUnavailableException.php
new file mode 100644
index 000000000..31e2ad3c2
--- /dev/null
+++ b/src/API/Exception/SwarmUnlockServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmUnlockkeyInternalServerErrorException.php b/src/API/Exception/SwarmUnlockkeyInternalServerErrorException.php
new file mode 100644
index 000000000..cb4258d89
--- /dev/null
+++ b/src/API/Exception/SwarmUnlockkeyInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmUnlockkeyServiceUnavailableException.php b/src/API/Exception/SwarmUnlockkeyServiceUnavailableException.php
new file mode 100644
index 000000000..687134028
--- /dev/null
+++ b/src/API/Exception/SwarmUnlockkeyServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmUpdateBadRequestException.php b/src/API/Exception/SwarmUpdateBadRequestException.php
new file mode 100644
index 000000000..e176ed41f
--- /dev/null
+++ b/src/API/Exception/SwarmUpdateBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmUpdateInternalServerErrorException.php b/src/API/Exception/SwarmUpdateInternalServerErrorException.php
new file mode 100644
index 000000000..63f0004ae
--- /dev/null
+++ b/src/API/Exception/SwarmUpdateInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SwarmUpdateServiceUnavailableException.php b/src/API/Exception/SwarmUpdateServiceUnavailableException.php
new file mode 100644
index 000000000..c3f12c123
--- /dev/null
+++ b/src/API/Exception/SwarmUpdateServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SystemAuthInternalServerErrorException.php b/src/API/Exception/SystemAuthInternalServerErrorException.php
new file mode 100644
index 000000000..55ba05e49
--- /dev/null
+++ b/src/API/Exception/SystemAuthInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SystemDataUsageInternalServerErrorException.php b/src/API/Exception/SystemDataUsageInternalServerErrorException.php
new file mode 100644
index 000000000..7c8b720d6
--- /dev/null
+++ b/src/API/Exception/SystemDataUsageInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SystemEventsBadRequestException.php b/src/API/Exception/SystemEventsBadRequestException.php
new file mode 100644
index 000000000..a606cbd6f
--- /dev/null
+++ b/src/API/Exception/SystemEventsBadRequestException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SystemEventsInternalServerErrorException.php b/src/API/Exception/SystemEventsInternalServerErrorException.php
new file mode 100644
index 000000000..abab7b3ad
--- /dev/null
+++ b/src/API/Exception/SystemEventsInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SystemInfoInternalServerErrorException.php b/src/API/Exception/SystemInfoInternalServerErrorException.php
new file mode 100644
index 000000000..00746aec1
--- /dev/null
+++ b/src/API/Exception/SystemInfoInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/SystemVersionInternalServerErrorException.php b/src/API/Exception/SystemVersionInternalServerErrorException.php
new file mode 100644
index 000000000..a1aadc79b
--- /dev/null
+++ b/src/API/Exception/SystemVersionInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/TaskInspectInternalServerErrorException.php b/src/API/Exception/TaskInspectInternalServerErrorException.php
new file mode 100644
index 000000000..9ebce1e6e
--- /dev/null
+++ b/src/API/Exception/TaskInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/TaskInspectNotFoundException.php b/src/API/Exception/TaskInspectNotFoundException.php
new file mode 100644
index 000000000..e33844218
--- /dev/null
+++ b/src/API/Exception/TaskInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/TaskInspectServiceUnavailableException.php b/src/API/Exception/TaskInspectServiceUnavailableException.php
new file mode 100644
index 000000000..bf3258d8d
--- /dev/null
+++ b/src/API/Exception/TaskInspectServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/TaskListInternalServerErrorException.php b/src/API/Exception/TaskListInternalServerErrorException.php
new file mode 100644
index 000000000..7e3d4873e
--- /dev/null
+++ b/src/API/Exception/TaskListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/TaskListServiceUnavailableException.php b/src/API/Exception/TaskListServiceUnavailableException.php
new file mode 100644
index 000000000..e6cd1067d
--- /dev/null
+++ b/src/API/Exception/TaskListServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/TaskLogsInternalServerErrorException.php b/src/API/Exception/TaskLogsInternalServerErrorException.php
new file mode 100644
index 000000000..65b81531b
--- /dev/null
+++ b/src/API/Exception/TaskLogsInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/TaskLogsNotFoundException.php b/src/API/Exception/TaskLogsNotFoundException.php
new file mode 100644
index 000000000..07d96cdc3
--- /dev/null
+++ b/src/API/Exception/TaskLogsNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/TaskLogsServiceUnavailableException.php b/src/API/Exception/TaskLogsServiceUnavailableException.php
new file mode 100644
index 000000000..c24d1a029
--- /dev/null
+++ b/src/API/Exception/TaskLogsServiceUnavailableException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/UnauthorizedException.php b/src/API/Exception/UnauthorizedException.php
new file mode 100644
index 000000000..0eb30d222
--- /dev/null
+++ b/src/API/Exception/UnauthorizedException.php
@@ -0,0 +1,15 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/VolumeDeleteConflictException.php b/src/API/Exception/VolumeDeleteConflictException.php
new file mode 100644
index 000000000..32282d9a1
--- /dev/null
+++ b/src/API/Exception/VolumeDeleteConflictException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/VolumeDeleteInternalServerErrorException.php b/src/API/Exception/VolumeDeleteInternalServerErrorException.php
new file mode 100644
index 000000000..95ec47b82
--- /dev/null
+++ b/src/API/Exception/VolumeDeleteInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/VolumeDeleteNotFoundException.php b/src/API/Exception/VolumeDeleteNotFoundException.php
new file mode 100644
index 000000000..18c02b159
--- /dev/null
+++ b/src/API/Exception/VolumeDeleteNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/VolumeInspectInternalServerErrorException.php b/src/API/Exception/VolumeInspectInternalServerErrorException.php
new file mode 100644
index 000000000..24928851d
--- /dev/null
+++ b/src/API/Exception/VolumeInspectInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/VolumeInspectNotFoundException.php b/src/API/Exception/VolumeInspectNotFoundException.php
new file mode 100644
index 000000000..49e728428
--- /dev/null
+++ b/src/API/Exception/VolumeInspectNotFoundException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/VolumeListInternalServerErrorException.php b/src/API/Exception/VolumeListInternalServerErrorException.php
new file mode 100644
index 000000000..2e323ed80
--- /dev/null
+++ b/src/API/Exception/VolumeListInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Exception/VolumePruneInternalServerErrorException.php b/src/API/Exception/VolumePruneInternalServerErrorException.php
new file mode 100644
index 000000000..70e52fd00
--- /dev/null
+++ b/src/API/Exception/VolumePruneInternalServerErrorException.php
@@ -0,0 +1,34 @@
+errorResponse = $errorResponse;
+ $this->response = $response;
+ }
+
+ public function getErrorResponse(): \Docker\API\Model\ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ public function getResponse(): \Psr\Http\Message\ResponseInterface
+ {
+ return $this->response;
+ }
+}
diff --git a/src/API/Model/Address.php b/src/API/Model/Address.php
new file mode 100644
index 000000000..c6c8d21b3
--- /dev/null
+++ b/src/API/Model/Address.php
@@ -0,0 +1,70 @@
+initialized);
+ }
+ /**
+ * IP address.
+ *
+ * @var string|null
+ */
+ protected $addr;
+ /**
+ * Mask length of the IP address.
+ *
+ * @var int|null
+ */
+ protected $prefixLen;
+
+ /**
+ * IP address.
+ */
+ public function getAddr(): ?string
+ {
+ return $this->addr;
+ }
+
+ /**
+ * IP address.
+ */
+ public function setAddr(?string $addr): self
+ {
+ $this->initialized['addr'] = true;
+ $this->addr = $addr;
+
+ return $this;
+ }
+
+ /**
+ * Mask length of the IP address.
+ */
+ public function getPrefixLen(): ?int
+ {
+ return $this->prefixLen;
+ }
+
+ /**
+ * Mask length of the IP address.
+ */
+ public function setPrefixLen(?int $prefixLen): self
+ {
+ $this->initialized['prefixLen'] = true;
+ $this->prefixLen = $prefixLen;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/AuthConfig.php b/src/API/Model/AuthConfig.php
new file mode 100644
index 000000000..c00de8699
--- /dev/null
+++ b/src/API/Model/AuthConfig.php
@@ -0,0 +1,88 @@
+initialized);
+ }
+ /**
+ * @var string|null
+ */
+ protected $username;
+ /**
+ * @var string|null
+ */
+ protected $password;
+ /**
+ * @var string|null
+ */
+ protected $email;
+ /**
+ * @var string|null
+ */
+ protected $serveraddress;
+
+ public function getUsername(): ?string
+ {
+ return $this->username;
+ }
+
+ public function setUsername(?string $username): self
+ {
+ $this->initialized['username'] = true;
+ $this->username = $username;
+
+ return $this;
+ }
+
+ public function getPassword(): ?string
+ {
+ return $this->password;
+ }
+
+ public function setPassword(?string $password): self
+ {
+ $this->initialized['password'] = true;
+ $this->password = $password;
+
+ return $this;
+ }
+
+ public function getEmail(): ?string
+ {
+ return $this->email;
+ }
+
+ public function setEmail(?string $email): self
+ {
+ $this->initialized['email'] = true;
+ $this->email = $email;
+
+ return $this;
+ }
+
+ public function getServeraddress(): ?string
+ {
+ return $this->serveraddress;
+ }
+
+ public function setServeraddress(?string $serveraddress): self
+ {
+ $this->initialized['serveraddress'] = true;
+ $this->serveraddress = $serveraddress;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/AuthPostResponse200.php b/src/API/Model/AuthPostResponse200.php
new file mode 100644
index 000000000..e569959cc
--- /dev/null
+++ b/src/API/Model/AuthPostResponse200.php
@@ -0,0 +1,70 @@
+initialized);
+ }
+ /**
+ * The status of the authentication
+ *
+ * @var string|null
+ */
+ protected $status;
+ /**
+ * An opaque token used to authenticate a user after a successful login
+ *
+ * @var string|null
+ */
+ protected $identityToken;
+
+ /**
+ * The status of the authentication
+ */
+ public function getStatus(): ?string
+ {
+ return $this->status;
+ }
+
+ /**
+ * The status of the authentication
+ */
+ public function setStatus(?string $status): self
+ {
+ $this->initialized['status'] = true;
+ $this->status = $status;
+
+ return $this;
+ }
+
+ /**
+ * An opaque token used to authenticate a user after a successful login
+ */
+ public function getIdentityToken(): ?string
+ {
+ return $this->identityToken;
+ }
+
+ /**
+ * An opaque token used to authenticate a user after a successful login
+ */
+ public function setIdentityToken(?string $identityToken): self
+ {
+ $this->initialized['identityToken'] = true;
+ $this->identityToken = $identityToken;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/BuildCache.php b/src/API/Model/BuildCache.php
new file mode 100644
index 000000000..183757cf2
--- /dev/null
+++ b/src/API/Model/BuildCache.php
@@ -0,0 +1,220 @@
+initialized);
+ }
+ /**
+ * @var string|null
+ */
+ protected $iD;
+ /**
+ * @var string|null
+ */
+ protected $parent;
+ /**
+ * @var string|null
+ */
+ protected $type;
+ /**
+ * @var string|null
+ */
+ protected $description;
+ /**
+ * @var bool|null
+ */
+ protected $inUse;
+ /**
+ * @var bool|null
+ */
+ protected $shared;
+ /**
+ * Amount of disk space used by the build cache (in bytes).
+ *
+ * @var int|null
+ */
+ protected $size;
+ /**
+ * Date and time at which the build cache was created in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ *
+ * @var string|null
+ */
+ protected $createdAt;
+ /**
+ * Date and time at which the build cache was last used in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ *
+ * @var string|null
+ */
+ protected $lastUsedAt;
+ /**
+ * @var int|null
+ */
+ protected $usageCount;
+
+ public function getID(): ?string
+ {
+ return $this->iD;
+ }
+
+ public function setID(?string $iD): self
+ {
+ $this->initialized['iD'] = true;
+ $this->iD = $iD;
+
+ return $this;
+ }
+
+ public function getParent(): ?string
+ {
+ return $this->parent;
+ }
+
+ public function setParent(?string $parent): self
+ {
+ $this->initialized['parent'] = true;
+ $this->parent = $parent;
+
+ return $this;
+ }
+
+ public function getType(): ?string
+ {
+ return $this->type;
+ }
+
+ public function setType(?string $type): self
+ {
+ $this->initialized['type'] = true;
+ $this->type = $type;
+
+ return $this;
+ }
+
+ public function getDescription(): ?string
+ {
+ return $this->description;
+ }
+
+ public function setDescription(?string $description): self
+ {
+ $this->initialized['description'] = true;
+ $this->description = $description;
+
+ return $this;
+ }
+
+ public function getInUse(): ?bool
+ {
+ return $this->inUse;
+ }
+
+ public function setInUse(?bool $inUse): self
+ {
+ $this->initialized['inUse'] = true;
+ $this->inUse = $inUse;
+
+ return $this;
+ }
+
+ public function getShared(): ?bool
+ {
+ return $this->shared;
+ }
+
+ public function setShared(?bool $shared): self
+ {
+ $this->initialized['shared'] = true;
+ $this->shared = $shared;
+
+ return $this;
+ }
+
+ /**
+ * Amount of disk space used by the build cache (in bytes).
+ */
+ public function getSize(): ?int
+ {
+ return $this->size;
+ }
+
+ /**
+ * Amount of disk space used by the build cache (in bytes).
+ */
+ public function setSize(?int $size): self
+ {
+ $this->initialized['size'] = true;
+ $this->size = $size;
+
+ return $this;
+ }
+
+ /**
+ * Date and time at which the build cache was created in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ */
+ public function getCreatedAt(): ?string
+ {
+ return $this->createdAt;
+ }
+
+ /**
+ * Date and time at which the build cache was created in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ */
+ public function setCreatedAt(?string $createdAt): self
+ {
+ $this->initialized['createdAt'] = true;
+ $this->createdAt = $createdAt;
+
+ return $this;
+ }
+
+ /**
+ * Date and time at which the build cache was last used in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ */
+ public function getLastUsedAt(): ?string
+ {
+ return $this->lastUsedAt;
+ }
+
+ /**
+ * Date and time at which the build cache was last used in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ */
+ public function setLastUsedAt(?string $lastUsedAt): self
+ {
+ $this->initialized['lastUsedAt'] = true;
+ $this->lastUsedAt = $lastUsedAt;
+
+ return $this;
+ }
+
+ public function getUsageCount(): ?int
+ {
+ return $this->usageCount;
+ }
+
+ public function setUsageCount(?int $usageCount): self
+ {
+ $this->initialized['usageCount'] = true;
+ $this->usageCount = $usageCount;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/BuildInfo.php b/src/API/Model/BuildInfo.php
new file mode 100644
index 000000000..3782aab10
--- /dev/null
+++ b/src/API/Model/BuildInfo.php
@@ -0,0 +1,164 @@
+initialized);
+ }
+ /**
+ * @var string|null
+ */
+ protected $id;
+ /**
+ * @var string|null
+ */
+ protected $stream;
+ /**
+ * @var string|null
+ */
+ protected $error;
+ /**
+ * @var ErrorDetail|null
+ */
+ protected $errorDetail;
+ /**
+ * @var string|null
+ */
+ protected $status;
+ /**
+ * @var string|null
+ */
+ protected $progress;
+ /**
+ * @var ProgressDetail|null
+ */
+ protected $progressDetail;
+ /**
+ * Image ID or Digest
+ *
+ * @var ImageID|null
+ */
+ protected $aux;
+
+ public function getId(): ?string
+ {
+ return $this->id;
+ }
+
+ public function setId(?string $id): self
+ {
+ $this->initialized['id'] = true;
+ $this->id = $id;
+
+ return $this;
+ }
+
+ public function getStream(): ?string
+ {
+ return $this->stream;
+ }
+
+ public function setStream(?string $stream): self
+ {
+ $this->initialized['stream'] = true;
+ $this->stream = $stream;
+
+ return $this;
+ }
+
+ public function getError(): ?string
+ {
+ return $this->error;
+ }
+
+ public function setError(?string $error): self
+ {
+ $this->initialized['error'] = true;
+ $this->error = $error;
+
+ return $this;
+ }
+
+ public function getErrorDetail(): ?ErrorDetail
+ {
+ return $this->errorDetail;
+ }
+
+ public function setErrorDetail(?ErrorDetail $errorDetail): self
+ {
+ $this->initialized['errorDetail'] = true;
+ $this->errorDetail = $errorDetail;
+
+ return $this;
+ }
+
+ public function getStatus(): ?string
+ {
+ return $this->status;
+ }
+
+ public function setStatus(?string $status): self
+ {
+ $this->initialized['status'] = true;
+ $this->status = $status;
+
+ return $this;
+ }
+
+ public function getProgress(): ?string
+ {
+ return $this->progress;
+ }
+
+ public function setProgress(?string $progress): self
+ {
+ $this->initialized['progress'] = true;
+ $this->progress = $progress;
+
+ return $this;
+ }
+
+ public function getProgressDetail(): ?ProgressDetail
+ {
+ return $this->progressDetail;
+ }
+
+ public function setProgressDetail(?ProgressDetail $progressDetail): self
+ {
+ $this->initialized['progressDetail'] = true;
+ $this->progressDetail = $progressDetail;
+
+ return $this;
+ }
+
+ /**
+ * Image ID or Digest
+ */
+ public function getAux(): ?ImageID
+ {
+ return $this->aux;
+ }
+
+ /**
+ * Image ID or Digest
+ */
+ public function setAux(?ImageID $aux): self
+ {
+ $this->initialized['aux'] = true;
+ $this->aux = $aux;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/BuildPrunePostResponse200.php b/src/API/Model/BuildPrunePostResponse200.php
new file mode 100644
index 000000000..a54e72ec1
--- /dev/null
+++ b/src/API/Model/BuildPrunePostResponse200.php
@@ -0,0 +1,68 @@
+initialized);
+ }
+ /**
+ * @var string[]|null
+ */
+ protected $cachesDeleted;
+ /**
+ * Disk space reclaimed in bytes
+ *
+ * @var int|null
+ */
+ protected $spaceReclaimed;
+
+ /**
+ * @return string[]|null
+ */
+ public function getCachesDeleted(): ?array
+ {
+ return $this->cachesDeleted;
+ }
+
+ /**
+ * @param string[]|null $cachesDeleted
+ */
+ public function setCachesDeleted(?array $cachesDeleted): self
+ {
+ $this->initialized['cachesDeleted'] = true;
+ $this->cachesDeleted = $cachesDeleted;
+
+ return $this;
+ }
+
+ /**
+ * Disk space reclaimed in bytes
+ */
+ public function getSpaceReclaimed(): ?int
+ {
+ return $this->spaceReclaimed;
+ }
+
+ /**
+ * Disk space reclaimed in bytes
+ */
+ public function setSpaceReclaimed(?int $spaceReclaimed): self
+ {
+ $this->initialized['spaceReclaimed'] = true;
+ $this->spaceReclaimed = $spaceReclaimed;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ClusterInfo.php b/src/API/Model/ClusterInfo.php
new file mode 100644
index 000000000..56380a2e1
--- /dev/null
+++ b/src/API/Model/ClusterInfo.php
@@ -0,0 +1,322 @@
+initialized);
+ }
+ /**
+ * The ID of the swarm.
+ *
+ * @var string|null
+ */
+ protected $iD;
+ /**
+ * The version number of the object such as node, service, etc. This is needed
+ * to avoid conflicting writes. The client must send the version number along
+ * with the modified specification when updating these objects.
+ *
+ * This approach ensures safe concurrency and determinism in that the change
+ * on the object may not be applied if the version number has changed from the
+ * last read. In other words, if two update requests specify the same base
+ * version, only one of the requests can succeed. As a result, two separate
+ * update requests that happen at the same time will not unintentionally
+ * overwrite each other.
+ *
+ * @var ObjectVersion|null
+ */
+ protected $version;
+ /**
+ * Date and time at which the swarm was initialised in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ *
+ * @var string|null
+ */
+ protected $createdAt;
+ /**
+ * Date and time at which the swarm was last updated in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ *
+ * @var string|null
+ */
+ protected $updatedAt;
+ /**
+ * User modifiable swarm configuration.
+ *
+ * @var SwarmSpec|null
+ */
+ protected $spec;
+ /**
+ * Information about the issuer of leaf TLS certificates and the trusted root
+ * CA certificate.
+ *
+ * @var TLSInfo|null
+ */
+ protected $tLSInfo;
+ /**
+ * Whether there is currently a root CA rotation in progress for the swarm
+ *
+ * @var bool|null
+ */
+ protected $rootRotationInProgress;
+ /**
+ * DataPathPort specifies the data path port number for data traffic.
+ * Acceptable port range is 1024 to 49151.
+ * If no port is set or is set to 0, the default port (4789) is used.
+ *
+ * @var int|null
+ */
+ protected $dataPathPort;
+ /**
+ * Default Address Pool specifies default subnet pools for global scope
+ * networks.
+ *
+ * @var string[]|null
+ */
+ protected $defaultAddrPool;
+ /**
+ * SubnetSize specifies the subnet size of the networks created from the
+ * default subnet pool.
+ *
+ * @var int|null
+ */
+ protected $subnetSize;
+
+ /**
+ * The ID of the swarm.
+ */
+ public function getID(): ?string
+ {
+ return $this->iD;
+ }
+
+ /**
+ * The ID of the swarm.
+ */
+ public function setID(?string $iD): self
+ {
+ $this->initialized['iD'] = true;
+ $this->iD = $iD;
+
+ return $this;
+ }
+
+ /**
+ * The version number of the object such as node, service, etc. This is needed
+ * to avoid conflicting writes. The client must send the version number along
+ * with the modified specification when updating these objects.
+ *
+ * This approach ensures safe concurrency and determinism in that the change
+ * on the object may not be applied if the version number has changed from the
+ * last read. In other words, if two update requests specify the same base
+ * version, only one of the requests can succeed. As a result, two separate
+ * update requests that happen at the same time will not unintentionally
+ * overwrite each other.
+ */
+ public function getVersion(): ?ObjectVersion
+ {
+ return $this->version;
+ }
+
+ /**
+ * The version number of the object such as node, service, etc. This is needed
+ * to avoid conflicting writes. The client must send the version number along
+ * with the modified specification when updating these objects.
+ *
+ * This approach ensures safe concurrency and determinism in that the change
+ * on the object may not be applied if the version number has changed from the
+ * last read. In other words, if two update requests specify the same base
+ * version, only one of the requests can succeed. As a result, two separate
+ * update requests that happen at the same time will not unintentionally
+ * overwrite each other.
+ */
+ public function setVersion(?ObjectVersion $version): self
+ {
+ $this->initialized['version'] = true;
+ $this->version = $version;
+
+ return $this;
+ }
+
+ /**
+ * Date and time at which the swarm was initialised in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ */
+ public function getCreatedAt(): ?string
+ {
+ return $this->createdAt;
+ }
+
+ /**
+ * Date and time at which the swarm was initialised in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ */
+ public function setCreatedAt(?string $createdAt): self
+ {
+ $this->initialized['createdAt'] = true;
+ $this->createdAt = $createdAt;
+
+ return $this;
+ }
+
+ /**
+ * Date and time at which the swarm was last updated in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ */
+ public function getUpdatedAt(): ?string
+ {
+ return $this->updatedAt;
+ }
+
+ /**
+ * Date and time at which the swarm was last updated in
+ * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format with nano-seconds.
+ */
+ public function setUpdatedAt(?string $updatedAt): self
+ {
+ $this->initialized['updatedAt'] = true;
+ $this->updatedAt = $updatedAt;
+
+ return $this;
+ }
+
+ /**
+ * User modifiable swarm configuration.
+ */
+ public function getSpec(): ?SwarmSpec
+ {
+ return $this->spec;
+ }
+
+ /**
+ * User modifiable swarm configuration.
+ */
+ public function setSpec(?SwarmSpec $spec): self
+ {
+ $this->initialized['spec'] = true;
+ $this->spec = $spec;
+
+ return $this;
+ }
+
+ /**
+ * Information about the issuer of leaf TLS certificates and the trusted root
+ * CA certificate.
+ */
+ public function getTLSInfo(): ?TLSInfo
+ {
+ return $this->tLSInfo;
+ }
+
+ /**
+ * Information about the issuer of leaf TLS certificates and the trusted root
+ * CA certificate.
+ */
+ public function setTLSInfo(?TLSInfo $tLSInfo): self
+ {
+ $this->initialized['tLSInfo'] = true;
+ $this->tLSInfo = $tLSInfo;
+
+ return $this;
+ }
+
+ /**
+ * Whether there is currently a root CA rotation in progress for the swarm
+ */
+ public function getRootRotationInProgress(): ?bool
+ {
+ return $this->rootRotationInProgress;
+ }
+
+ /**
+ * Whether there is currently a root CA rotation in progress for the swarm
+ */
+ public function setRootRotationInProgress(?bool $rootRotationInProgress): self
+ {
+ $this->initialized['rootRotationInProgress'] = true;
+ $this->rootRotationInProgress = $rootRotationInProgress;
+
+ return $this;
+ }
+
+ /**
+ * DataPathPort specifies the data path port number for data traffic.
+ * Acceptable port range is 1024 to 49151.
+ * If no port is set or is set to 0, the default port (4789) is used.
+ */
+ public function getDataPathPort(): ?int
+ {
+ return $this->dataPathPort;
+ }
+
+ /**
+ * DataPathPort specifies the data path port number for data traffic.
+ * Acceptable port range is 1024 to 49151.
+ * If no port is set or is set to 0, the default port (4789) is used.
+ */
+ public function setDataPathPort(?int $dataPathPort): self
+ {
+ $this->initialized['dataPathPort'] = true;
+ $this->dataPathPort = $dataPathPort;
+
+ return $this;
+ }
+
+ /**
+ * Default Address Pool specifies default subnet pools for global scope
+ * networks.
+ *
+ * @return string[]|null
+ */
+ public function getDefaultAddrPool(): ?array
+ {
+ return $this->defaultAddrPool;
+ }
+
+ /**
+ * Default Address Pool specifies default subnet pools for global scope
+ * networks.
+ *
+ * @param string[]|null $defaultAddrPool
+ */
+ public function setDefaultAddrPool(?array $defaultAddrPool): self
+ {
+ $this->initialized['defaultAddrPool'] = true;
+ $this->defaultAddrPool = $defaultAddrPool;
+
+ return $this;
+ }
+
+ /**
+ * SubnetSize specifies the subnet size of the networks created from the
+ * default subnet pool.
+ */
+ public function getSubnetSize(): ?int
+ {
+ return $this->subnetSize;
+ }
+
+ /**
+ * SubnetSize specifies the subnet size of the networks created from the
+ * default subnet pool.
+ */
+ public function setSubnetSize(?int $subnetSize): self
+ {
+ $this->initialized['subnetSize'] = true;
+ $this->subnetSize = $subnetSize;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/Commit.php b/src/API/Model/Commit.php
new file mode 100644
index 000000000..3b3a1a4d7
--- /dev/null
+++ b/src/API/Model/Commit.php
@@ -0,0 +1,70 @@
+initialized);
+ }
+ /**
+ * Actual commit ID of external tool.
+ *
+ * @var string|null
+ */
+ protected $iD;
+ /**
+ * Commit ID of external tool expected by dockerd as set at build time.
+ *
+ * @var string|null
+ */
+ protected $expected;
+
+ /**
+ * Actual commit ID of external tool.
+ */
+ public function getID(): ?string
+ {
+ return $this->iD;
+ }
+
+ /**
+ * Actual commit ID of external tool.
+ */
+ public function setID(?string $iD): self
+ {
+ $this->initialized['iD'] = true;
+ $this->iD = $iD;
+
+ return $this;
+ }
+
+ /**
+ * Commit ID of external tool expected by dockerd as set at build time.
+ */
+ public function getExpected(): ?string
+ {
+ return $this->expected;
+ }
+
+ /**
+ * Commit ID of external tool expected by dockerd as set at build time.
+ */
+ public function setExpected(?string $expected): self
+ {
+ $this->initialized['expected'] = true;
+ $this->expected = $expected;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/Config.php b/src/API/Model/Config.php
new file mode 100644
index 000000000..c6fa04cec
--- /dev/null
+++ b/src/API/Model/Config.php
@@ -0,0 +1,140 @@
+initialized);
+ }
+ /**
+ * @var string|null
+ */
+ protected $iD;
+ /**
+ * The version number of the object such as node, service, etc. This is needed
+ * to avoid conflicting writes. The client must send the version number along
+ * with the modified specification when updating these objects.
+ *
+ * This approach ensures safe concurrency and determinism in that the change
+ * on the object may not be applied if the version number has changed from the
+ * last read. In other words, if two update requests specify the same base
+ * version, only one of the requests can succeed. As a result, two separate
+ * update requests that happen at the same time will not unintentionally
+ * overwrite each other.
+ *
+ * @var ObjectVersion|null
+ */
+ protected $version;
+ /**
+ * @var string|null
+ */
+ protected $createdAt;
+ /**
+ * @var string|null
+ */
+ protected $updatedAt;
+ /**
+ * @var ConfigSpec|null
+ */
+ protected $spec;
+
+ public function getID(): ?string
+ {
+ return $this->iD;
+ }
+
+ public function setID(?string $iD): self
+ {
+ $this->initialized['iD'] = true;
+ $this->iD = $iD;
+
+ return $this;
+ }
+
+ /**
+ * The version number of the object such as node, service, etc. This is needed
+ * to avoid conflicting writes. The client must send the version number along
+ * with the modified specification when updating these objects.
+ *
+ * This approach ensures safe concurrency and determinism in that the change
+ * on the object may not be applied if the version number has changed from the
+ * last read. In other words, if two update requests specify the same base
+ * version, only one of the requests can succeed. As a result, two separate
+ * update requests that happen at the same time will not unintentionally
+ * overwrite each other.
+ */
+ public function getVersion(): ?ObjectVersion
+ {
+ return $this->version;
+ }
+
+ /**
+ * The version number of the object such as node, service, etc. This is needed
+ * to avoid conflicting writes. The client must send the version number along
+ * with the modified specification when updating these objects.
+ *
+ * This approach ensures safe concurrency and determinism in that the change
+ * on the object may not be applied if the version number has changed from the
+ * last read. In other words, if two update requests specify the same base
+ * version, only one of the requests can succeed. As a result, two separate
+ * update requests that happen at the same time will not unintentionally
+ * overwrite each other.
+ */
+ public function setVersion(?ObjectVersion $version): self
+ {
+ $this->initialized['version'] = true;
+ $this->version = $version;
+
+ return $this;
+ }
+
+ public function getCreatedAt(): ?string
+ {
+ return $this->createdAt;
+ }
+
+ public function setCreatedAt(?string $createdAt): self
+ {
+ $this->initialized['createdAt'] = true;
+ $this->createdAt = $createdAt;
+
+ return $this;
+ }
+
+ public function getUpdatedAt(): ?string
+ {
+ return $this->updatedAt;
+ }
+
+ public function setUpdatedAt(?string $updatedAt): self
+ {
+ $this->initialized['updatedAt'] = true;
+ $this->updatedAt = $updatedAt;
+
+ return $this;
+ }
+
+ public function getSpec(): ?ConfigSpec
+ {
+ return $this->spec;
+ }
+
+ public function setSpec(?ConfigSpec $spec): self
+ {
+ $this->initialized['spec'] = true;
+ $this->spec = $spec;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ConfigSpec.php b/src/API/Model/ConfigSpec.php
new file mode 100644
index 000000000..82e6f6b79
--- /dev/null
+++ b/src/API/Model/ConfigSpec.php
@@ -0,0 +1,127 @@
+initialized);
+ }
+ /**
+ * User-defined name of the config.
+ *
+ * @var string|null
+ */
+ protected $name;
+ /**
+ * User-defined key/value metadata.
+ *
+ * @var string[]|null
+ */
+ protected $labels;
+ /**
+ * Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
+ * config data.
+ *
+ * @var string|null
+ */
+ protected $data;
+ /**
+ * Driver represents a driver (network, logging, secrets).
+ *
+ * @var Driver|null
+ */
+ protected $templating;
+
+ /**
+ * User-defined name of the config.
+ */
+ public function getName(): ?string
+ {
+ return $this->name;
+ }
+
+ /**
+ * User-defined name of the config.
+ */
+ public function setName(?string $name): self
+ {
+ $this->initialized['name'] = true;
+ $this->name = $name;
+
+ return $this;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @return string[]|null
+ */
+ public function getLabels(): ?iterable
+ {
+ return $this->labels;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @param string[]|null $labels
+ */
+ public function setLabels(?iterable $labels): self
+ {
+ $this->initialized['labels'] = true;
+ $this->labels = $labels;
+
+ return $this;
+ }
+
+ /**
+ * Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
+ * config data.
+ */
+ public function getData(): ?string
+ {
+ return $this->data;
+ }
+
+ /**
+ * Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
+ * config data.
+ */
+ public function setData(?string $data): self
+ {
+ $this->initialized['data'] = true;
+ $this->data = $data;
+
+ return $this;
+ }
+
+ /**
+ * Driver represents a driver (network, logging, secrets).
+ */
+ public function getTemplating(): ?Driver
+ {
+ return $this->templating;
+ }
+
+ /**
+ * Driver represents a driver (network, logging, secrets).
+ */
+ public function setTemplating(?Driver $templating): self
+ {
+ $this->initialized['templating'] = true;
+ $this->templating = $templating;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ConfigsCreatePostBody.php b/src/API/Model/ConfigsCreatePostBody.php
new file mode 100644
index 000000000..96bfb95e2
--- /dev/null
+++ b/src/API/Model/ConfigsCreatePostBody.php
@@ -0,0 +1,127 @@
+initialized);
+ }
+ /**
+ * User-defined name of the config.
+ *
+ * @var string|null
+ */
+ protected $name;
+ /**
+ * User-defined key/value metadata.
+ *
+ * @var string[]|null
+ */
+ protected $labels;
+ /**
+ * Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
+ * config data.
+ *
+ * @var string|null
+ */
+ protected $data;
+ /**
+ * Driver represents a driver (network, logging, secrets).
+ *
+ * @var Driver|null
+ */
+ protected $templating;
+
+ /**
+ * User-defined name of the config.
+ */
+ public function getName(): ?string
+ {
+ return $this->name;
+ }
+
+ /**
+ * User-defined name of the config.
+ */
+ public function setName(?string $name): self
+ {
+ $this->initialized['name'] = true;
+ $this->name = $name;
+
+ return $this;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @return string[]|null
+ */
+ public function getLabels(): ?iterable
+ {
+ return $this->labels;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @param string[]|null $labels
+ */
+ public function setLabels(?iterable $labels): self
+ {
+ $this->initialized['labels'] = true;
+ $this->labels = $labels;
+
+ return $this;
+ }
+
+ /**
+ * Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
+ * config data.
+ */
+ public function getData(): ?string
+ {
+ return $this->data;
+ }
+
+ /**
+ * Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-5))
+ * config data.
+ */
+ public function setData(?string $data): self
+ {
+ $this->initialized['data'] = true;
+ $this->data = $data;
+
+ return $this;
+ }
+
+ /**
+ * Driver represents a driver (network, logging, secrets).
+ */
+ public function getTemplating(): ?Driver
+ {
+ return $this->templating;
+ }
+
+ /**
+ * Driver represents a driver (network, logging, secrets).
+ */
+ public function setTemplating(?Driver $templating): self
+ {
+ $this->initialized['templating'] = true;
+ $this->templating = $templating;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainerConfig.php b/src/API/Model/ContainerConfig.php
new file mode 100644
index 000000000..48263fa50
--- /dev/null
+++ b/src/API/Model/ContainerConfig.php
@@ -0,0 +1,704 @@
+initialized);
+ }
+ /**
+ * The hostname to use for the container, as a valid RFC 1123 hostname.
+ *
+ * @var string|null
+ */
+ protected $hostname;
+ /**
+ * The domain name to use for the container.
+ *
+ * @var string|null
+ */
+ protected $domainname;
+ /**
+ * The user that commands are run as inside the container.
+ *
+ * @var string|null
+ */
+ protected $user;
+ /**
+ * Whether to attach to `stdin`.
+ *
+ * @var bool|null
+ */
+ protected $attachStdin = false;
+ /**
+ * Whether to attach to `stdout`.
+ *
+ * @var bool|null
+ */
+ protected $attachStdout = true;
+ /**
+ * Whether to attach to `stderr`.
+ *
+ * @var bool|null
+ */
+ protected $attachStderr = true;
+ /**
+ * An object mapping ports to an empty object in the form:
+ *
+ * `{"/": {}}`
+ *
+ * @var ContainerConfigExposedPortsItem[]|null
+ */
+ protected $exposedPorts;
+ /**
+ * Attach standard streams to a TTY, including `stdin` if it is not closed.
+ *
+ * @var bool|null
+ */
+ protected $tty = false;
+ /**
+ * Open `stdin`
+ *
+ * @var bool|null
+ */
+ protected $openStdin = false;
+ /**
+ * Close `stdin` after one attached client disconnects
+ *
+ * @var bool|null
+ */
+ protected $stdinOnce = false;
+ /**
+ * A list of environment variables to set inside the container in the
+ * form `["VAR=value", ...]`. A variable without `=` is removed from the
+ * environment, rather than to have an empty value.
+ *
+ * @var string[]|null
+ */
+ protected $env;
+ /**
+ * Command to run specified as a string or an array of strings.
+ *
+ * @var string[]|null
+ */
+ protected $cmd;
+ /**
+ * A test to perform to check that the container is healthy.
+ *
+ * @var HealthConfig|null
+ */
+ protected $healthcheck;
+ /**
+ * Command is already escaped (Windows only)
+ *
+ * @var bool|null
+ */
+ protected $argsEscaped;
+ /**
+ * The name of the image to use when creating the container/
+ *
+ * @var string|null
+ */
+ protected $image;
+ /**
+ * An object mapping mount point paths inside the container to empty
+ * objects.
+ *
+ * @var ContainerConfigVolumesItem[]|null
+ */
+ protected $volumes;
+ /**
+ * The working directory for commands to run in.
+ *
+ * @var string|null
+ */
+ protected $workingDir;
+ /**
+ * The entry point for the container as a string or an array of strings.
+ *
+ * If the array consists of exactly one empty string (`[""]`) then the
+ * entry point is reset to system default (i.e., the entry point used by
+ * docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
+ *
+ * @var string[]|null
+ */
+ protected $entrypoint;
+ /**
+ * Disable networking for the container.
+ *
+ * @var bool|null
+ */
+ protected $networkDisabled;
+ /**
+ * MAC address of the container.
+ *
+ * @var string|null
+ */
+ protected $macAddress;
+ /**
+ * `ONBUILD` metadata that were defined in the image's `Dockerfile`.
+ *
+ * @var string[]|null
+ */
+ protected $onBuild;
+ /**
+ * User-defined key/value metadata.
+ *
+ * @var string[]|null
+ */
+ protected $labels;
+ /**
+ * Signal to stop a container as a string or unsigned integer.
+ *
+ * @var string|null
+ */
+ protected $stopSignal = 'SIGTERM';
+ /**
+ * Timeout to stop a container in seconds.
+ *
+ * @var int|null
+ */
+ protected $stopTimeout;
+ /**
+ * Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.
+ *
+ * @var string[]|null
+ */
+ protected $shell;
+
+ /**
+ * The hostname to use for the container, as a valid RFC 1123 hostname.
+ */
+ public function getHostname(): ?string
+ {
+ return $this->hostname;
+ }
+
+ /**
+ * The hostname to use for the container, as a valid RFC 1123 hostname.
+ */
+ public function setHostname(?string $hostname): self
+ {
+ $this->initialized['hostname'] = true;
+ $this->hostname = $hostname;
+
+ return $this;
+ }
+
+ /**
+ * The domain name to use for the container.
+ */
+ public function getDomainname(): ?string
+ {
+ return $this->domainname;
+ }
+
+ /**
+ * The domain name to use for the container.
+ */
+ public function setDomainname(?string $domainname): self
+ {
+ $this->initialized['domainname'] = true;
+ $this->domainname = $domainname;
+
+ return $this;
+ }
+
+ /**
+ * The user that commands are run as inside the container.
+ */
+ public function getUser(): ?string
+ {
+ return $this->user;
+ }
+
+ /**
+ * The user that commands are run as inside the container.
+ */
+ public function setUser(?string $user): self
+ {
+ $this->initialized['user'] = true;
+ $this->user = $user;
+
+ return $this;
+ }
+
+ /**
+ * Whether to attach to `stdin`.
+ */
+ public function getAttachStdin(): ?bool
+ {
+ return $this->attachStdin;
+ }
+
+ /**
+ * Whether to attach to `stdin`.
+ */
+ public function setAttachStdin(?bool $attachStdin): self
+ {
+ $this->initialized['attachStdin'] = true;
+ $this->attachStdin = $attachStdin;
+
+ return $this;
+ }
+
+ /**
+ * Whether to attach to `stdout`.
+ */
+ public function getAttachStdout(): ?bool
+ {
+ return $this->attachStdout;
+ }
+
+ /**
+ * Whether to attach to `stdout`.
+ */
+ public function setAttachStdout(?bool $attachStdout): self
+ {
+ $this->initialized['attachStdout'] = true;
+ $this->attachStdout = $attachStdout;
+
+ return $this;
+ }
+
+ /**
+ * Whether to attach to `stderr`.
+ */
+ public function getAttachStderr(): ?bool
+ {
+ return $this->attachStderr;
+ }
+
+ /**
+ * Whether to attach to `stderr`.
+ */
+ public function setAttachStderr(?bool $attachStderr): self
+ {
+ $this->initialized['attachStderr'] = true;
+ $this->attachStderr = $attachStderr;
+
+ return $this;
+ }
+
+ /**
+ * An object mapping ports to an empty object in the form:
+ *
+ * `{"/": {}}`
+ *
+ * @return ContainerConfigExposedPortsItem[]|null
+ */
+ public function getExposedPorts(): ?iterable
+ {
+ return $this->exposedPorts;
+ }
+
+ /**
+ * An object mapping ports to an empty object in the form:
+ *
+ * `{"/": {}}`
+ *
+ * @param ContainerConfigExposedPortsItem[]|null $exposedPorts
+ */
+ public function setExposedPorts(?iterable $exposedPorts): self
+ {
+ $this->initialized['exposedPorts'] = true;
+ $this->exposedPorts = $exposedPorts;
+
+ return $this;
+ }
+
+ /**
+ * Attach standard streams to a TTY, including `stdin` if it is not closed.
+ */
+ public function getTty(): ?bool
+ {
+ return $this->tty;
+ }
+
+ /**
+ * Attach standard streams to a TTY, including `stdin` if it is not closed.
+ */
+ public function setTty(?bool $tty): self
+ {
+ $this->initialized['tty'] = true;
+ $this->tty = $tty;
+
+ return $this;
+ }
+
+ /**
+ * Open `stdin`
+ */
+ public function getOpenStdin(): ?bool
+ {
+ return $this->openStdin;
+ }
+
+ /**
+ * Open `stdin`
+ */
+ public function setOpenStdin(?bool $openStdin): self
+ {
+ $this->initialized['openStdin'] = true;
+ $this->openStdin = $openStdin;
+
+ return $this;
+ }
+
+ /**
+ * Close `stdin` after one attached client disconnects
+ */
+ public function getStdinOnce(): ?bool
+ {
+ return $this->stdinOnce;
+ }
+
+ /**
+ * Close `stdin` after one attached client disconnects
+ */
+ public function setStdinOnce(?bool $stdinOnce): self
+ {
+ $this->initialized['stdinOnce'] = true;
+ $this->stdinOnce = $stdinOnce;
+
+ return $this;
+ }
+
+ /**
+ * A list of environment variables to set inside the container in the
+ * form `["VAR=value", ...]`. A variable without `=` is removed from the
+ * environment, rather than to have an empty value.
+ *
+ * @return string[]|null
+ */
+ public function getEnv(): ?array
+ {
+ return $this->env;
+ }
+
+ /**
+ * A list of environment variables to set inside the container in the
+ * form `["VAR=value", ...]`. A variable without `=` is removed from the
+ * environment, rather than to have an empty value.
+ *
+ * @param string[]|null $env
+ */
+ public function setEnv(?array $env): self
+ {
+ $this->initialized['env'] = true;
+ $this->env = $env;
+
+ return $this;
+ }
+
+ /**
+ * Command to run specified as a string or an array of strings.
+ *
+ * @return string[]|null
+ */
+ public function getCmd(): ?array
+ {
+ return $this->cmd;
+ }
+
+ /**
+ * Command to run specified as a string or an array of strings.
+ *
+ * @param string[]|null $cmd
+ */
+ public function setCmd(?array $cmd): self
+ {
+ $this->initialized['cmd'] = true;
+ $this->cmd = $cmd;
+
+ return $this;
+ }
+
+ /**
+ * A test to perform to check that the container is healthy.
+ */
+ public function getHealthcheck(): ?HealthConfig
+ {
+ return $this->healthcheck;
+ }
+
+ /**
+ * A test to perform to check that the container is healthy.
+ */
+ public function setHealthcheck(?HealthConfig $healthcheck): self
+ {
+ $this->initialized['healthcheck'] = true;
+ $this->healthcheck = $healthcheck;
+
+ return $this;
+ }
+
+ /**
+ * Command is already escaped (Windows only)
+ */
+ public function getArgsEscaped(): ?bool
+ {
+ return $this->argsEscaped;
+ }
+
+ /**
+ * Command is already escaped (Windows only)
+ */
+ public function setArgsEscaped(?bool $argsEscaped): self
+ {
+ $this->initialized['argsEscaped'] = true;
+ $this->argsEscaped = $argsEscaped;
+
+ return $this;
+ }
+
+ /**
+ * The name of the image to use when creating the container/
+ */
+ public function getImage(): ?string
+ {
+ return $this->image;
+ }
+
+ /**
+ * The name of the image to use when creating the container/
+ */
+ public function setImage(?string $image): self
+ {
+ $this->initialized['image'] = true;
+ $this->image = $image;
+
+ return $this;
+ }
+
+ /**
+ * An object mapping mount point paths inside the container to empty
+ * objects.
+ *
+ * @return ContainerConfigVolumesItem[]|null
+ */
+ public function getVolumes(): ?iterable
+ {
+ return $this->volumes;
+ }
+
+ /**
+ * An object mapping mount point paths inside the container to empty
+ * objects.
+ *
+ * @param ContainerConfigVolumesItem[]|null $volumes
+ */
+ public function setVolumes(?iterable $volumes): self
+ {
+ $this->initialized['volumes'] = true;
+ $this->volumes = $volumes;
+
+ return $this;
+ }
+
+ /**
+ * The working directory for commands to run in.
+ */
+ public function getWorkingDir(): ?string
+ {
+ return $this->workingDir;
+ }
+
+ /**
+ * The working directory for commands to run in.
+ */
+ public function setWorkingDir(?string $workingDir): self
+ {
+ $this->initialized['workingDir'] = true;
+ $this->workingDir = $workingDir;
+
+ return $this;
+ }
+
+ /**
+ * The entry point for the container as a string or an array of strings.
+ *
+ * If the array consists of exactly one empty string (`[""]`) then the
+ * entry point is reset to system default (i.e., the entry point used by
+ * docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
+ *
+ * @return string[]|null
+ */
+ public function getEntrypoint(): ?array
+ {
+ return $this->entrypoint;
+ }
+
+ /**
+ * The entry point for the container as a string or an array of strings.
+ *
+ * If the array consists of exactly one empty string (`[""]`) then the
+ * entry point is reset to system default (i.e., the entry point used by
+ * docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
+ *
+ * @param string[]|null $entrypoint
+ */
+ public function setEntrypoint(?array $entrypoint): self
+ {
+ $this->initialized['entrypoint'] = true;
+ $this->entrypoint = $entrypoint;
+
+ return $this;
+ }
+
+ /**
+ * Disable networking for the container.
+ */
+ public function getNetworkDisabled(): ?bool
+ {
+ return $this->networkDisabled;
+ }
+
+ /**
+ * Disable networking for the container.
+ */
+ public function setNetworkDisabled(?bool $networkDisabled): self
+ {
+ $this->initialized['networkDisabled'] = true;
+ $this->networkDisabled = $networkDisabled;
+
+ return $this;
+ }
+
+ /**
+ * MAC address of the container.
+ */
+ public function getMacAddress(): ?string
+ {
+ return $this->macAddress;
+ }
+
+ /**
+ * MAC address of the container.
+ */
+ public function setMacAddress(?string $macAddress): self
+ {
+ $this->initialized['macAddress'] = true;
+ $this->macAddress = $macAddress;
+
+ return $this;
+ }
+
+ /**
+ * `ONBUILD` metadata that were defined in the image's `Dockerfile`.
+ *
+ * @return string[]|null
+ */
+ public function getOnBuild(): ?array
+ {
+ return $this->onBuild;
+ }
+
+ /**
+ * `ONBUILD` metadata that were defined in the image's `Dockerfile`.
+ *
+ * @param string[]|null $onBuild
+ */
+ public function setOnBuild(?array $onBuild): self
+ {
+ $this->initialized['onBuild'] = true;
+ $this->onBuild = $onBuild;
+
+ return $this;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @return string[]|null
+ */
+ public function getLabels(): ?iterable
+ {
+ return $this->labels;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @param string[]|null $labels
+ */
+ public function setLabels(?iterable $labels): self
+ {
+ $this->initialized['labels'] = true;
+ $this->labels = $labels;
+
+ return $this;
+ }
+
+ /**
+ * Signal to stop a container as a string or unsigned integer.
+ */
+ public function getStopSignal(): ?string
+ {
+ return $this->stopSignal;
+ }
+
+ /**
+ * Signal to stop a container as a string or unsigned integer.
+ */
+ public function setStopSignal(?string $stopSignal): self
+ {
+ $this->initialized['stopSignal'] = true;
+ $this->stopSignal = $stopSignal;
+
+ return $this;
+ }
+
+ /**
+ * Timeout to stop a container in seconds.
+ */
+ public function getStopTimeout(): ?int
+ {
+ return $this->stopTimeout;
+ }
+
+ /**
+ * Timeout to stop a container in seconds.
+ */
+ public function setStopTimeout(?int $stopTimeout): self
+ {
+ $this->initialized['stopTimeout'] = true;
+ $this->stopTimeout = $stopTimeout;
+
+ return $this;
+ }
+
+ /**
+ * Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.
+ *
+ * @return string[]|null
+ */
+ public function getShell(): ?array
+ {
+ return $this->shell;
+ }
+
+ /**
+ * Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.
+ *
+ * @param string[]|null $shell
+ */
+ public function setShell(?array $shell): self
+ {
+ $this->initialized['shell'] = true;
+ $this->shell = $shell;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainerConfigExposedPortsItem.php b/src/API/Model/ContainerConfigExposedPortsItem.php
new file mode 100644
index 000000000..6fef3c6cb
--- /dev/null
+++ b/src/API/Model/ContainerConfigExposedPortsItem.php
@@ -0,0 +1,20 @@
+initialized);
+ }
+}
diff --git a/src/API/Model/ContainerConfigVolumesItem.php b/src/API/Model/ContainerConfigVolumesItem.php
new file mode 100644
index 000000000..90133962b
--- /dev/null
+++ b/src/API/Model/ContainerConfigVolumesItem.php
@@ -0,0 +1,20 @@
+initialized);
+ }
+}
diff --git a/src/API/Model/ContainerState.php b/src/API/Model/ContainerState.php
new file mode 100644
index 000000000..d46e47f72
--- /dev/null
+++ b/src/API/Model/ContainerState.php
@@ -0,0 +1,334 @@
+initialized);
+ }
+ /**
+ * String representation of the container state. Can be one of "created",
+ * "running", "paused", "restarting", "removing", "exited", or "dead".
+ *
+ * @var string|null
+ */
+ protected $status;
+ /**
+ * Whether this container is running.
+ *
+ * Note that a running container can be _paused_. The `Running` and `Paused`
+ * booleans are not mutually exclusive:
+ *
+ * When pausing a container (on Linux), the freezer cgroup is used to suspend
+ * all processes in the container. Freezing the process requires the process to
+ * be running. As a result, paused containers are both `Running` _and_ `Paused`.
+ *
+ * Use the `Status` field instead to determine if a container's state is "running".
+ *
+ * @var bool|null
+ */
+ protected $running;
+ /**
+ * Whether this container is paused.
+ *
+ * @var bool|null
+ */
+ protected $paused;
+ /**
+ * Whether this container is restarting.
+ *
+ * @var bool|null
+ */
+ protected $restarting;
+ /**
+ * Whether this container has been killed because it ran out of memory.
+ *
+ * @var bool|null
+ */
+ protected $oOMKilled;
+ /**
+ * @var bool|null
+ */
+ protected $dead;
+ /**
+ * The process ID of this container
+ *
+ * @var int|null
+ */
+ protected $pid;
+ /**
+ * The last exit code of this container
+ *
+ * @var int|null
+ */
+ protected $exitCode;
+ /**
+ * @var string|null
+ */
+ protected $error;
+ /**
+ * The time when this container was last started.
+ *
+ * @var string|null
+ */
+ protected $startedAt;
+ /**
+ * The time when this container last exited.
+ *
+ * @var string|null
+ */
+ protected $finishedAt;
+ /**
+ * Health stores information about the container's healthcheck results.
+ *
+ * @var Health|null
+ */
+ protected $health;
+
+ /**
+ * String representation of the container state. Can be one of "created",
+ * "running", "paused", "restarting", "removing", "exited", or "dead".
+ */
+ public function getStatus(): ?string
+ {
+ return $this->status;
+ }
+
+ /**
+ * String representation of the container state. Can be one of "created",
+ * "running", "paused", "restarting", "removing", "exited", or "dead".
+ */
+ public function setStatus(?string $status): self
+ {
+ $this->initialized['status'] = true;
+ $this->status = $status;
+
+ return $this;
+ }
+
+ /**
+ * Whether this container is running.
+ *
+ * Note that a running container can be _paused_. The `Running` and `Paused`
+ * booleans are not mutually exclusive:
+ *
+ * When pausing a container (on Linux), the freezer cgroup is used to suspend
+ * all processes in the container. Freezing the process requires the process to
+ * be running. As a result, paused containers are both `Running` _and_ `Paused`.
+ *
+ * Use the `Status` field instead to determine if a container's state is "running".
+ */
+ public function getRunning(): ?bool
+ {
+ return $this->running;
+ }
+
+ /**
+ * Whether this container is running.
+ *
+ * Note that a running container can be _paused_. The `Running` and `Paused`
+ * booleans are not mutually exclusive:
+ *
+ * When pausing a container (on Linux), the freezer cgroup is used to suspend
+ * all processes in the container. Freezing the process requires the process to
+ * be running. As a result, paused containers are both `Running` _and_ `Paused`.
+ *
+ * Use the `Status` field instead to determine if a container's state is "running".
+ */
+ public function setRunning(?bool $running): self
+ {
+ $this->initialized['running'] = true;
+ $this->running = $running;
+
+ return $this;
+ }
+
+ /**
+ * Whether this container is paused.
+ */
+ public function getPaused(): ?bool
+ {
+ return $this->paused;
+ }
+
+ /**
+ * Whether this container is paused.
+ */
+ public function setPaused(?bool $paused): self
+ {
+ $this->initialized['paused'] = true;
+ $this->paused = $paused;
+
+ return $this;
+ }
+
+ /**
+ * Whether this container is restarting.
+ */
+ public function getRestarting(): ?bool
+ {
+ return $this->restarting;
+ }
+
+ /**
+ * Whether this container is restarting.
+ */
+ public function setRestarting(?bool $restarting): self
+ {
+ $this->initialized['restarting'] = true;
+ $this->restarting = $restarting;
+
+ return $this;
+ }
+
+ /**
+ * Whether this container has been killed because it ran out of memory.
+ */
+ public function getOOMKilled(): ?bool
+ {
+ return $this->oOMKilled;
+ }
+
+ /**
+ * Whether this container has been killed because it ran out of memory.
+ */
+ public function setOOMKilled(?bool $oOMKilled): self
+ {
+ $this->initialized['oOMKilled'] = true;
+ $this->oOMKilled = $oOMKilled;
+
+ return $this;
+ }
+
+ public function getDead(): ?bool
+ {
+ return $this->dead;
+ }
+
+ public function setDead(?bool $dead): self
+ {
+ $this->initialized['dead'] = true;
+ $this->dead = $dead;
+
+ return $this;
+ }
+
+ /**
+ * The process ID of this container
+ */
+ public function getPid(): ?int
+ {
+ return $this->pid;
+ }
+
+ /**
+ * The process ID of this container
+ */
+ public function setPid(?int $pid): self
+ {
+ $this->initialized['pid'] = true;
+ $this->pid = $pid;
+
+ return $this;
+ }
+
+ /**
+ * The last exit code of this container
+ */
+ public function getExitCode(): ?int
+ {
+ return $this->exitCode;
+ }
+
+ /**
+ * The last exit code of this container
+ */
+ public function setExitCode(?int $exitCode): self
+ {
+ $this->initialized['exitCode'] = true;
+ $this->exitCode = $exitCode;
+
+ return $this;
+ }
+
+ public function getError(): ?string
+ {
+ return $this->error;
+ }
+
+ public function setError(?string $error): self
+ {
+ $this->initialized['error'] = true;
+ $this->error = $error;
+
+ return $this;
+ }
+
+ /**
+ * The time when this container was last started.
+ */
+ public function getStartedAt(): ?string
+ {
+ return $this->startedAt;
+ }
+
+ /**
+ * The time when this container was last started.
+ */
+ public function setStartedAt(?string $startedAt): self
+ {
+ $this->initialized['startedAt'] = true;
+ $this->startedAt = $startedAt;
+
+ return $this;
+ }
+
+ /**
+ * The time when this container last exited.
+ */
+ public function getFinishedAt(): ?string
+ {
+ return $this->finishedAt;
+ }
+
+ /**
+ * The time when this container last exited.
+ */
+ public function setFinishedAt(?string $finishedAt): self
+ {
+ $this->initialized['finishedAt'] = true;
+ $this->finishedAt = $finishedAt;
+
+ return $this;
+ }
+
+ /**
+ * Health stores information about the container's healthcheck results.
+ */
+ public function getHealth(): ?Health
+ {
+ return $this->health;
+ }
+
+ /**
+ * Health stores information about the container's healthcheck results.
+ */
+ public function setHealth(?Health $health): self
+ {
+ $this->initialized['health'] = true;
+ $this->health = $health;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainerSummaryItem.php b/src/API/Model/ContainerSummaryItem.php
new file mode 100644
index 000000000..212ce1f38
--- /dev/null
+++ b/src/API/Model/ContainerSummaryItem.php
@@ -0,0 +1,397 @@
+initialized);
+ }
+ /**
+ * The ID of this container
+ *
+ * @var string|null
+ */
+ protected $id;
+ /**
+ * The names that this container has been given
+ *
+ * @var string[]|null
+ */
+ protected $names;
+ /**
+ * The name of the image used when creating this container
+ *
+ * @var string|null
+ */
+ protected $image;
+ /**
+ * The ID of the image that this container was created from
+ *
+ * @var string|null
+ */
+ protected $imageID;
+ /**
+ * Command to run when starting the container
+ *
+ * @var string|null
+ */
+ protected $command;
+ /**
+ * When the container was created
+ *
+ * @var int|null
+ */
+ protected $created;
+ /**
+ * The ports exposed by this container
+ *
+ * @var Port[]|null
+ */
+ protected $ports;
+ /**
+ * The size of files that have been created or changed by this container
+ *
+ * @var int|null
+ */
+ protected $sizeRw;
+ /**
+ * The total size of all the files in this container
+ *
+ * @var int|null
+ */
+ protected $sizeRootFs;
+ /**
+ * User-defined key/value metadata.
+ *
+ * @var string[]|null
+ */
+ protected $labels;
+ /**
+ * The state of this container (e.g. `Exited`)
+ *
+ * @var string|null
+ */
+ protected $state;
+ /**
+ * Additional human-readable status of this container (e.g. `Exit 0`)
+ *
+ * @var string|null
+ */
+ protected $status;
+ /**
+ * @var ContainerSummaryItemHostConfig|null
+ */
+ protected $hostConfig;
+ /**
+ * A summary of the container's network settings
+ *
+ * @var ContainerSummaryItemNetworkSettings|null
+ */
+ protected $networkSettings;
+ /**
+ * @var Mount[]|null
+ */
+ protected $mounts;
+
+ /**
+ * The ID of this container
+ */
+ public function getId(): ?string
+ {
+ return $this->id;
+ }
+
+ /**
+ * The ID of this container
+ */
+ public function setId(?string $id): self
+ {
+ $this->initialized['id'] = true;
+ $this->id = $id;
+
+ return $this;
+ }
+
+ /**
+ * The names that this container has been given
+ *
+ * @return string[]|null
+ */
+ public function getNames(): ?array
+ {
+ return $this->names;
+ }
+
+ /**
+ * The names that this container has been given
+ *
+ * @param string[]|null $names
+ */
+ public function setNames(?array $names): self
+ {
+ $this->initialized['names'] = true;
+ $this->names = $names;
+
+ return $this;
+ }
+
+ /**
+ * The name of the image used when creating this container
+ */
+ public function getImage(): ?string
+ {
+ return $this->image;
+ }
+
+ /**
+ * The name of the image used when creating this container
+ */
+ public function setImage(?string $image): self
+ {
+ $this->initialized['image'] = true;
+ $this->image = $image;
+
+ return $this;
+ }
+
+ /**
+ * The ID of the image that this container was created from
+ */
+ public function getImageID(): ?string
+ {
+ return $this->imageID;
+ }
+
+ /**
+ * The ID of the image that this container was created from
+ */
+ public function setImageID(?string $imageID): self
+ {
+ $this->initialized['imageID'] = true;
+ $this->imageID = $imageID;
+
+ return $this;
+ }
+
+ /**
+ * Command to run when starting the container
+ */
+ public function getCommand(): ?string
+ {
+ return $this->command;
+ }
+
+ /**
+ * Command to run when starting the container
+ */
+ public function setCommand(?string $command): self
+ {
+ $this->initialized['command'] = true;
+ $this->command = $command;
+
+ return $this;
+ }
+
+ /**
+ * When the container was created
+ */
+ public function getCreated(): ?int
+ {
+ return $this->created;
+ }
+
+ /**
+ * When the container was created
+ */
+ public function setCreated(?int $created): self
+ {
+ $this->initialized['created'] = true;
+ $this->created = $created;
+
+ return $this;
+ }
+
+ /**
+ * The ports exposed by this container
+ *
+ * @return Port[]|null
+ */
+ public function getPorts(): ?array
+ {
+ return $this->ports;
+ }
+
+ /**
+ * The ports exposed by this container
+ *
+ * @param Port[]|null $ports
+ */
+ public function setPorts(?array $ports): self
+ {
+ $this->initialized['ports'] = true;
+ $this->ports = $ports;
+
+ return $this;
+ }
+
+ /**
+ * The size of files that have been created or changed by this container
+ */
+ public function getSizeRw(): ?int
+ {
+ return $this->sizeRw;
+ }
+
+ /**
+ * The size of files that have been created or changed by this container
+ */
+ public function setSizeRw(?int $sizeRw): self
+ {
+ $this->initialized['sizeRw'] = true;
+ $this->sizeRw = $sizeRw;
+
+ return $this;
+ }
+
+ /**
+ * The total size of all the files in this container
+ */
+ public function getSizeRootFs(): ?int
+ {
+ return $this->sizeRootFs;
+ }
+
+ /**
+ * The total size of all the files in this container
+ */
+ public function setSizeRootFs(?int $sizeRootFs): self
+ {
+ $this->initialized['sizeRootFs'] = true;
+ $this->sizeRootFs = $sizeRootFs;
+
+ return $this;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @return string[]|null
+ */
+ public function getLabels(): ?iterable
+ {
+ return $this->labels;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @param string[]|null $labels
+ */
+ public function setLabels(?iterable $labels): self
+ {
+ $this->initialized['labels'] = true;
+ $this->labels = $labels;
+
+ return $this;
+ }
+
+ /**
+ * The state of this container (e.g. `Exited`)
+ */
+ public function getState(): ?string
+ {
+ return $this->state;
+ }
+
+ /**
+ * The state of this container (e.g. `Exited`)
+ */
+ public function setState(?string $state): self
+ {
+ $this->initialized['state'] = true;
+ $this->state = $state;
+
+ return $this;
+ }
+
+ /**
+ * Additional human-readable status of this container (e.g. `Exit 0`)
+ */
+ public function getStatus(): ?string
+ {
+ return $this->status;
+ }
+
+ /**
+ * Additional human-readable status of this container (e.g. `Exit 0`)
+ */
+ public function setStatus(?string $status): self
+ {
+ $this->initialized['status'] = true;
+ $this->status = $status;
+
+ return $this;
+ }
+
+ public function getHostConfig(): ?ContainerSummaryItemHostConfig
+ {
+ return $this->hostConfig;
+ }
+
+ public function setHostConfig(?ContainerSummaryItemHostConfig $hostConfig): self
+ {
+ $this->initialized['hostConfig'] = true;
+ $this->hostConfig = $hostConfig;
+
+ return $this;
+ }
+
+ /**
+ * A summary of the container's network settings
+ */
+ public function getNetworkSettings(): ?ContainerSummaryItemNetworkSettings
+ {
+ return $this->networkSettings;
+ }
+
+ /**
+ * A summary of the container's network settings
+ */
+ public function setNetworkSettings(?ContainerSummaryItemNetworkSettings $networkSettings): self
+ {
+ $this->initialized['networkSettings'] = true;
+ $this->networkSettings = $networkSettings;
+
+ return $this;
+ }
+
+ /**
+ * @return Mount[]|null
+ */
+ public function getMounts(): ?array
+ {
+ return $this->mounts;
+ }
+
+ /**
+ * @param Mount[]|null $mounts
+ */
+ public function setMounts(?array $mounts): self
+ {
+ $this->initialized['mounts'] = true;
+ $this->mounts = $mounts;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainerSummaryItemHostConfig.php b/src/API/Model/ContainerSummaryItemHostConfig.php
new file mode 100644
index 000000000..f207b11d1
--- /dev/null
+++ b/src/API/Model/ContainerSummaryItemHostConfig.php
@@ -0,0 +1,37 @@
+initialized);
+ }
+ /**
+ * @var string|null
+ */
+ protected $networkMode;
+
+ public function getNetworkMode(): ?string
+ {
+ return $this->networkMode;
+ }
+
+ public function setNetworkMode(?string $networkMode): self
+ {
+ $this->initialized['networkMode'] = true;
+ $this->networkMode = $networkMode;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainerSummaryItemNetworkSettings.php b/src/API/Model/ContainerSummaryItemNetworkSettings.php
new file mode 100644
index 000000000..ba53002c3
--- /dev/null
+++ b/src/API/Model/ContainerSummaryItemNetworkSettings.php
@@ -0,0 +1,43 @@
+initialized);
+ }
+ /**
+ * @var EndpointSettings[]|null
+ */
+ protected $networks;
+
+ /**
+ * @return EndpointSettings[]|null
+ */
+ public function getNetworks(): ?iterable
+ {
+ return $this->networks;
+ }
+
+ /**
+ * @param EndpointSettings[]|null $networks
+ */
+ public function setNetworks(?iterable $networks): self
+ {
+ $this->initialized['networks'] = true;
+ $this->networks = $networks;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainersCreatePostBody.php b/src/API/Model/ContainersCreatePostBody.php
new file mode 100644
index 000000000..bf8fb84d4
--- /dev/null
+++ b/src/API/Model/ContainersCreatePostBody.php
@@ -0,0 +1,763 @@
+initialized);
+ }
+ /**
+ * The hostname to use for the container, as a valid RFC 1123 hostname.
+ *
+ * @var string|null
+ */
+ protected $hostname;
+ /**
+ * The domain name to use for the container.
+ *
+ * @var string|null
+ */
+ protected $domainname;
+ /**
+ * The user that commands are run as inside the container.
+ *
+ * @var string|null
+ */
+ protected $user;
+ /**
+ * Whether to attach to `stdin`.
+ *
+ * @var bool|null
+ */
+ protected $attachStdin = false;
+ /**
+ * Whether to attach to `stdout`.
+ *
+ * @var bool|null
+ */
+ protected $attachStdout = true;
+ /**
+ * Whether to attach to `stderr`.
+ *
+ * @var bool|null
+ */
+ protected $attachStderr = true;
+ /**
+ * An object mapping ports to an empty object in the form:
+ *
+ * `{"/": {}}`
+ *
+ * @var ContainerConfigExposedPortsItem[]|null
+ */
+ protected $exposedPorts;
+ /**
+ * Attach standard streams to a TTY, including `stdin` if it is not closed.
+ *
+ * @var bool|null
+ */
+ protected $tty = false;
+ /**
+ * Open `stdin`
+ *
+ * @var bool|null
+ */
+ protected $openStdin = false;
+ /**
+ * Close `stdin` after one attached client disconnects
+ *
+ * @var bool|null
+ */
+ protected $stdinOnce = false;
+ /**
+ * A list of environment variables to set inside the container in the
+ * form `["VAR=value", ...]`. A variable without `=` is removed from the
+ * environment, rather than to have an empty value.
+ *
+ * @var string[]|null
+ */
+ protected $env;
+ /**
+ * Command to run specified as a string or an array of strings.
+ *
+ * @var string[]|null
+ */
+ protected $cmd;
+ /**
+ * A test to perform to check that the container is healthy.
+ *
+ * @var HealthConfig|null
+ */
+ protected $healthcheck;
+ /**
+ * Command is already escaped (Windows only)
+ *
+ * @var bool|null
+ */
+ protected $argsEscaped;
+ /**
+ * The name of the image to use when creating the container/
+ *
+ * @var string|null
+ */
+ protected $image;
+ /**
+ * An object mapping mount point paths inside the container to empty
+ * objects.
+ *
+ * @var ContainerConfigVolumesItem[]|null
+ */
+ protected $volumes;
+ /**
+ * The working directory for commands to run in.
+ *
+ * @var string|null
+ */
+ protected $workingDir;
+ /**
+ * The entry point for the container as a string or an array of strings.
+ *
+ * If the array consists of exactly one empty string (`[""]`) then the
+ * entry point is reset to system default (i.e., the entry point used by
+ * docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
+ *
+ * @var string[]|null
+ */
+ protected $entrypoint;
+ /**
+ * Disable networking for the container.
+ *
+ * @var bool|null
+ */
+ protected $networkDisabled;
+ /**
+ * MAC address of the container.
+ *
+ * @var string|null
+ */
+ protected $macAddress;
+ /**
+ * `ONBUILD` metadata that were defined in the image's `Dockerfile`.
+ *
+ * @var string[]|null
+ */
+ protected $onBuild;
+ /**
+ * User-defined key/value metadata.
+ *
+ * @var string[]|null
+ */
+ protected $labels;
+ /**
+ * Signal to stop a container as a string or unsigned integer.
+ *
+ * @var string|null
+ */
+ protected $stopSignal = 'SIGTERM';
+ /**
+ * Timeout to stop a container in seconds.
+ *
+ * @var int|null
+ */
+ protected $stopTimeout;
+ /**
+ * Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.
+ *
+ * @var string[]|null
+ */
+ protected $shell;
+ /**
+ * Container configuration that depends on the host we are running on
+ *
+ * @var HostConfig|null
+ */
+ protected $hostConfig;
+ /**
+ * NetworkingConfig represents the container's networking configuration for
+ * each of its interfaces.
+ * It is used for the networking configs specified in the `docker create`
+ * and `docker network connect` commands.
+ *
+ * @var NetworkingConfig|null
+ */
+ protected $networkingConfig;
+
+ /**
+ * The hostname to use for the container, as a valid RFC 1123 hostname.
+ */
+ public function getHostname(): ?string
+ {
+ return $this->hostname;
+ }
+
+ /**
+ * The hostname to use for the container, as a valid RFC 1123 hostname.
+ */
+ public function setHostname(?string $hostname): self
+ {
+ $this->initialized['hostname'] = true;
+ $this->hostname = $hostname;
+
+ return $this;
+ }
+
+ /**
+ * The domain name to use for the container.
+ */
+ public function getDomainname(): ?string
+ {
+ return $this->domainname;
+ }
+
+ /**
+ * The domain name to use for the container.
+ */
+ public function setDomainname(?string $domainname): self
+ {
+ $this->initialized['domainname'] = true;
+ $this->domainname = $domainname;
+
+ return $this;
+ }
+
+ /**
+ * The user that commands are run as inside the container.
+ */
+ public function getUser(): ?string
+ {
+ return $this->user;
+ }
+
+ /**
+ * The user that commands are run as inside the container.
+ */
+ public function setUser(?string $user): self
+ {
+ $this->initialized['user'] = true;
+ $this->user = $user;
+
+ return $this;
+ }
+
+ /**
+ * Whether to attach to `stdin`.
+ */
+ public function getAttachStdin(): ?bool
+ {
+ return $this->attachStdin;
+ }
+
+ /**
+ * Whether to attach to `stdin`.
+ */
+ public function setAttachStdin(?bool $attachStdin): self
+ {
+ $this->initialized['attachStdin'] = true;
+ $this->attachStdin = $attachStdin;
+
+ return $this;
+ }
+
+ /**
+ * Whether to attach to `stdout`.
+ */
+ public function getAttachStdout(): ?bool
+ {
+ return $this->attachStdout;
+ }
+
+ /**
+ * Whether to attach to `stdout`.
+ */
+ public function setAttachStdout(?bool $attachStdout): self
+ {
+ $this->initialized['attachStdout'] = true;
+ $this->attachStdout = $attachStdout;
+
+ return $this;
+ }
+
+ /**
+ * Whether to attach to `stderr`.
+ */
+ public function getAttachStderr(): ?bool
+ {
+ return $this->attachStderr;
+ }
+
+ /**
+ * Whether to attach to `stderr`.
+ */
+ public function setAttachStderr(?bool $attachStderr): self
+ {
+ $this->initialized['attachStderr'] = true;
+ $this->attachStderr = $attachStderr;
+
+ return $this;
+ }
+
+ /**
+ * An object mapping ports to an empty object in the form:
+ *
+ * `{"/": {}}`
+ *
+ * @return ContainerConfigExposedPortsItem[]|null
+ */
+ public function getExposedPorts(): ?iterable
+ {
+ return $this->exposedPorts;
+ }
+
+ /**
+ * An object mapping ports to an empty object in the form:
+ *
+ * `{"/": {}}`
+ *
+ * @param ContainerConfigExposedPortsItem[]|null $exposedPorts
+ */
+ public function setExposedPorts(?iterable $exposedPorts): self
+ {
+ $this->initialized['exposedPorts'] = true;
+ $this->exposedPorts = $exposedPorts;
+
+ return $this;
+ }
+
+ /**
+ * Attach standard streams to a TTY, including `stdin` if it is not closed.
+ */
+ public function getTty(): ?bool
+ {
+ return $this->tty;
+ }
+
+ /**
+ * Attach standard streams to a TTY, including `stdin` if it is not closed.
+ */
+ public function setTty(?bool $tty): self
+ {
+ $this->initialized['tty'] = true;
+ $this->tty = $tty;
+
+ return $this;
+ }
+
+ /**
+ * Open `stdin`
+ */
+ public function getOpenStdin(): ?bool
+ {
+ return $this->openStdin;
+ }
+
+ /**
+ * Open `stdin`
+ */
+ public function setOpenStdin(?bool $openStdin): self
+ {
+ $this->initialized['openStdin'] = true;
+ $this->openStdin = $openStdin;
+
+ return $this;
+ }
+
+ /**
+ * Close `stdin` after one attached client disconnects
+ */
+ public function getStdinOnce(): ?bool
+ {
+ return $this->stdinOnce;
+ }
+
+ /**
+ * Close `stdin` after one attached client disconnects
+ */
+ public function setStdinOnce(?bool $stdinOnce): self
+ {
+ $this->initialized['stdinOnce'] = true;
+ $this->stdinOnce = $stdinOnce;
+
+ return $this;
+ }
+
+ /**
+ * A list of environment variables to set inside the container in the
+ * form `["VAR=value", ...]`. A variable without `=` is removed from the
+ * environment, rather than to have an empty value.
+ *
+ * @return string[]|null
+ */
+ public function getEnv(): ?array
+ {
+ return $this->env;
+ }
+
+ /**
+ * A list of environment variables to set inside the container in the
+ * form `["VAR=value", ...]`. A variable without `=` is removed from the
+ * environment, rather than to have an empty value.
+ *
+ * @param string[]|null $env
+ */
+ public function setEnv(?array $env): self
+ {
+ $this->initialized['env'] = true;
+ $this->env = $env;
+
+ return $this;
+ }
+
+ /**
+ * Command to run specified as a string or an array of strings.
+ *
+ * @return string[]|null
+ */
+ public function getCmd(): ?array
+ {
+ return $this->cmd;
+ }
+
+ /**
+ * Command to run specified as a string or an array of strings.
+ *
+ * @param string[]|null $cmd
+ */
+ public function setCmd(?array $cmd): self
+ {
+ $this->initialized['cmd'] = true;
+ $this->cmd = $cmd;
+
+ return $this;
+ }
+
+ /**
+ * A test to perform to check that the container is healthy.
+ */
+ public function getHealthcheck(): ?HealthConfig
+ {
+ return $this->healthcheck;
+ }
+
+ /**
+ * A test to perform to check that the container is healthy.
+ */
+ public function setHealthcheck(?HealthConfig $healthcheck): self
+ {
+ $this->initialized['healthcheck'] = true;
+ $this->healthcheck = $healthcheck;
+
+ return $this;
+ }
+
+ /**
+ * Command is already escaped (Windows only)
+ */
+ public function getArgsEscaped(): ?bool
+ {
+ return $this->argsEscaped;
+ }
+
+ /**
+ * Command is already escaped (Windows only)
+ */
+ public function setArgsEscaped(?bool $argsEscaped): self
+ {
+ $this->initialized['argsEscaped'] = true;
+ $this->argsEscaped = $argsEscaped;
+
+ return $this;
+ }
+
+ /**
+ * The name of the image to use when creating the container/
+ */
+ public function getImage(): ?string
+ {
+ return $this->image;
+ }
+
+ /**
+ * The name of the image to use when creating the container/
+ */
+ public function setImage(?string $image): self
+ {
+ $this->initialized['image'] = true;
+ $this->image = $image;
+
+ return $this;
+ }
+
+ /**
+ * An object mapping mount point paths inside the container to empty
+ * objects.
+ *
+ * @return ContainerConfigVolumesItem[]|null
+ */
+ public function getVolumes(): ?iterable
+ {
+ return $this->volumes;
+ }
+
+ /**
+ * An object mapping mount point paths inside the container to empty
+ * objects.
+ *
+ * @param ContainerConfigVolumesItem[]|null $volumes
+ */
+ public function setVolumes(?iterable $volumes): self
+ {
+ $this->initialized['volumes'] = true;
+ $this->volumes = $volumes;
+
+ return $this;
+ }
+
+ /**
+ * The working directory for commands to run in.
+ */
+ public function getWorkingDir(): ?string
+ {
+ return $this->workingDir;
+ }
+
+ /**
+ * The working directory for commands to run in.
+ */
+ public function setWorkingDir(?string $workingDir): self
+ {
+ $this->initialized['workingDir'] = true;
+ $this->workingDir = $workingDir;
+
+ return $this;
+ }
+
+ /**
+ * The entry point for the container as a string or an array of strings.
+ *
+ * If the array consists of exactly one empty string (`[""]`) then the
+ * entry point is reset to system default (i.e., the entry point used by
+ * docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
+ *
+ * @return string[]|null
+ */
+ public function getEntrypoint(): ?array
+ {
+ return $this->entrypoint;
+ }
+
+ /**
+ * The entry point for the container as a string or an array of strings.
+ *
+ * If the array consists of exactly one empty string (`[""]`) then the
+ * entry point is reset to system default (i.e., the entry point used by
+ * docker when there is no `ENTRYPOINT` instruction in the `Dockerfile`).
+ *
+ * @param string[]|null $entrypoint
+ */
+ public function setEntrypoint(?array $entrypoint): self
+ {
+ $this->initialized['entrypoint'] = true;
+ $this->entrypoint = $entrypoint;
+
+ return $this;
+ }
+
+ /**
+ * Disable networking for the container.
+ */
+ public function getNetworkDisabled(): ?bool
+ {
+ return $this->networkDisabled;
+ }
+
+ /**
+ * Disable networking for the container.
+ */
+ public function setNetworkDisabled(?bool $networkDisabled): self
+ {
+ $this->initialized['networkDisabled'] = true;
+ $this->networkDisabled = $networkDisabled;
+
+ return $this;
+ }
+
+ /**
+ * MAC address of the container.
+ */
+ public function getMacAddress(): ?string
+ {
+ return $this->macAddress;
+ }
+
+ /**
+ * MAC address of the container.
+ */
+ public function setMacAddress(?string $macAddress): self
+ {
+ $this->initialized['macAddress'] = true;
+ $this->macAddress = $macAddress;
+
+ return $this;
+ }
+
+ /**
+ * `ONBUILD` metadata that were defined in the image's `Dockerfile`.
+ *
+ * @return string[]|null
+ */
+ public function getOnBuild(): ?array
+ {
+ return $this->onBuild;
+ }
+
+ /**
+ * `ONBUILD` metadata that were defined in the image's `Dockerfile`.
+ *
+ * @param string[]|null $onBuild
+ */
+ public function setOnBuild(?array $onBuild): self
+ {
+ $this->initialized['onBuild'] = true;
+ $this->onBuild = $onBuild;
+
+ return $this;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @return string[]|null
+ */
+ public function getLabels(): ?iterable
+ {
+ return $this->labels;
+ }
+
+ /**
+ * User-defined key/value metadata.
+ *
+ * @param string[]|null $labels
+ */
+ public function setLabels(?iterable $labels): self
+ {
+ $this->initialized['labels'] = true;
+ $this->labels = $labels;
+
+ return $this;
+ }
+
+ /**
+ * Signal to stop a container as a string or unsigned integer.
+ */
+ public function getStopSignal(): ?string
+ {
+ return $this->stopSignal;
+ }
+
+ /**
+ * Signal to stop a container as a string or unsigned integer.
+ */
+ public function setStopSignal(?string $stopSignal): self
+ {
+ $this->initialized['stopSignal'] = true;
+ $this->stopSignal = $stopSignal;
+
+ return $this;
+ }
+
+ /**
+ * Timeout to stop a container in seconds.
+ */
+ public function getStopTimeout(): ?int
+ {
+ return $this->stopTimeout;
+ }
+
+ /**
+ * Timeout to stop a container in seconds.
+ */
+ public function setStopTimeout(?int $stopTimeout): self
+ {
+ $this->initialized['stopTimeout'] = true;
+ $this->stopTimeout = $stopTimeout;
+
+ return $this;
+ }
+
+ /**
+ * Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.
+ *
+ * @return string[]|null
+ */
+ public function getShell(): ?array
+ {
+ return $this->shell;
+ }
+
+ /**
+ * Shell for when `RUN`, `CMD`, and `ENTRYPOINT` uses a shell.
+ *
+ * @param string[]|null $shell
+ */
+ public function setShell(?array $shell): self
+ {
+ $this->initialized['shell'] = true;
+ $this->shell = $shell;
+
+ return $this;
+ }
+
+ /**
+ * Container configuration that depends on the host we are running on
+ */
+ public function getHostConfig(): ?HostConfig
+ {
+ return $this->hostConfig;
+ }
+
+ /**
+ * Container configuration that depends on the host we are running on
+ */
+ public function setHostConfig(?HostConfig $hostConfig): self
+ {
+ $this->initialized['hostConfig'] = true;
+ $this->hostConfig = $hostConfig;
+
+ return $this;
+ }
+
+ /**
+ * NetworkingConfig represents the container's networking configuration for
+ * each of its interfaces.
+ * It is used for the networking configs specified in the `docker create`
+ * and `docker network connect` commands.
+ */
+ public function getNetworkingConfig(): ?NetworkingConfig
+ {
+ return $this->networkingConfig;
+ }
+
+ /**
+ * NetworkingConfig represents the container's networking configuration for
+ * each of its interfaces.
+ * It is used for the networking configs specified in the `docker create`
+ * and `docker network connect` commands.
+ */
+ public function setNetworkingConfig(?NetworkingConfig $networkingConfig): self
+ {
+ $this->initialized['networkingConfig'] = true;
+ $this->networkingConfig = $networkingConfig;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainersCreatePostResponse201.php b/src/API/Model/ContainersCreatePostResponse201.php
new file mode 100644
index 000000000..df98ba4fe
--- /dev/null
+++ b/src/API/Model/ContainersCreatePostResponse201.php
@@ -0,0 +1,74 @@
+initialized);
+ }
+ /**
+ * The ID of the created container
+ *
+ * @var string|null
+ */
+ protected $id;
+ /**
+ * Warnings encountered when creating the container
+ *
+ * @var string[]|null
+ */
+ protected $warnings;
+
+ /**
+ * The ID of the created container
+ */
+ public function getId(): ?string
+ {
+ return $this->id;
+ }
+
+ /**
+ * The ID of the created container
+ */
+ public function setId(?string $id): self
+ {
+ $this->initialized['id'] = true;
+ $this->id = $id;
+
+ return $this;
+ }
+
+ /**
+ * Warnings encountered when creating the container
+ *
+ * @return string[]|null
+ */
+ public function getWarnings(): ?array
+ {
+ return $this->warnings;
+ }
+
+ /**
+ * Warnings encountered when creating the container
+ *
+ * @param string[]|null $warnings
+ */
+ public function setWarnings(?array $warnings): self
+ {
+ $this->initialized['warnings'] = true;
+ $this->warnings = $warnings;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainersIdArchiveGetResponse400.php b/src/API/Model/ContainersIdArchiveGetResponse400.php
new file mode 100644
index 000000000..01828ca41
--- /dev/null
+++ b/src/API/Model/ContainersIdArchiveGetResponse400.php
@@ -0,0 +1,76 @@
+initialized);
+ }
+ /**
+ * Represents an error.
+ *
+ * @var ErrorResponse|null
+ */
+ protected $errorResponse;
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ *
+ * @var string|null
+ */
+ protected $message;
+
+ /**
+ * Represents an error.
+ */
+ public function getErrorResponse(): ?ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ /**
+ * Represents an error.
+ */
+ public function setErrorResponse(?ErrorResponse $errorResponse): self
+ {
+ $this->initialized['errorResponse'] = true;
+ $this->errorResponse = $errorResponse;
+
+ return $this;
+ }
+
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ */
+ public function getMessage(): ?string
+ {
+ return $this->message;
+ }
+
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ */
+ public function setMessage(?string $message): self
+ {
+ $this->initialized['message'] = true;
+ $this->message = $message;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainersIdArchiveHeadJsonResponse400.php b/src/API/Model/ContainersIdArchiveHeadJsonResponse400.php
new file mode 100644
index 000000000..c496100f3
--- /dev/null
+++ b/src/API/Model/ContainersIdArchiveHeadJsonResponse400.php
@@ -0,0 +1,76 @@
+initialized);
+ }
+ /**
+ * Represents an error.
+ *
+ * @var ErrorResponse|null
+ */
+ protected $errorResponse;
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ *
+ * @var string|null
+ */
+ protected $message;
+
+ /**
+ * Represents an error.
+ */
+ public function getErrorResponse(): ?ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ /**
+ * Represents an error.
+ */
+ public function setErrorResponse(?ErrorResponse $errorResponse): self
+ {
+ $this->initialized['errorResponse'] = true;
+ $this->errorResponse = $errorResponse;
+
+ return $this;
+ }
+
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ */
+ public function getMessage(): ?string
+ {
+ return $this->message;
+ }
+
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ */
+ public function setMessage(?string $message): self
+ {
+ $this->initialized['message'] = true;
+ $this->message = $message;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainersIdArchiveHeadTextplainResponse400.php b/src/API/Model/ContainersIdArchiveHeadTextplainResponse400.php
new file mode 100644
index 000000000..708505f60
--- /dev/null
+++ b/src/API/Model/ContainersIdArchiveHeadTextplainResponse400.php
@@ -0,0 +1,76 @@
+initialized);
+ }
+ /**
+ * Represents an error.
+ *
+ * @var ErrorResponse|null
+ */
+ protected $errorResponse;
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ *
+ * @var string|null
+ */
+ protected $message;
+
+ /**
+ * Represents an error.
+ */
+ public function getErrorResponse(): ?ErrorResponse
+ {
+ return $this->errorResponse;
+ }
+
+ /**
+ * Represents an error.
+ */
+ public function setErrorResponse(?ErrorResponse $errorResponse): self
+ {
+ $this->initialized['errorResponse'] = true;
+ $this->errorResponse = $errorResponse;
+
+ return $this;
+ }
+
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ */
+ public function getMessage(): ?string
+ {
+ return $this->message;
+ }
+
+ /**
+ * The error message. Either "must specify path parameter"
+ * (path cannot be empty) or "not a directory" (path was
+ * asserted to be a directory but exists as a file).
+ */
+ public function setMessage(?string $message): self
+ {
+ $this->initialized['message'] = true;
+ $this->message = $message;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainersIdChangesGetResponse200Item.php b/src/API/Model/ContainersIdChangesGetResponse200Item.php
new file mode 100644
index 000000000..81ad67136
--- /dev/null
+++ b/src/API/Model/ContainersIdChangesGetResponse200Item.php
@@ -0,0 +1,70 @@
+initialized);
+ }
+ /**
+ * Path to file that has changed
+ *
+ * @var string|null
+ */
+ protected $path;
+ /**
+ * Kind of change
+ *
+ * @var int|null
+ */
+ protected $kind;
+
+ /**
+ * Path to file that has changed
+ */
+ public function getPath(): ?string
+ {
+ return $this->path;
+ }
+
+ /**
+ * Path to file that has changed
+ */
+ public function setPath(?string $path): self
+ {
+ $this->initialized['path'] = true;
+ $this->path = $path;
+
+ return $this;
+ }
+
+ /**
+ * Kind of change
+ */
+ public function getKind(): ?int
+ {
+ return $this->kind;
+ }
+
+ /**
+ * Kind of change
+ */
+ public function setKind(?int $kind): self
+ {
+ $this->initialized['kind'] = true;
+ $this->kind = $kind;
+
+ return $this;
+ }
+}
diff --git a/src/API/Model/ContainersIdExecPostBody.php b/src/API/Model/ContainersIdExecPostBody.php
new file mode 100644
index 000000000..f6b06349f
--- /dev/null
+++ b/src/API/Model/ContainersIdExecPostBody.php
@@ -0,0 +1,290 @@
+initialized);
+ }
+ /**
+ * Attach to `stdin` of the exec command.
+ *
+ * @var bool|null
+ */
+ protected $attachStdin;
+ /**
+ * Attach to `stdout` of the exec command.
+ *
+ * @var bool|null
+ */
+ protected $attachStdout;
+ /**
+ * Attach to `stderr` of the exec command.
+ *
+ * @var bool|null
+ */
+ protected $attachStderr;
+ /**
+ * Override the key sequence for detaching a container. Format is
+ * a single character `[a-Z]` or `ctrl-` where ``
+ * is one of: `a-z`, `@`, `^`, `[`, `,` or `_`.
+ *
+ * @var string|null
+ */
+ protected $detachKeys;
+ /**
+ * Allocate a pseudo-TTY.
+ *
+ * @var bool|null
+ */
+ protected $tty;
+ /**
+ * A list of environment variables in the form `["VAR=value", ...]`.
+ *
+ * @var string[]|null
+ */
+ protected $env;
+ /**
+ * Command to run, as a string or array of strings.
+ *
+ * @var string[]|null
+ */
+ protected $cmd;
+ /**
+ * Runs the exec process with extended privileges.
+ *
+ * @var bool|null
+ */
+ protected $privileged = false;
+ /**
+ * The user, and optionally, group to run the exec process inside
+ * the container. Format is one of: `user`, `user:group`, `uid`,
+ * or `uid:gid`.
+ *
+ * @var string|null
+ */
+ protected $user;
+ /**
+ * The working directory for the exec process inside the container.
+ *
+ * @var string|null
+ */
+ protected $workingDir;
+
+ /**
+ * Attach to `stdin` of the exec command.
+ */
+ public function getAttachStdin(): ?bool
+ {
+ return $this->attachStdin;
+ }
+
+ /**
+ * Attach to `stdin` of the exec command.
+ */
+ public function setAttachStdin(?bool $attachStdin): self
+ {
+ $this->initialized['attachStdin'] = true;
+ $this->attachStdin = $attachStdin;
+
+ return $this;
+ }
+
+ /**
+ * Attach to `stdout` of the exec command.
+ */
+ public function getAttachStdout(): ?bool
+ {
+ return $this->attachStdout;
+ }
+
+ /**
+ * Attach to `stdout` of the exec command.
+ */
+ public function setAttachStdout(?bool $attachStdout): self
+ {
+ $this->initialized['attachStdout'] = true;
+ $this->attachStdout = $attachStdout;
+
+ return $this;
+ }
+
+ /**
+ * Attach to `stderr` of the exec command.
+ */
+ public function getAttachStderr(): ?bool
+ {
+ return $this->attachStderr;
+ }
+
+ /**
+ * Attach to `stderr` of the exec command.
+ */
+ public function setAttachStderr(?bool $attachStderr): self
+ {
+ $this->initialized['attachStderr'] = true;
+ $this->attachStderr = $attachStderr;
+
+ return $this;
+ }
+
+ /**
+ * Override the key sequence for detaching a container. Format is
+ * a single character `[a-Z]` or `ctrl-` where `