diff --git a/composer.json b/composer.json index f901f8f1..533e513d 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ }, "extra": { "branch-alias": { - "4.1.36": "4.1.36.x-dev" + "4.1.36": "4.1.40.x-dev" } }, "minimum-stability": "dev", diff --git a/docker-swagger.yaml b/docker-swagger.yaml index 5d77c604..b6eb4141 100644 --- a/docker-swagger.yaml +++ b/docker-swagger.yaml @@ -19,10 +19,10 @@ produces: consumes: - "application/json" - "text/plain" -basePath: "/v1.36" +basePath: "/v1.40" info: title: "Docker Engine API" - version: "1.36" + version: "1.40" x-logo: url: "https://docs.docker.com/images/logo-docker-main.png" description: | @@ -49,8 +49,8 @@ info: the URL is not supported by the daemon, a HTTP `400 Bad Request` error message is returned. - If you omit the version-prefix, the current version of the API (v1.36) is used. - For example, calling `/info` is the same as calling `/v1.36/info`. Using the + If you omit the version-prefix, the current version of the API (v1.40) is used. + For example, calling `/info` is the same as calling `/v1.40/info`. Using the API without a version-prefix is deprecated and will be removed in a future release. Engine releases in the near future should support this version of the API, @@ -155,6 +155,7 @@ definitions: IP: type: "string" format: "ip-address" + description: "Host IP address that the container's port is mapped to" PrivatePort: type: "integer" format: "uint16" @@ -167,7 +168,7 @@ definitions: Type: type: "string" x-nullable: false - enum: ["tcp", "udp"] + enum: ["tcp", "udp", "sctp"] example: PrivatePort: 8080 PublicPort: 80 @@ -237,11 +238,13 @@ definitions: - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed. - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. + - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. type: "string" enum: - "bind" - "volume" - "tmpfs" + - "npipe" ReadOnly: description: "Whether the mount should be read-only." type: "boolean" @@ -262,6 +265,10 @@ definitions: - "rshared" - "slave" - "rslave" + NonRecursive: + description: "Disable recursive bind mount." + type: "boolean" + default: false VolumeOptions: description: "Optional configuration for the `volume` type." type: "object" @@ -422,6 +429,11 @@ definitions: description: "Kernel memory limit in bytes." type: "integer" format: "int64" + example: 209715200 + KernelMemoryTCP: + description: "Hard limit for kernel TCP buffer memory (in bytes)." + type: "integer" + format: "int64" MemoryReservation: description: "Memory soft limit in bytes." type: "integer" @@ -443,6 +455,10 @@ definitions: OomKillDisable: description: "Disable OOM Killer for the container." type: "boolean" + Init: + description: "Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used." + type: "boolean" + x-nullable: true PidsLimit: description: "Tune a container's pids limit. Set -1 for unlimited." type: "integer" @@ -629,14 +645,22 @@ definitions: $ref: "#/definitions/Mount" # Applicable to UNIX platforms + Capabilities: + type: "array" + description: | + A list of kernel capabilities to be available for container (this overrides the default set). + + Conflicts with options 'CapAdd' and 'CapDrop'" + items: + type: "string" CapAdd: type: "array" - description: "A list of kernel capabilities to add to the container." + description: "A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'" items: type: "string" CapDrop: type: "array" - description: "A list of kernel capabilities to drop from the container." + description: "A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'" items: type: "string" Dns: @@ -767,6 +791,16 @@ definitions: - "default" - "process" - "hyperv" + MaskedPaths: + type: "array" + description: "The list of paths to be masked inside the container (this overrides the default set of paths)" + items: + type: "string" + ReadonlyPaths: + type: "array" + description: "The list of paths to be set as read-only inside the container (this overrides the default set of paths)" + items: + type: "string" ContainerConfig: description: "Configuration for a container that is portable between hosts" @@ -797,7 +831,7 @@ definitions: description: | An object mapping ports to an empty object in the form: - `{"/": {}}` + `{"/": {}}` type: "object" additionalProperties: type: "object" @@ -1062,8 +1096,8 @@ definitions: container's port-number and protocol as key in the format `/`, for example, `80/udp`. - If a container's port is mapped for both `tcp` and `udp`, two separate - entries are added to the mapping table. + If a container's port is mapped for multiple protocols, separate entries + are added to the mapping table. type: "object" additionalProperties: type: "array" @@ -1458,11 +1492,9 @@ definitions: type: "string" Options: description: "Driver-specific options, specified as a map." - type: "array" - items: - type: "object" - additionalProperties: - type: "string" + type: "object" + additionalProperties: + type: "string" NetworkContainer: type: "object" @@ -1498,6 +1530,31 @@ definitions: aux: $ref: "#/definitions/ImageID" + BuildCache: + type: "object" + properties: + ID: + type: "string" + Parent: + type: "string" + Type: + type: "string" + Description: + type: "string" + InUse: + type: "boolean" + Shared: + type: "boolean" + Size: + type: "integer" + CreatedAt: + type: "integer" + LastUsedAt: + type: "integer" + x-nullable: true + UsageCount: + type: "integer" + ImageID: type: "object" description: "Image ID or Digest" @@ -1854,6 +1911,13 @@ definitions: type: "string" x-nullable: false example: "plugins.sock" + ProtocolScheme: + type: "string" + example: "some.protocol/v1.0" + description: "Protocol to use for clients connecting to the plugin." + enum: + - "" + - "moby.plugins.http/v1" Entrypoint: type: "array" items: @@ -2412,6 +2476,31 @@ definitions: description: "Whether there is currently a root CA rotation in progress for the swarm" type: "boolean" example: false + DataPathPort: + description: | + 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. + type: "integer" + format: "uint32" + default: 4789 + example: 4789 + DefaultAddrPool: + description: | + Default Address Pool specifies default subnet pools for global scope networks. + type: "array" + items: + type: "string" + format: "CIDR" + example: ["10.10.0.0/16", "20.20.0.0/16"] + SubnetSize: + description: | + SubnetSize specifies the subnet size of the networks created from the default subnet pool + type: "integer" + format: "uint32" + maximum: 29 + default: 24 + example: 24 JoinTokens: description: | @@ -2444,7 +2533,15 @@ definitions: properties: PluginSpec: type: "object" - description: "Invalid when specified with `ContainerSpec`. *(Experimental release only.)*" + description: | + Plugin spec for the service. *(Experimental release only.)* + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. properties: Name: description: "The name or 'alias' to use for the plugin." @@ -2471,7 +2568,15 @@ definitions: type: "string" ContainerSpec: type: "object" - description: "Invalid when specified with `PluginSpec`." + description: | + Container spec for the service. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. properties: Image: description: "The image name to use for the container" @@ -2683,6 +2788,38 @@ definitions: - "default" - "process" - "hyperv" + Init: + description: "Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used." + type: "boolean" + x-nullable: true + Sysctls: + description: | + Set kernel namedspaced parameters (sysctls) in the container. + The Sysctls option on services accepts the same sysctls as the + are supported on containers. Note that while the same sysctls are + supported, no guarantees or checks are made about their + suitability for a clustered environment, and it's up to the user + to determine whether a given sysctl will work properly in a + Service. + type: "object" + additionalProperties: + type: "string" + NetworkAttachmentSpec: + description: | + Read-only spec type for non-swarm containers attached to swarm overlay + networks. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + type: "object" + properties: + ContainerID: + description: "ID of the container represented by this task" + type: "string" Resources: description: "Resource requirements which apply to each individual container created as part of the service." type: "object" @@ -2747,6 +2884,11 @@ definitions: SpreadDescriptor: "node.labels.datacenter" - Spread: SpreadDescriptor: "node.labels.rack" + MaxReplicas: + description: "Maximum number of replicas for per node (default value is 0, which is unlimited)" + type: "integer" + format: "int64" + default: 0 Platforms: description: | Platforms stores all the platforms that the service's image can @@ -2800,6 +2942,8 @@ definitions: - "shutdown" - "failed" - "rejected" + - "remove" + - "orphaned" Task: type: "object" @@ -3040,6 +3184,7 @@ definitions: enum: - "tcp" - "udp" + - "sctp" TargetPort: description: "The port inside the container." type: "integer" @@ -3070,7 +3215,8 @@ definitions: type: "object" properties: Mode: - description: "The mode of resolution to use for internal load balancing between tasks." + description: "The mode of resolution to use for internal load balancing + between tasks." type: "string" enum: - "vip" @@ -3331,6 +3477,13 @@ definitions: Driver: description: "Name of the secrets driver used to fetch the secret's value from an external secret store" $ref: "#/definitions/Driver" + Templating: + description: | + Templating driver, if applicable + + Templating controls whether and how to evaluate the config payload as + a template. If no driver is set, no templating is used. + $ref: "#/definitions/Driver" Secret: type: "object" @@ -3367,6 +3520,13 @@ definitions: Base64-url-safe-encoded ([RFC 4648](https://tools.ietf.org/html/rfc4648#section-3.2)) config data. type: "string" + Templating: + description: | + Templating driver, if applicable + + Templating controls whether and how to evaluate the config payload as + a template. If no driver is set, no templating is used. + $ref: "#/definitions/Driver" Config: type: "object" @@ -3646,18 +3806,22 @@ definitions: description: | HTTP-proxy configured for the daemon. This value is obtained from the [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. + Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL + are masked in the API response. Containers do not automatically inherit this configuration. type: "string" - example: "http://user:pass@proxy.corp.example.com:8080" + example: "http://xxxxx:xxxxx@proxy.corp.example.com:8080" HttpsProxy: description: | HTTPS-proxy configured for the daemon. This value is obtained from the [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. + Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL + are masked in the API response. Containers do not automatically inherit this configuration. type: "string" - example: "https://user:pass@proxy.corp.example.com:4443" + example: "https://xxxxx:xxxxx@proxy.corp.example.com:4443" NoProxy: description: | Comma-separated list of domain extensions for which no proxy should be @@ -3747,10 +3911,10 @@ definitions: $ref: "#/definitions/Runtime" default: runc: - path: "docker-runc" + path: "runc" example: runc: - path: "docker-runc" + path: "runc" runc-master: path: "/go/bin/runc" custom: @@ -3792,7 +3956,7 @@ definitions: - "process" InitBinary: description: | - Name and, optional, path of the the `docker-init` binary. + Name and, optional, path of the `docker-init` binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. @@ -3820,6 +3984,27 @@ definitions: - "name=seccomp,profile=default" - "name=selinux" - "name=userns" + ProductLicense: + description: | + Reports a summary of the product license on the daemon. + + If a commercial license has been applied to the daemon, information + such as number of nodes, and expiration are included. + type: "string" + example: "Community Engine" + Warnings: + description: | + List of warnings / informational messages about missing features, or + issues related to the daemon configuration. + + These messages can be printed by the client as information to the user. + type: "array" + items: + type: "string" + example: + - "WARNING: No memory limit support" + - "WARNING: bridge-nf-call-iptables is disabled" + - "WARNING: bridge-nf-call-ip6tables is disabled" # PluginsInfo is a temp struct holding Plugins name @@ -4010,7 +4195,7 @@ definitions: - "https://registry-3.docker.io/" Secure: description: | - Indicates if the the registry is part of the list of insecure + Indicates if the registry is part of the list of insecure registries. If `false`, the registry is insecure. Insecure registries accept @@ -4640,7 +4825,11 @@ paths: AppArmorProfile: type: "string" ExecIDs: - type: "string" + description: "IDs of exec instances that are running in the container." + type: "array" + items: + type: "string" + x-nullable: true HostConfig: $ref: "#/definitions/HostConfig" GraphDriver: @@ -4697,6 +4886,9 @@ paths: StopTimeout: 10 Created: "2015-01-06T15:47:31.485331387Z" Driver: "devicemapper" + ExecIDs: + - "b35395de42bc8abd327f9dd65d913b9ba28c74d2f0734eeeae84fa1c616a0fca" + - "3fc1232e5cd20c8de182ed81178503dc6437f4e7ef12b52cc5e8de020652f1c4" HostConfig: MaximumIOps: 0 MaximumIOBps: 0 @@ -5072,9 +5264,9 @@ paths: This endpoint returns a live stream of a container’s resource usage statistics. - The `precpu_stats` is the CPU statistic of last read, which is used - for calculating the CPU usage percentage. It is not the same as the - `cpu_stats` field. + 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 @@ -5349,6 +5541,13 @@ paths: examples: application/json: message: "No such container: c2ada9df5af8" + 409: + description: "container is not running" + schema: + $ref: "#/definitions/ErrorResponse" + examples: + application/json: + message: "Container d37cde0fe4ad63c3a7252023b2f9800282894247d145cb5933ddf6e52cc03a28 is not running" 500: description: "server error" schema: @@ -5832,7 +6031,7 @@ paths: headers: X-Docker-Container-Path-Stat: type: "string" - description: "TODO" + description: "A base64 - encoded JSON object with some filesystem header information about the path" 400: description: "Bad parameter" schema: @@ -6159,7 +6358,18 @@ paths: type: "integer" - name: "buildargs" in: "query" - description: "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. [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg)" + description: > + 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) type: "string" - name: "shmsize" in: "query" @@ -6175,7 +6385,10 @@ paths: type: "string" - name: "networkmode" in: "query" - description: "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 to which this container should connect to." + description: "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 to which this container should connect to." type: "string" - name: "Content-type" in: "header" @@ -6210,6 +6423,11 @@ paths: description: "Platform in the format os[/arch[/variant]]" type: "string" default: "" + - name: "target" + in: "query" + description: "Target build stage" + type: "string" + default: "" responses: 200: description: "no error" @@ -6228,6 +6446,29 @@ paths: produces: - "application/json" operationId: "BuildPrune" + parameters: + - name: "keep-storage" + in: "query" + description: "Amount of disk space in bytes to keep for cache" + type: "integer" + format: "int64" + - name: "all" + in: "query" + type: "boolean" + description: "Remove all types of build cache" + - name: "filters" + in: "query" + type: "string" + description: | + 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` responses: 200: description: "No error" @@ -6235,6 +6476,11 @@ paths: type: "object" title: "BuildPruneResponse" properties: + CachesDeleted: + type: "array" + items: + description: "ID of build cache object" + type: "string" SpaceReclaimed: description: "Disk space reclaimed in bytes" type: "integer" @@ -6863,6 +7109,9 @@ paths: API-Version: type: "string" description: "Max API Version the server supports" + BuildKit-Version: + type: "string" + description: "Default version of docker image builder" Docker-Experimental: type: "boolean" description: "If the server is running with experimental mode enabled" @@ -7066,6 +7315,10 @@ paths: type: "array" items: $ref: "#/definitions/Volume" + BuildCache: + type: "array" + items: + $ref: "#/definitions/BuildCache" example: LayersSize: 1092588 Images: @@ -7480,6 +7733,7 @@ paths: schema: type: "object" title: "VolumeListResponse" + description: "Volume list response" required: [Volumes, Warnings] properties: Volumes: @@ -7556,6 +7810,8 @@ paths: description: "Volume configuration" schema: type: "object" + description: "Volume configuration" + title: "VolumeConfig" properties: Name: description: "The new volume's name. If not specified, Docker generates a name." @@ -8473,6 +8729,7 @@ paths: - `label=` - `membership=`(`accepted`|`pending`)` - `name=` + - `node.label=` - `role=`(`manager`|`worker`)` type: "string" tags: ["Node"] @@ -8645,14 +8902,36 @@ paths: nodes in order to reach the containers running on this node. Using this parameter it is possible to separate the container data traffic from the management traffic of the cluster. type: "string" + DataPathPort: + description: | + 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, default port 4789 will be used. + type: "integer" + format: "uint32" + DefaultAddrPool: + description: | + Default Address Pool specifies default subnet pools for global scope networks. + type: "array" + items: + type: "string" + example: ["10.10.0.0/16", "20.20.0.0/16"] ForceNewCluster: description: "Force creation of a new swarm." type: "boolean" + SubnetSize: + description: | + SubnetSize specifies the subnet size of the networks created from the default subnet pool + type: "integer" + format: "uint32" Spec: $ref: "#/definitions/SwarmSpec" example: ListenAddr: "0.0.0.0:2377" AdvertiseAddr: "192.168.1.1:2377" + DataPathPort: 4789 + DefaultAddrPool: ["10.10.0.0/8", "20.20.0.0/8"] + SubnetSize: 24 ForceNewCluster: false Spec: Orchestration: {} @@ -9134,18 +9413,25 @@ paths: - name: "version" in: "query" - description: "The version number of the service object being updated. This is required to avoid conflicting writes." + description: "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}`" required: true type: "integer" - name: "registryAuthFrom" in: "query" type: "string" - description: "If the X-Registry-Auth header is not specified, this parameter indicates where to find registry authorization credentials. The valid values are `spec` and `previous-spec`." + description: "If the X-Registry-Auth header is not specified, this + parameter indicates where to find registry authorization credentials. The + valid values are `spec` and `previous-spec`." default: "spec" - name: "rollback" in: "query" type: "string" - description: "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." + description: "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." - name: "X-Registry-Auth" in: "header" description: "A base64-encoded auth configuration for pulling from private registries. [See the authentication section for details.](#section/Authentication)" @@ -9489,6 +9775,7 @@ paths: description: "Only return this number of log lines from the end of the logs. Specify as an integer or `all` to output all log lines." type: "string" default: "all" + tags: ["Task"] /secrets: get: summary: "List secrets" @@ -10020,4 +10307,4 @@ paths: description: "server error" schema: $ref: "#/definitions/ErrorResponse" - tags: ["Session (experimental)"] + tags: ["Session (experimental)"] \ No newline at end of file diff --git a/src/Client.php b/src/Client.php index 322a543a..c151cf54 100644 --- a/src/Client.php +++ b/src/Client.php @@ -32,7 +32,7 @@ class Client extends \Jane\OpenApiRuntime\Client\Psr7HttplugClient * @throws \Docker\API\Exception\ContainerListBadRequestException * @throws \Docker\API\Exception\ContainerListInternalServerErrorException * - * @return null|\Docker\API\Model\ContainerSummaryItem[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ContainerSummaryItem[]|\Psr\Http\Message\ResponseInterface|null */ public function containerList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -53,7 +53,7 @@ public function containerList(array $queryParameters = [], string $fetch = self: * @throws \Docker\API\Exception\ContainerCreateConflictException * @throws \Docker\API\Exception\ContainerCreateInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersCreatePostResponse201|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ContainersCreatePostResponse201|\Psr\Http\Message\ResponseInterface|null */ public function containerCreate(\Docker\API\Model\ContainersCreatePostBody $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -74,7 +74,7 @@ public function containerCreate(\Docker\API\Model\ContainersCreatePostBody $body * @throws \Docker\API\Exception\ContainerInspectNotFoundException * @throws \Docker\API\Exception\ContainerInspectInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdJsonGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ContainersIdJsonGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function containerInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -95,7 +95,7 @@ public function containerInspect(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerTopNotFoundException * @throws \Docker\API\Exception\ContainerTopInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdTopGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ContainersIdTopGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function containerTop(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -111,7 +111,7 @@ public function containerTop(string $id, array $queryParameters = [], string $fe * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` @@ -126,7 +126,7 @@ public function containerTop(string $id, array $queryParameters = [], string $fe * @throws \Docker\API\Exception\ContainerLogsNotFoundException * @throws \Docker\API\Exception\ContainerLogsInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -148,7 +148,7 @@ public function containerLogs(string $id, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerChangesNotFoundException * @throws \Docker\API\Exception\ContainerChangesInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdChangesGetResponse200Item[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ContainersIdChangesGetResponse200Item[]|\Psr\Http\Message\ResponseInterface|null */ public function containerChanges(string $id, string $fetch = self::FETCH_OBJECT) { @@ -164,7 +164,7 @@ public function containerChanges(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ContainerExportNotFoundException * @throws \Docker\API\Exception\ContainerExportInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerExport(string $id, string $fetch = self::FETCH_OBJECT) { @@ -175,9 +175,9 @@ public function containerExport(string $id, string $fetch = self::FETCH_OBJECT) * This endpoint returns a live stream of a container’s resource usage. statistics. - The `precpu_stats` is the CPU statistic of last read, which is used - for calculating the CPU usage percentage. It is not the same as the - `cpu_stats` field. + 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 @@ -195,7 +195,7 @@ public function containerExport(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ContainerStatsNotFoundException * @throws \Docker\API\Exception\ContainerStatsInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerStats(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -217,7 +217,7 @@ public function containerStats(string $id, array $queryParameters = [], string $ * @throws \Docker\API\Exception\ContainerResizeNotFoundException * @throws \Docker\API\Exception\ContainerResizeInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerResize(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -236,7 +236,7 @@ public function containerResize(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerStartNotFoundException * @throws \Docker\API\Exception\ContainerStartInternalServerErrorException * - * @return null|\Docker\API\Model\ErrorResponse|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ErrorResponse|\Psr\Http\Message\ResponseInterface|null */ public function containerStart(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -255,7 +255,7 @@ public function containerStart(string $id, array $queryParameters = [], string $ * @throws \Docker\API\Exception\ContainerStopNotFoundException * @throws \Docker\API\Exception\ContainerStopInternalServerErrorException * - * @return null|\Docker\API\Model\ErrorResponse|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ErrorResponse|\Psr\Http\Message\ResponseInterface|null */ public function containerStop(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -274,7 +274,7 @@ public function containerStop(string $id, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerRestartNotFoundException * @throws \Docker\API\Exception\ContainerRestartInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerRestart(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -293,9 +293,10 @@ public function containerRestart(string $id, array $queryParameters = [], string * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\ContainerKillNotFoundException + * @throws \Docker\API\Exception\ContainerKillConflictException * @throws \Docker\API\Exception\ContainerKillInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerKill(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -312,7 +313,7 @@ public function containerKill(string $id, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerUpdateNotFoundException * @throws \Docker\API\Exception\ContainerUpdateInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdUpdatePostResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ContainersIdUpdatePostResponse200|\Psr\Http\Message\ResponseInterface|null */ public function containerUpdate(string $id, \Docker\API\Model\ContainersIdUpdatePostBody $update, string $fetch = self::FETCH_OBJECT) { @@ -332,7 +333,7 @@ public function containerUpdate(string $id, \Docker\API\Model\ContainersIdUpdate * @throws \Docker\API\Exception\ContainerRenameConflictException * @throws \Docker\API\Exception\ContainerRenameInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerRename(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -351,7 +352,7 @@ public function containerRename(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerPauseNotFoundException * @throws \Docker\API\Exception\ContainerPauseInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerPause(string $id, string $fetch = self::FETCH_OBJECT) { @@ -367,7 +368,7 @@ public function containerPause(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ContainerUnpauseNotFoundException * @throws \Docker\API\Exception\ContainerUnpauseInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT) { @@ -456,7 +457,7 @@ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT) * @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 + * @var bool $logs Replay previous logs from the container. * @var bool $stream Stream attached streams from the time the request was made onwards * @var bool $stdin Attach to `stdin` @@ -470,7 +471,7 @@ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ContainerAttachNotFoundException * @throws \Docker\API\Exception\ContainerAttachInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerAttach(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -495,7 +496,7 @@ public function containerAttach(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerAttachWebsocketNotFoundException * @throws \Docker\API\Exception\ContainerAttachWebsocketInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerAttachWebsocket(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -516,7 +517,7 @@ public function containerAttachWebsocket(string $id, array $queryParameters = [] * @throws \Docker\API\Exception\ContainerWaitNotFoundException * @throws \Docker\API\Exception\ContainerWaitInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdWaitPostResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ContainersIdWaitPostResponse200|\Psr\Http\Message\ResponseInterface|null */ public function containerWait(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -539,7 +540,7 @@ public function containerWait(string $id, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerDeleteConflictException * @throws \Docker\API\Exception\ContainerDeleteInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerDelete(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -561,7 +562,7 @@ public function containerDelete(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerArchiveNotFoundException * @throws \Docker\API\Exception\ContainerArchiveInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerArchive(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -583,7 +584,7 @@ public function containerArchive(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerArchiveInfoNotFoundException * @throws \Docker\API\Exception\ContainerArchiveInfoInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function containerArchiveInfo(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -597,7 +598,7 @@ public function containerArchiveInfo(string $id, array $queryParameters = [], st * @param string $inputStream the input stream must be a tar archive compressed with one of the following algorithms: identity (no compression), gzip, bzip2, xz * @param array $queryParameters { * - * @var string $path Path to a directory in the container to extract the archive’s contents into. + * @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. * } * @@ -608,7 +609,7 @@ public function containerArchiveInfo(string $id, array $queryParameters = [], st * @throws \Docker\API\Exception\PutContainerArchiveNotFoundException * @throws \Docker\API\Exception\PutContainerArchiveInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function putContainerArchive(string $id, string $inputStream, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -618,14 +619,14 @@ public function putContainerArchive(string $id, string $inputStream, array $quer /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\ContainerPruneInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersPrunePostResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ContainersPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null */ public function containerPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -647,7 +648,7 @@ public function containerPrune(array $queryParameters = [], string $fetch = self * * @throws \Docker\API\Exception\ImageListInternalServerErrorException * - * @return null|\Docker\API\Model\ImageSummary[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ImageSummary[]|\Psr\Http\Message\ResponseInterface|null */ public function imageList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -683,18 +684,20 @@ public function imageList(array $queryParameters = [], string $fetch = self::FET * @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. [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg) + * @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. + * @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 to which this container should connect to. * @var string $platform Platform in the format os[/arch[/variant]] + * @var string $target Target build stage * } * * @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 + * @var string $X-Registry-Config This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -702,7 +705,7 @@ public function imageList(array $queryParameters = [], string $fetch = self::FET * @throws \Docker\API\Exception\ImageBuildBadRequestException * @throws \Docker\API\Exception\ImageBuildInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function imageBuild($inputStream, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -710,15 +713,21 @@ public function imageBuild($inputStream, array $queryParameters = [], array $hea } /** + * @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: + * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\BuildPruneInternalServerErrorException * - * @return null|\Docker\API\Model\BuildPrunePostResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\BuildPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null */ - public function buildPrune(string $fetch = self::FETCH_OBJECT) + public function buildPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executePsr7Endpoint(new \Docker\API\Endpoint\BuildPrune(), $fetch); + return $this->executePsr7Endpoint(new \Docker\API\Endpoint\BuildPrune($queryParameters), $fetch); } /** @@ -744,7 +753,7 @@ public function buildPrune(string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ImageCreateNotFoundException * @throws \Docker\API\Exception\ImageCreateInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function imageCreate(string $inputImage, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -760,7 +769,7 @@ public function imageCreate(string $inputImage, array $queryParameters = [], arr * @throws \Docker\API\Exception\ImageInspectNotFoundException * @throws \Docker\API\Exception\ImageInspectInternalServerErrorException * - * @return null|\Docker\API\Model\Image|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Image|\Psr\Http\Message\ResponseInterface|null */ public function imageInspect(string $name, string $fetch = self::FETCH_OBJECT) { @@ -776,7 +785,7 @@ public function imageInspect(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ImageHistoryNotFoundException * @throws \Docker\API\Exception\ImageHistoryInternalServerErrorException * - * @return null|\Docker\API\Model\ImagesNameHistoryGetResponse200Item[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ImagesNameHistoryGetResponse200Item[]|\Psr\Http\Message\ResponseInterface|null */ public function imageHistory(string $name, string $fetch = self::FETCH_OBJECT) { @@ -807,7 +816,7 @@ public function imageHistory(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ImagePushNotFoundException * @throws \Docker\API\Exception\ImagePushInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function imagePush(string $name, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -831,7 +840,7 @@ public function imagePush(string $name, array $queryParameters = [], array $head * @throws \Docker\API\Exception\ImageTagConflictException * @throws \Docker\API\Exception\ImageTagInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function imageTag(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -859,7 +868,7 @@ public function imageTag(string $name, array $queryParameters = [], string $fetc * @throws \Docker\API\Exception\ImageDeleteConflictException * @throws \Docker\API\Exception\ImageDeleteInternalServerErrorException * - * @return null|\Docker\API\Model\ImageDeleteResponseItem[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ImageDeleteResponseItem[]|\Psr\Http\Message\ResponseInterface|null */ public function imageDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -880,7 +889,7 @@ public function imageDelete(string $name, array $queryParameters = [], string $f * * @throws \Docker\API\Exception\ImageSearchInternalServerErrorException * - * @return null|\Docker\API\Model\ImagesSearchGetResponse200Item[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ImagesSearchGetResponse200Item[]|\Psr\Http\Message\ResponseInterface|null */ public function imageSearch(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -899,7 +908,7 @@ public function imageSearch(array $queryParameters = [], string $fetch = self::F * * @throws \Docker\API\Exception\ImagePruneInternalServerErrorException * - * @return null|\Docker\API\Model\ImagesPrunePostResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ImagesPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null */ public function imagePrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -914,7 +923,7 @@ public function imagePrune(array $queryParameters = [], string $fetch = self::FE * * @throws \Docker\API\Exception\SystemAuthInternalServerErrorException * - * @return null|\Docker\API\Model\AuthPostResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\AuthPostResponse200|\Psr\Http\Message\ResponseInterface|null */ public function systemAuth(\Docker\API\Model\AuthConfig $authConfig, string $fetch = self::FETCH_OBJECT) { @@ -926,7 +935,7 @@ public function systemAuth(\Docker\API\Model\AuthConfig $authConfig, string $fet * * @throws \Docker\API\Exception\SystemInfoInternalServerErrorException * - * @return null|\Docker\API\Model\SystemInfo|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\SystemInfo|\Psr\Http\Message\ResponseInterface|null */ public function systemInfo(string $fetch = self::FETCH_OBJECT) { @@ -938,7 +947,7 @@ public function systemInfo(string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\SystemVersionInternalServerErrorException * - * @return null|\Docker\API\Model\VersionGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\VersionGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function systemVersion(string $fetch = self::FETCH_OBJECT) { @@ -950,7 +959,7 @@ public function systemVersion(string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\SystemPingInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function systemPing(string $fetch = self::FETCH_OBJECT) { @@ -975,7 +984,7 @@ public function systemPing(string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ImageCommitNotFoundException * @throws \Docker\API\Exception\ImageCommitInternalServerErrorException * - * @return null|\Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null */ public function imageCommit(\Docker\API\Model\ContainerConfig $containerConfig, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1018,7 +1027,7 @@ public function imageCommit(\Docker\API\Model\ContainerConfig $containerConfig, * @throws \Docker\API\Exception\SystemEventsBadRequestException * @throws \Docker\API\Exception\SystemEventsInternalServerErrorException * - * @return null|\Docker\API\Model\EventsGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\EventsGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function systemEvents(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1030,7 +1039,7 @@ public function systemEvents(array $queryParameters = [], string $fetch = self:: * * @throws \Docker\API\Exception\SystemDataUsageInternalServerErrorException * - * @return null|\Docker\API\Model\SystemDfGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\SystemDfGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function systemDataUsage(string $fetch = self::FETCH_OBJECT) { @@ -1068,7 +1077,7 @@ public function systemDataUsage(string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\ImageGetInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function imageGet(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1092,7 +1101,7 @@ public function imageGet(string $name, string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\ImageGetAllInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function imageGetAll(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1115,7 +1124,7 @@ public function imageGetAll(array $queryParameters = [], string $fetch = self::F * * @throws \Docker\API\Exception\ImageLoadInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function imageLoad($imagesTarball, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1133,7 +1142,7 @@ public function imageLoad($imagesTarball, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerExecConflictException * @throws \Docker\API\Exception\ContainerExecInternalServerErrorException * - * @return null|\Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null */ public function containerExec(string $id, \Docker\API\Model\ContainersIdExecPostBody $execConfig, string $fetch = self::FETCH_OBJECT) { @@ -1150,7 +1159,7 @@ public function containerExec(string $id, \Docker\API\Model\ContainersIdExecPost * @throws \Docker\API\Exception\ExecStartNotFoundException * @throws \Docker\API\Exception\ExecStartConflictException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function execStart(string $id, \Docker\API\Model\ExecIdStartPostBody $execStartConfig, string $fetch = self::FETCH_OBJECT) { @@ -1171,7 +1180,7 @@ public function execStart(string $id, \Docker\API\Model\ExecIdStartPostBody $exe * * @throws \Docker\API\Exception\ExecResizeNotFoundException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function execResize(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1187,7 +1196,7 @@ public function execResize(string $id, array $queryParameters = [], string $fetc * @throws \Docker\API\Exception\ExecInspectNotFoundException * @throws \Docker\API\Exception\ExecInspectInternalServerErrorException * - * @return null|\Docker\API\Model\ExecIdJsonGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ExecIdJsonGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function execInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1203,7 +1212,7 @@ public function execInspect(string $id, string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\VolumeListInternalServerErrorException * - * @return null|\Docker\API\Model\VolumesGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\VolumesGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function volumeList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1216,7 +1225,7 @@ public function volumeList(array $queryParameters = [], string $fetch = self::FE * * @throws \Docker\API\Exception\VolumeCreateInternalServerErrorException * - * @return null|\Docker\API\Model\Volume|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Volume|\Psr\Http\Message\ResponseInterface|null */ public function volumeCreate(\Docker\API\Model\VolumesCreatePostBody $volumeConfig, string $fetch = self::FETCH_OBJECT) { @@ -1238,7 +1247,7 @@ public function volumeCreate(\Docker\API\Model\VolumesCreatePostBody $volumeConf * @throws \Docker\API\Exception\VolumeDeleteConflictException * @throws \Docker\API\Exception\VolumeDeleteInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function volumeDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1252,7 +1261,7 @@ public function volumeDelete(string $name, array $queryParameters = [], string $ * @throws \Docker\API\Exception\VolumeInspectNotFoundException * @throws \Docker\API\Exception\VolumeInspectInternalServerErrorException * - * @return null|\Docker\API\Model\Volume|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Volume|\Psr\Http\Message\ResponseInterface|null */ public function volumeInspect(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1262,14 +1271,14 @@ public function volumeInspect(string $name, string $fetch = self::FETCH_OBJECT) /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\VolumePruneInternalServerErrorException * - * @return null|\Docker\API\Model\VolumesPrunePostResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\VolumesPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null */ public function volumePrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1292,7 +1301,7 @@ public function volumePrune(array $queryParameters = [], string $fetch = self::F * * @throws \Docker\API\Exception\NetworkListInternalServerErrorException * - * @return null|\Docker\API\Model\Network[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Network[]|\Psr\Http\Message\ResponseInterface|null */ public function networkList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1307,7 +1316,7 @@ public function networkList(array $queryParameters = [], string $fetch = self::F * @throws \Docker\API\Exception\NetworkDeleteNotFoundException * @throws \Docker\API\Exception\NetworkDeleteInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function networkDelete(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1327,7 +1336,7 @@ public function networkDelete(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\NetworkInspectNotFoundException * @throws \Docker\API\Exception\NetworkInspectInternalServerErrorException * - * @return null|\Docker\API\Model\Network|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Network|\Psr\Http\Message\ResponseInterface|null */ public function networkInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1342,7 +1351,7 @@ public function networkInspect(string $id, array $queryParameters = [], string $ * @throws \Docker\API\Exception\NetworkCreateNotFoundException * @throws \Docker\API\Exception\NetworkCreateInternalServerErrorException * - * @return null|\Docker\API\Model\NetworksCreatePostResponse201|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\NetworksCreatePostResponse201|\Psr\Http\Message\ResponseInterface|null */ public function networkCreate(\Docker\API\Model\NetworksCreatePostBody $networkConfig, string $fetch = self::FETCH_OBJECT) { @@ -1358,7 +1367,7 @@ public function networkCreate(\Docker\API\Model\NetworksCreatePostBody $networkC * @throws \Docker\API\Exception\NetworkConnectNotFoundException * @throws \Docker\API\Exception\NetworkConnectInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function networkConnect(string $id, \Docker\API\Model\NetworksIdConnectPostBody $container, string $fetch = self::FETCH_OBJECT) { @@ -1374,7 +1383,7 @@ public function networkConnect(string $id, \Docker\API\Model\NetworksIdConnectPo * @throws \Docker\API\Exception\NetworkDisconnectNotFoundException * @throws \Docker\API\Exception\NetworkDisconnectInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function networkDisconnect(string $id, \Docker\API\Model\NetworksIdDisconnectPostBody $container, string $fetch = self::FETCH_OBJECT) { @@ -1384,14 +1393,14 @@ public function networkDisconnect(string $id, \Docker\API\Model\NetworksIdDiscon /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\NetworkPruneInternalServerErrorException * - * @return null|\Docker\API\Model\NetworksPrunePostResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\NetworksPrunePostResponse200|\Psr\Http\Message\ResponseInterface|null */ public function networkPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1410,7 +1419,7 @@ public function networkPrune(array $queryParameters = [], string $fetch = self:: * * @throws \Docker\API\Exception\PluginListInternalServerErrorException * - * @return null|\Docker\API\Model\Plugin[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Plugin[]|\Psr\Http\Message\ResponseInterface|null */ public function pluginList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1427,7 +1436,7 @@ public function pluginList(array $queryParameters = [], string $fetch = self::FE * * @throws \Docker\API\Exception\GetPluginPrivilegesInternalServerErrorException * - * @return null|\Docker\API\Model\PluginsPrivilegesGetResponse200Item[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\PluginsPrivilegesGetResponse200Item[]|\Psr\Http\Message\ResponseInterface|null */ public function getPluginPrivileges(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1441,9 +1450,9 @@ public function getPluginPrivileges(array $queryParameters = [], string $fetch = * @param array $body * @param array $queryParameters { * - * @var string $remote remote reference for plugin to install + * @var string $remote Remote reference for plugin to install. - * @var string $name local name for the pulled plugin + * @var string $name Local name for the pulled plugin. The `:latest` tag is optional, and is used as the default if omitted. @@ -1458,7 +1467,7 @@ public function getPluginPrivileges(array $queryParameters = [], string $fetch = * * @throws \Docker\API\Exception\PluginPullInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function pluginPull(array $body, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1472,7 +1481,7 @@ public function pluginPull(array $body, array $queryParameters = [], array $head * @throws \Docker\API\Exception\PluginInspectNotFoundException * @throws \Docker\API\Exception\PluginInspectInternalServerErrorException * - * @return null|\Docker\API\Model\Plugin|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Plugin|\Psr\Http\Message\ResponseInterface|null */ public function pluginInspect(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1491,7 +1500,7 @@ public function pluginInspect(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\PluginDeleteNotFoundException * @throws \Docker\API\Exception\PluginDeleteInternalServerErrorException * - * @return null|\Docker\API\Model\Plugin|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Plugin|\Psr\Http\Message\ResponseInterface|null */ public function pluginDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1510,7 +1519,7 @@ public function pluginDelete(string $name, array $queryParameters = [], string $ * @throws \Docker\API\Exception\PluginEnableNotFoundException * @throws \Docker\API\Exception\PluginEnableInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function pluginEnable(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1524,7 +1533,7 @@ public function pluginEnable(string $name, array $queryParameters = [], string $ * @throws \Docker\API\Exception\PluginDisableNotFoundException * @throws \Docker\API\Exception\PluginDisableInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1536,7 +1545,7 @@ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT) * @param array $body * @param array $queryParameters { * - * @var string $remote remote reference to upgrade to + * @var string $remote Remote reference to upgrade to. The `:latest` tag is optional, and is used as the default if omitted. @@ -1552,7 +1561,7 @@ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\PluginUpgradeNotFoundException * @throws \Docker\API\Exception\PluginUpgradeInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function pluginUpgrade(string $name, array $body, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1570,7 +1579,7 @@ public function pluginUpgrade(string $name, array $body, array $queryParameters * * @throws \Docker\API\Exception\PluginCreateInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function pluginCreate($tarContext, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1586,7 +1595,7 @@ public function pluginCreate($tarContext, array $queryParameters = [], string $f * @throws \Docker\API\Exception\PluginPushNotFoundException * @throws \Docker\API\Exception\PluginPushInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function pluginPush(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1601,7 +1610,7 @@ public function pluginPush(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\PluginSetNotFoundException * @throws \Docker\API\Exception\PluginSetInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function pluginSet(string $name, array $body, string $fetch = self::FETCH_OBJECT) { @@ -1611,7 +1620,7 @@ public function pluginSet(string $name, array $body, string $fetch = self::FETCH /** * @param array $queryParameters { * - * @var string $filters filters to process on the nodes list, encoded as JSON (a `map[string][]string`) + * @var string $filters Filters to process on the nodes list, encoded as JSON (a `map[string][]string`). * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -1619,7 +1628,7 @@ public function pluginSet(string $name, array $body, string $fetch = self::FETCH * @throws \Docker\API\Exception\NodeListInternalServerErrorException * @throws \Docker\API\Exception\NodeListServiceUnavailableException * - * @return null|\Docker\API\Model\Node[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Node[]|\Psr\Http\Message\ResponseInterface|null */ public function nodeList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1639,7 +1648,7 @@ public function nodeList(array $queryParameters = [], string $fetch = self::FETC * @throws \Docker\API\Exception\NodeDeleteInternalServerErrorException * @throws \Docker\API\Exception\NodeDeleteServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function nodeDelete(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1654,7 +1663,7 @@ public function nodeDelete(string $id, array $queryParameters = [], string $fetc * @throws \Docker\API\Exception\NodeInspectInternalServerErrorException * @throws \Docker\API\Exception\NodeInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Node|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Node|\Psr\Http\Message\ResponseInterface|null */ public function nodeInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1676,7 +1685,7 @@ public function nodeInspect(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\NodeUpdateInternalServerErrorException * @throws \Docker\API\Exception\NodeUpdateServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function nodeUpdate(string $id, \Docker\API\Model\NodeSpec $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1690,7 +1699,7 @@ public function nodeUpdate(string $id, \Docker\API\Model\NodeSpec $body, array $ * @throws \Docker\API\Exception\SwarmInspectInternalServerErrorException * @throws \Docker\API\Exception\SwarmInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Swarm|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Swarm|\Psr\Http\Message\ResponseInterface|null */ public function swarmInspect(string $fetch = self::FETCH_OBJECT) { @@ -1705,7 +1714,7 @@ public function swarmInspect(string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\SwarmInitInternalServerErrorException * @throws \Docker\API\Exception\SwarmInitServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function swarmInit(\Docker\API\Model\SwarmInitPostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -1720,7 +1729,7 @@ public function swarmInit(\Docker\API\Model\SwarmInitPostBody $body, string $fet * @throws \Docker\API\Exception\SwarmJoinInternalServerErrorException * @throws \Docker\API\Exception\SwarmJoinServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function swarmJoin(\Docker\API\Model\SwarmJoinPostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -1738,7 +1747,7 @@ public function swarmJoin(\Docker\API\Model\SwarmJoinPostBody $body, string $fet * @throws \Docker\API\Exception\SwarmLeaveInternalServerErrorException * @throws \Docker\API\Exception\SwarmLeaveServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function swarmLeave(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1761,7 +1770,7 @@ public function swarmLeave(array $queryParameters = [], string $fetch = self::FE * @throws \Docker\API\Exception\SwarmUpdateInternalServerErrorException * @throws \Docker\API\Exception\SwarmUpdateServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function swarmUpdate(\Docker\API\Model\SwarmSpec $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1774,7 +1783,7 @@ public function swarmUpdate(\Docker\API\Model\SwarmSpec $body, array $queryParam * @throws \Docker\API\Exception\SwarmUnlockkeyInternalServerErrorException * @throws \Docker\API\Exception\SwarmUnlockkeyServiceUnavailableException * - * @return null|\Docker\API\Model\SwarmUnlockkeyGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\SwarmUnlockkeyGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function swarmUnlockkey(string $fetch = self::FETCH_OBJECT) { @@ -1788,7 +1797,7 @@ public function swarmUnlockkey(string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\SwarmUnlockInternalServerErrorException * @throws \Docker\API\Exception\SwarmUnlockServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function swarmUnlock(\Docker\API\Model\SwarmUnlockPostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -1806,7 +1815,7 @@ public function swarmUnlock(\Docker\API\Model\SwarmUnlockPostBody $body, string * @throws \Docker\API\Exception\ServiceListInternalServerErrorException * @throws \Docker\API\Exception\ServiceListServiceUnavailableException * - * @return null|\Docker\API\Model\Service[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Service[]|\Psr\Http\Message\ResponseInterface|null */ public function serviceList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1828,7 +1837,7 @@ public function serviceList(array $queryParameters = [], string $fetch = self::F * @throws \Docker\API\Exception\ServiceCreateInternalServerErrorException * @throws \Docker\API\Exception\ServiceCreateServiceUnavailableException * - * @return null|\Docker\API\Model\ServicesCreatePostResponse201|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ServicesCreatePostResponse201|\Psr\Http\Message\ResponseInterface|null */ public function serviceCreate(\Docker\API\Model\ServicesCreatePostBody $body, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1843,7 +1852,7 @@ public function serviceCreate(\Docker\API\Model\ServicesCreatePostBody $body, ar * @throws \Docker\API\Exception\ServiceDeleteInternalServerErrorException * @throws \Docker\API\Exception\ServiceDeleteServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function serviceDelete(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1863,7 +1872,7 @@ public function serviceDelete(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ServiceInspectInternalServerErrorException * @throws \Docker\API\Exception\ServiceInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Service|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Service|\Psr\Http\Message\ResponseInterface|null */ public function serviceInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1875,7 +1884,7 @@ public function serviceInspect(string $id, array $queryParameters = [], string $ * @param \Docker\API\Model\ServicesIdUpdatePostBody $body * @param array $queryParameters { * - * @var int $version The version number of the service object being updated. This is required to avoid conflicting writes. + * @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. The valid values are `spec` and `previous-spec`. * @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. * } @@ -1892,7 +1901,7 @@ public function serviceInspect(string $id, array $queryParameters = [], string $ * @throws \Docker\API\Exception\ServiceUpdateInternalServerErrorException * @throws \Docker\API\Exception\ServiceUpdateServiceUnavailableException * - * @return null|\Docker\API\Model\ServiceUpdateResponse|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\ServiceUpdateResponse|\Psr\Http\Message\ResponseInterface|null */ public function serviceUpdate(string $id, \Docker\API\Model\ServicesIdUpdatePostBody $body, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1909,7 +1918,7 @@ public function serviceUpdate(string $id, \Docker\API\Model\ServicesIdUpdatePost * @param array $queryParameters { * * @var bool $details show service context and extra details provided to logs - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` @@ -1924,7 +1933,7 @@ public function serviceUpdate(string $id, \Docker\API\Model\ServicesIdUpdatePost * @throws \Docker\API\Exception\ServiceLogsInternalServerErrorException * @throws \Docker\API\Exception\ServiceLogsServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function serviceLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1942,7 +1951,7 @@ public function serviceLogs(string $id, array $queryParameters = [], string $fet * @throws \Docker\API\Exception\TaskListInternalServerErrorException * @throws \Docker\API\Exception\TaskListServiceUnavailableException * - * @return null|\Docker\API\Model\Task[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Task[]|\Psr\Http\Message\ResponseInterface|null */ public function taskList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1957,7 +1966,7 @@ public function taskList(array $queryParameters = [], string $fetch = self::FETC * @throws \Docker\API\Exception\TaskInspectInternalServerErrorException * @throws \Docker\API\Exception\TaskInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Task|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Task|\Psr\Http\Message\ResponseInterface|null */ public function taskInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1974,7 +1983,7 @@ public function taskInspect(string $id, string $fetch = self::FETCH_OBJECT) * @param array $queryParameters { * * @var bool $details show task context and extra details provided to logs - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` @@ -1989,7 +1998,7 @@ public function taskInspect(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\TaskLogsInternalServerErrorException * @throws \Docker\API\Exception\TaskLogsServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function taskLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2007,7 +2016,7 @@ public function taskLogs(string $id, array $queryParameters = [], string $fetch * @throws \Docker\API\Exception\SecretListInternalServerErrorException * @throws \Docker\API\Exception\SecretListServiceUnavailableException * - * @return null|\Docker\API\Model\Secret[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Secret[]|\Psr\Http\Message\ResponseInterface|null */ public function secretList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2022,7 +2031,7 @@ public function secretList(array $queryParameters = [], string $fetch = self::FE * @throws \Docker\API\Exception\SecretCreateInternalServerErrorException * @throws \Docker\API\Exception\SecretCreateServiceUnavailableException * - * @return null|\Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null */ public function secretCreate(\Docker\API\Model\SecretsCreatePostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -2037,7 +2046,7 @@ public function secretCreate(\Docker\API\Model\SecretsCreatePostBody $body, stri * @throws \Docker\API\Exception\SecretDeleteInternalServerErrorException * @throws \Docker\API\Exception\SecretDeleteServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function secretDelete(string $id, string $fetch = self::FETCH_OBJECT) { @@ -2052,7 +2061,7 @@ public function secretDelete(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\SecretInspectInternalServerErrorException * @throws \Docker\API\Exception\SecretInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Secret|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Secret|\Psr\Http\Message\ResponseInterface|null */ public function secretInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -2074,7 +2083,7 @@ public function secretInspect(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\SecretUpdateInternalServerErrorException * @throws \Docker\API\Exception\SecretUpdateServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function secretUpdate(string $id, \Docker\API\Model\SecretSpec $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2092,7 +2101,7 @@ public function secretUpdate(string $id, \Docker\API\Model\SecretSpec $body, arr * @throws \Docker\API\Exception\ConfigListInternalServerErrorException * @throws \Docker\API\Exception\ConfigListServiceUnavailableException * - * @return null|\Docker\API\Model\Config[]|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Config[]|\Psr\Http\Message\ResponseInterface|null */ public function configList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2107,7 +2116,7 @@ public function configList(array $queryParameters = [], string $fetch = self::FE * @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException * @throws \Docker\API\Exception\ConfigCreateServiceUnavailableException * - * @return null|\Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\IdResponse|\Psr\Http\Message\ResponseInterface|null */ public function configCreate(\Docker\API\Model\ConfigsCreatePostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -2122,7 +2131,7 @@ public function configCreate(\Docker\API\Model\ConfigsCreatePostBody $body, stri * @throws \Docker\API\Exception\ConfigDeleteInternalServerErrorException * @throws \Docker\API\Exception\ConfigDeleteServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function configDelete(string $id, string $fetch = self::FETCH_OBJECT) { @@ -2137,7 +2146,7 @@ public function configDelete(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ConfigInspectInternalServerErrorException * @throws \Docker\API\Exception\ConfigInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Config|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\Config|\Psr\Http\Message\ResponseInterface|null */ public function configInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -2159,7 +2168,7 @@ public function configInspect(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ConfigUpdateInternalServerErrorException * @throws \Docker\API\Exception\ConfigUpdateServiceUnavailableException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function configUpdate(string $id, \Docker\API\Model\ConfigSpec $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2175,7 +2184,7 @@ public function configUpdate(string $id, \Docker\API\Model\ConfigSpec $body, arr * @throws \Docker\API\Exception\DistributionInspectUnauthorizedException * @throws \Docker\API\Exception\DistributionInspectInternalServerErrorException * - * @return null|\Docker\API\Model\DistributionNameJsonGetResponse200|\Psr\Http\Message\ResponseInterface + * @return \Docker\API\Model\DistributionNameJsonGetResponse200|\Psr\Http\Message\ResponseInterface|null */ public function distributionInspect(string $name, string $fetch = self::FETCH_OBJECT) { @@ -2188,7 +2197,7 @@ public function distributionInspect(string $name, string $fetch = self::FETCH_OB * @throws \Docker\API\Exception\SessionBadRequestException * @throws \Docker\API\Exception\SessionInternalServerErrorException * - * @return null|\Psr\Http\Message\ResponseInterface + * @return \Psr\Http\Message\ResponseInterface|null */ public function session(string $fetch = self::FETCH_OBJECT) { @@ -2200,7 +2209,7 @@ public static function create($httpClient = null) if (null === $httpClient) { $httpClient = \Http\Discovery\HttpClientDiscovery::find(); $plugins = []; - $uri = \Http\Discovery\UriFactoryDiscovery::find()->createUri('v1.36'); + $uri = \Http\Discovery\UriFactoryDiscovery::find()->createUri('v1.40'); $plugins[] = new \Http\Client\Common\Plugin\AddPathPlugin($uri); $httpClient = new \Http\Client\Common\PluginClient($httpClient, $plugins); } diff --git a/src/ClientAsync.php b/src/ClientAsync.php index 8ae78372..60569ec5 100644 --- a/src/ClientAsync.php +++ b/src/ClientAsync.php @@ -32,7 +32,7 @@ class ClientAsync extends \Jane\OpenApiRuntime\Client\AmpArtaxClient * @throws \Docker\API\Exception\ContainerListBadRequestException * @throws \Docker\API\Exception\ContainerListInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ContainerSummaryItem[]|\Amp\Artax\Response|null> */ public function containerList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -53,7 +53,7 @@ public function containerList(array $queryParameters = [], string $fetch = self: * @throws \Docker\API\Exception\ContainerCreateConflictException * @throws \Docker\API\Exception\ContainerCreateInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ContainersCreatePostResponse201|\Amp\Artax\Response|null> */ public function containerCreate(\Docker\API\Model\ContainersCreatePostBody $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -74,7 +74,7 @@ public function containerCreate(\Docker\API\Model\ContainersCreatePostBody $body * @throws \Docker\API\Exception\ContainerInspectNotFoundException * @throws \Docker\API\Exception\ContainerInspectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ContainersIdJsonGetResponse200|\Amp\Artax\Response|null> */ public function containerInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -95,7 +95,7 @@ public function containerInspect(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerTopNotFoundException * @throws \Docker\API\Exception\ContainerTopInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ContainersIdTopGetResponse200|\Amp\Artax\Response|null> */ public function containerTop(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -111,7 +111,7 @@ public function containerTop(string $id, array $queryParameters = [], string $fe * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` @@ -126,7 +126,7 @@ public function containerTop(string $id, array $queryParameters = [], string $fe * @throws \Docker\API\Exception\ContainerLogsNotFoundException * @throws \Docker\API\Exception\ContainerLogsInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -148,7 +148,7 @@ public function containerLogs(string $id, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerChangesNotFoundException * @throws \Docker\API\Exception\ContainerChangesInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ContainersIdChangesGetResponse200Item[]|\Amp\Artax\Response|null> */ public function containerChanges(string $id, string $fetch = self::FETCH_OBJECT) { @@ -164,7 +164,7 @@ public function containerChanges(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ContainerExportNotFoundException * @throws \Docker\API\Exception\ContainerExportInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerExport(string $id, string $fetch = self::FETCH_OBJECT) { @@ -175,9 +175,9 @@ public function containerExport(string $id, string $fetch = self::FETCH_OBJECT) * This endpoint returns a live stream of a container’s resource usage. statistics. - The `precpu_stats` is the CPU statistic of last read, which is used - for calculating the CPU usage percentage. It is not the same as the - `cpu_stats` field. + 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 @@ -195,7 +195,7 @@ public function containerExport(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ContainerStatsNotFoundException * @throws \Docker\API\Exception\ContainerStatsInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerStats(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -217,7 +217,7 @@ public function containerStats(string $id, array $queryParameters = [], string $ * @throws \Docker\API\Exception\ContainerResizeNotFoundException * @throws \Docker\API\Exception\ContainerResizeInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerResize(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -236,7 +236,7 @@ public function containerResize(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerStartNotFoundException * @throws \Docker\API\Exception\ContainerStartInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ErrorResponse|\Amp\Artax\Response|null> */ public function containerStart(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -255,7 +255,7 @@ public function containerStart(string $id, array $queryParameters = [], string $ * @throws \Docker\API\Exception\ContainerStopNotFoundException * @throws \Docker\API\Exception\ContainerStopInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ErrorResponse|\Amp\Artax\Response|null> */ public function containerStop(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -274,7 +274,7 @@ public function containerStop(string $id, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerRestartNotFoundException * @throws \Docker\API\Exception\ContainerRestartInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerRestart(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -293,9 +293,10 @@ public function containerRestart(string $id, array $queryParameters = [], string * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\ContainerKillNotFoundException + * @throws \Docker\API\Exception\ContainerKillConflictException * @throws \Docker\API\Exception\ContainerKillInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerKill(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -312,7 +313,7 @@ public function containerKill(string $id, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerUpdateNotFoundException * @throws \Docker\API\Exception\ContainerUpdateInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ContainersIdUpdatePostResponse200|\Amp\Artax\Response|null> */ public function containerUpdate(string $id, \Docker\API\Model\ContainersIdUpdatePostBody $update, string $fetch = self::FETCH_OBJECT) { @@ -332,7 +333,7 @@ public function containerUpdate(string $id, \Docker\API\Model\ContainersIdUpdate * @throws \Docker\API\Exception\ContainerRenameConflictException * @throws \Docker\API\Exception\ContainerRenameInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerRename(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -351,7 +352,7 @@ public function containerRename(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerPauseNotFoundException * @throws \Docker\API\Exception\ContainerPauseInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerPause(string $id, string $fetch = self::FETCH_OBJECT) { @@ -367,7 +368,7 @@ public function containerPause(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ContainerUnpauseNotFoundException * @throws \Docker\API\Exception\ContainerUnpauseInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT) { @@ -456,7 +457,7 @@ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT) * @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 + * @var bool $logs Replay previous logs from the container. * @var bool $stream Stream attached streams from the time the request was made onwards * @var bool $stdin Attach to `stdin` @@ -470,7 +471,7 @@ public function containerUnpause(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ContainerAttachNotFoundException * @throws \Docker\API\Exception\ContainerAttachInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerAttach(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -495,7 +496,7 @@ public function containerAttach(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerAttachWebsocketNotFoundException * @throws \Docker\API\Exception\ContainerAttachWebsocketInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerAttachWebsocket(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -516,7 +517,7 @@ public function containerAttachWebsocket(string $id, array $queryParameters = [] * @throws \Docker\API\Exception\ContainerWaitNotFoundException * @throws \Docker\API\Exception\ContainerWaitInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ContainersIdWaitPostResponse200|\Amp\Artax\Response|null> */ public function containerWait(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -539,7 +540,7 @@ public function containerWait(string $id, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerDeleteConflictException * @throws \Docker\API\Exception\ContainerDeleteInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerDelete(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -561,7 +562,7 @@ public function containerDelete(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerArchiveNotFoundException * @throws \Docker\API\Exception\ContainerArchiveInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerArchive(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -583,7 +584,7 @@ public function containerArchive(string $id, array $queryParameters = [], string * @throws \Docker\API\Exception\ContainerArchiveInfoNotFoundException * @throws \Docker\API\Exception\ContainerArchiveInfoInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function containerArchiveInfo(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -597,7 +598,7 @@ public function containerArchiveInfo(string $id, array $queryParameters = [], st * @param string $inputStream the input stream must be a tar archive compressed with one of the following algorithms: identity (no compression), gzip, bzip2, xz * @param array $queryParameters { * - * @var string $path Path to a directory in the container to extract the archive’s contents into. + * @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. * } * @@ -608,7 +609,7 @@ public function containerArchiveInfo(string $id, array $queryParameters = [], st * @throws \Docker\API\Exception\PutContainerArchiveNotFoundException * @throws \Docker\API\Exception\PutContainerArchiveInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function putContainerArchive(string $id, string $inputStream, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -618,14 +619,14 @@ public function putContainerArchive(string $id, string $inputStream, array $quer /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\ContainerPruneInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ContainersPrunePostResponse200|\Amp\Artax\Response|null> */ public function containerPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -647,7 +648,7 @@ public function containerPrune(array $queryParameters = [], string $fetch = self * * @throws \Docker\API\Exception\ImageListInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ImageSummary[]|\Amp\Artax\Response|null> */ public function imageList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -683,18 +684,20 @@ public function imageList(array $queryParameters = [], string $fetch = self::FET * @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. [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg) + * @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. + * @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 to which this container should connect to. * @var string $platform Platform in the format os[/arch[/variant]] + * @var string $target Target build stage * } * * @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 + * @var string $X-Registry-Config This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -702,7 +705,7 @@ public function imageList(array $queryParameters = [], string $fetch = self::FET * @throws \Docker\API\Exception\ImageBuildBadRequestException * @throws \Docker\API\Exception\ImageBuildInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function imageBuild($inputStream, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -710,15 +713,21 @@ public function imageBuild($inputStream, array $queryParameters = [], array $hea } /** + * @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: + * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\BuildPruneInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\BuildPrunePostResponse200|\Amp\Artax\Response|null> */ - public function buildPrune(string $fetch = self::FETCH_OBJECT) + public function buildPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { - return $this->executeArtaxEndpoint(new \Docker\API\Endpoint\BuildPrune(), $fetch); + return $this->executeArtaxEndpoint(new \Docker\API\Endpoint\BuildPrune($queryParameters), $fetch); } /** @@ -744,7 +753,7 @@ public function buildPrune(string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ImageCreateNotFoundException * @throws \Docker\API\Exception\ImageCreateInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function imageCreate(string $inputImage, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -760,7 +769,7 @@ public function imageCreate(string $inputImage, array $queryParameters = [], arr * @throws \Docker\API\Exception\ImageInspectNotFoundException * @throws \Docker\API\Exception\ImageInspectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Image|\Amp\Artax\Response|null> */ public function imageInspect(string $name, string $fetch = self::FETCH_OBJECT) { @@ -776,7 +785,7 @@ public function imageInspect(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ImageHistoryNotFoundException * @throws \Docker\API\Exception\ImageHistoryInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ImagesNameHistoryGetResponse200Item[]|\Amp\Artax\Response|null> */ public function imageHistory(string $name, string $fetch = self::FETCH_OBJECT) { @@ -807,7 +816,7 @@ public function imageHistory(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ImagePushNotFoundException * @throws \Docker\API\Exception\ImagePushInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function imagePush(string $name, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -831,7 +840,7 @@ public function imagePush(string $name, array $queryParameters = [], array $head * @throws \Docker\API\Exception\ImageTagConflictException * @throws \Docker\API\Exception\ImageTagInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function imageTag(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -859,7 +868,7 @@ public function imageTag(string $name, array $queryParameters = [], string $fetc * @throws \Docker\API\Exception\ImageDeleteConflictException * @throws \Docker\API\Exception\ImageDeleteInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ImageDeleteResponseItem[]|\Amp\Artax\Response|null> */ public function imageDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -880,7 +889,7 @@ public function imageDelete(string $name, array $queryParameters = [], string $f * * @throws \Docker\API\Exception\ImageSearchInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ImagesSearchGetResponse200Item[]|\Amp\Artax\Response|null> */ public function imageSearch(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -899,7 +908,7 @@ public function imageSearch(array $queryParameters = [], string $fetch = self::F * * @throws \Docker\API\Exception\ImagePruneInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ImagesPrunePostResponse200|\Amp\Artax\Response|null> */ public function imagePrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -914,7 +923,7 @@ public function imagePrune(array $queryParameters = [], string $fetch = self::FE * * @throws \Docker\API\Exception\SystemAuthInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\AuthPostResponse200|\Amp\Artax\Response|null> */ public function systemAuth(\Docker\API\Model\AuthConfig $authConfig, string $fetch = self::FETCH_OBJECT) { @@ -926,7 +935,7 @@ public function systemAuth(\Docker\API\Model\AuthConfig $authConfig, string $fet * * @throws \Docker\API\Exception\SystemInfoInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\SystemInfo|\Amp\Artax\Response|null> */ public function systemInfo(string $fetch = self::FETCH_OBJECT) { @@ -938,7 +947,7 @@ public function systemInfo(string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\SystemVersionInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\VersionGetResponse200|\Amp\Artax\Response|null> */ public function systemVersion(string $fetch = self::FETCH_OBJECT) { @@ -950,7 +959,7 @@ public function systemVersion(string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\SystemPingInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function systemPing(string $fetch = self::FETCH_OBJECT) { @@ -975,7 +984,7 @@ public function systemPing(string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ImageCommitNotFoundException * @throws \Docker\API\Exception\ImageCommitInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\IdResponse|\Amp\Artax\Response|null> */ public function imageCommit(\Docker\API\Model\ContainerConfig $containerConfig, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1018,7 +1027,7 @@ public function imageCommit(\Docker\API\Model\ContainerConfig $containerConfig, * @throws \Docker\API\Exception\SystemEventsBadRequestException * @throws \Docker\API\Exception\SystemEventsInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\EventsGetResponse200|\Amp\Artax\Response|null> */ public function systemEvents(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1030,7 +1039,7 @@ public function systemEvents(array $queryParameters = [], string $fetch = self:: * * @throws \Docker\API\Exception\SystemDataUsageInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\SystemDfGetResponse200|\Amp\Artax\Response|null> */ public function systemDataUsage(string $fetch = self::FETCH_OBJECT) { @@ -1068,7 +1077,7 @@ public function systemDataUsage(string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\ImageGetInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function imageGet(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1092,7 +1101,7 @@ public function imageGet(string $name, string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\ImageGetAllInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function imageGetAll(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1115,7 +1124,7 @@ public function imageGetAll(array $queryParameters = [], string $fetch = self::F * * @throws \Docker\API\Exception\ImageLoadInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function imageLoad($imagesTarball, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1133,7 +1142,7 @@ public function imageLoad($imagesTarball, array $queryParameters = [], string $f * @throws \Docker\API\Exception\ContainerExecConflictException * @throws \Docker\API\Exception\ContainerExecInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\IdResponse|\Amp\Artax\Response|null> */ public function containerExec(string $id, \Docker\API\Model\ContainersIdExecPostBody $execConfig, string $fetch = self::FETCH_OBJECT) { @@ -1150,7 +1159,7 @@ public function containerExec(string $id, \Docker\API\Model\ContainersIdExecPost * @throws \Docker\API\Exception\ExecStartNotFoundException * @throws \Docker\API\Exception\ExecStartConflictException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function execStart(string $id, \Docker\API\Model\ExecIdStartPostBody $execStartConfig, string $fetch = self::FETCH_OBJECT) { @@ -1171,7 +1180,7 @@ public function execStart(string $id, \Docker\API\Model\ExecIdStartPostBody $exe * * @throws \Docker\API\Exception\ExecResizeNotFoundException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function execResize(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1187,7 +1196,7 @@ public function execResize(string $id, array $queryParameters = [], string $fetc * @throws \Docker\API\Exception\ExecInspectNotFoundException * @throws \Docker\API\Exception\ExecInspectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ExecIdJsonGetResponse200|\Amp\Artax\Response|null> */ public function execInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1203,7 +1212,7 @@ public function execInspect(string $id, string $fetch = self::FETCH_OBJECT) * * @throws \Docker\API\Exception\VolumeListInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\VolumesGetResponse200|\Amp\Artax\Response|null> */ public function volumeList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1216,7 +1225,7 @@ public function volumeList(array $queryParameters = [], string $fetch = self::FE * * @throws \Docker\API\Exception\VolumeCreateInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Volume|\Amp\Artax\Response|null> */ public function volumeCreate(\Docker\API\Model\VolumesCreatePostBody $volumeConfig, string $fetch = self::FETCH_OBJECT) { @@ -1238,7 +1247,7 @@ public function volumeCreate(\Docker\API\Model\VolumesCreatePostBody $volumeConf * @throws \Docker\API\Exception\VolumeDeleteConflictException * @throws \Docker\API\Exception\VolumeDeleteInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function volumeDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1252,7 +1261,7 @@ public function volumeDelete(string $name, array $queryParameters = [], string $ * @throws \Docker\API\Exception\VolumeInspectNotFoundException * @throws \Docker\API\Exception\VolumeInspectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Volume|\Amp\Artax\Response|null> */ public function volumeInspect(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1262,14 +1271,14 @@ public function volumeInspect(string $name, string $fetch = self::FETCH_OBJECT) /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\VolumePruneInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\VolumesPrunePostResponse200|\Amp\Artax\Response|null> */ public function volumePrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1292,7 +1301,7 @@ public function volumePrune(array $queryParameters = [], string $fetch = self::F * * @throws \Docker\API\Exception\NetworkListInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Network[]|\Amp\Artax\Response|null> */ public function networkList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1307,7 +1316,7 @@ public function networkList(array $queryParameters = [], string $fetch = self::F * @throws \Docker\API\Exception\NetworkDeleteNotFoundException * @throws \Docker\API\Exception\NetworkDeleteInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function networkDelete(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1327,7 +1336,7 @@ public function networkDelete(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\NetworkInspectNotFoundException * @throws \Docker\API\Exception\NetworkInspectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Network|\Amp\Artax\Response|null> */ public function networkInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1342,7 +1351,7 @@ public function networkInspect(string $id, array $queryParameters = [], string $ * @throws \Docker\API\Exception\NetworkCreateNotFoundException * @throws \Docker\API\Exception\NetworkCreateInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\NetworksCreatePostResponse201|\Amp\Artax\Response|null> */ public function networkCreate(\Docker\API\Model\NetworksCreatePostBody $networkConfig, string $fetch = self::FETCH_OBJECT) { @@ -1358,7 +1367,7 @@ public function networkCreate(\Docker\API\Model\NetworksCreatePostBody $networkC * @throws \Docker\API\Exception\NetworkConnectNotFoundException * @throws \Docker\API\Exception\NetworkConnectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function networkConnect(string $id, \Docker\API\Model\NetworksIdConnectPostBody $container, string $fetch = self::FETCH_OBJECT) { @@ -1374,7 +1383,7 @@ public function networkConnect(string $id, \Docker\API\Model\NetworksIdConnectPo * @throws \Docker\API\Exception\NetworkDisconnectNotFoundException * @throws \Docker\API\Exception\NetworkDisconnectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function networkDisconnect(string $id, \Docker\API\Model\NetworksIdDisconnectPostBody $container, string $fetch = self::FETCH_OBJECT) { @@ -1384,14 +1393,14 @@ public function networkDisconnect(string $id, \Docker\API\Model\NetworksIdDiscon /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @var string $filters Filters to process on the prune list, encoded as JSON (a `map[string][]string`). * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) * * @throws \Docker\API\Exception\NetworkPruneInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\NetworksPrunePostResponse200|\Amp\Artax\Response|null> */ public function networkPrune(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1410,7 +1419,7 @@ public function networkPrune(array $queryParameters = [], string $fetch = self:: * * @throws \Docker\API\Exception\PluginListInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Plugin[]|\Amp\Artax\Response|null> */ public function pluginList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1427,7 +1436,7 @@ public function pluginList(array $queryParameters = [], string $fetch = self::FE * * @throws \Docker\API\Exception\GetPluginPrivilegesInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\PluginsPrivilegesGetResponse200Item[]|\Amp\Artax\Response|null> */ public function getPluginPrivileges(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1441,9 +1450,9 @@ public function getPluginPrivileges(array $queryParameters = [], string $fetch = * @param array $body * @param array $queryParameters { * - * @var string $remote remote reference for plugin to install + * @var string $remote Remote reference for plugin to install. - * @var string $name local name for the pulled plugin + * @var string $name Local name for the pulled plugin. The `:latest` tag is optional, and is used as the default if omitted. @@ -1458,7 +1467,7 @@ public function getPluginPrivileges(array $queryParameters = [], string $fetch = * * @throws \Docker\API\Exception\PluginPullInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function pluginPull(array $body, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1472,7 +1481,7 @@ public function pluginPull(array $body, array $queryParameters = [], array $head * @throws \Docker\API\Exception\PluginInspectNotFoundException * @throws \Docker\API\Exception\PluginInspectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Plugin|\Amp\Artax\Response|null> */ public function pluginInspect(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1491,7 +1500,7 @@ public function pluginInspect(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\PluginDeleteNotFoundException * @throws \Docker\API\Exception\PluginDeleteInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Plugin|\Amp\Artax\Response|null> */ public function pluginDelete(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1510,7 +1519,7 @@ public function pluginDelete(string $name, array $queryParameters = [], string $ * @throws \Docker\API\Exception\PluginEnableNotFoundException * @throws \Docker\API\Exception\PluginEnableInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function pluginEnable(string $name, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1524,7 +1533,7 @@ public function pluginEnable(string $name, array $queryParameters = [], string $ * @throws \Docker\API\Exception\PluginDisableNotFoundException * @throws \Docker\API\Exception\PluginDisableInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1536,7 +1545,7 @@ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT) * @param array $body * @param array $queryParameters { * - * @var string $remote remote reference to upgrade to + * @var string $remote Remote reference to upgrade to. The `:latest` tag is optional, and is used as the default if omitted. @@ -1552,7 +1561,7 @@ public function pluginDisable(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\PluginUpgradeNotFoundException * @throws \Docker\API\Exception\PluginUpgradeInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function pluginUpgrade(string $name, array $body, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1570,7 +1579,7 @@ public function pluginUpgrade(string $name, array $body, array $queryParameters * * @throws \Docker\API\Exception\PluginCreateInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function pluginCreate($tarContext, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1586,7 +1595,7 @@ public function pluginCreate($tarContext, array $queryParameters = [], string $f * @throws \Docker\API\Exception\PluginPushNotFoundException * @throws \Docker\API\Exception\PluginPushInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function pluginPush(string $name, string $fetch = self::FETCH_OBJECT) { @@ -1601,7 +1610,7 @@ public function pluginPush(string $name, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\PluginSetNotFoundException * @throws \Docker\API\Exception\PluginSetInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function pluginSet(string $name, array $body, string $fetch = self::FETCH_OBJECT) { @@ -1611,7 +1620,7 @@ public function pluginSet(string $name, array $body, string $fetch = self::FETCH /** * @param array $queryParameters { * - * @var string $filters filters to process on the nodes list, encoded as JSON (a `map[string][]string`) + * @var string $filters Filters to process on the nodes list, encoded as JSON (a `map[string][]string`). * } * @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE) @@ -1619,7 +1628,7 @@ public function pluginSet(string $name, array $body, string $fetch = self::FETCH * @throws \Docker\API\Exception\NodeListInternalServerErrorException * @throws \Docker\API\Exception\NodeListServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Node[]|\Amp\Artax\Response|null> */ public function nodeList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1639,7 +1648,7 @@ public function nodeList(array $queryParameters = [], string $fetch = self::FETC * @throws \Docker\API\Exception\NodeDeleteInternalServerErrorException * @throws \Docker\API\Exception\NodeDeleteServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function nodeDelete(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1654,7 +1663,7 @@ public function nodeDelete(string $id, array $queryParameters = [], string $fetc * @throws \Docker\API\Exception\NodeInspectInternalServerErrorException * @throws \Docker\API\Exception\NodeInspectServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Node|\Amp\Artax\Response|null> */ public function nodeInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1676,7 +1685,7 @@ public function nodeInspect(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\NodeUpdateInternalServerErrorException * @throws \Docker\API\Exception\NodeUpdateServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function nodeUpdate(string $id, \Docker\API\Model\NodeSpec $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1690,7 +1699,7 @@ public function nodeUpdate(string $id, \Docker\API\Model\NodeSpec $body, array $ * @throws \Docker\API\Exception\SwarmInspectInternalServerErrorException * @throws \Docker\API\Exception\SwarmInspectServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Swarm|\Amp\Artax\Response|null> */ public function swarmInspect(string $fetch = self::FETCH_OBJECT) { @@ -1705,7 +1714,7 @@ public function swarmInspect(string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\SwarmInitInternalServerErrorException * @throws \Docker\API\Exception\SwarmInitServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function swarmInit(\Docker\API\Model\SwarmInitPostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -1720,7 +1729,7 @@ public function swarmInit(\Docker\API\Model\SwarmInitPostBody $body, string $fet * @throws \Docker\API\Exception\SwarmJoinInternalServerErrorException * @throws \Docker\API\Exception\SwarmJoinServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function swarmJoin(\Docker\API\Model\SwarmJoinPostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -1738,7 +1747,7 @@ public function swarmJoin(\Docker\API\Model\SwarmJoinPostBody $body, string $fet * @throws \Docker\API\Exception\SwarmLeaveInternalServerErrorException * @throws \Docker\API\Exception\SwarmLeaveServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function swarmLeave(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1761,7 +1770,7 @@ public function swarmLeave(array $queryParameters = [], string $fetch = self::FE * @throws \Docker\API\Exception\SwarmUpdateInternalServerErrorException * @throws \Docker\API\Exception\SwarmUpdateServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function swarmUpdate(\Docker\API\Model\SwarmSpec $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1774,7 +1783,7 @@ public function swarmUpdate(\Docker\API\Model\SwarmSpec $body, array $queryParam * @throws \Docker\API\Exception\SwarmUnlockkeyInternalServerErrorException * @throws \Docker\API\Exception\SwarmUnlockkeyServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\SwarmUnlockkeyGetResponse200|\Amp\Artax\Response|null> */ public function swarmUnlockkey(string $fetch = self::FETCH_OBJECT) { @@ -1788,7 +1797,7 @@ public function swarmUnlockkey(string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\SwarmUnlockInternalServerErrorException * @throws \Docker\API\Exception\SwarmUnlockServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function swarmUnlock(\Docker\API\Model\SwarmUnlockPostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -1806,7 +1815,7 @@ public function swarmUnlock(\Docker\API\Model\SwarmUnlockPostBody $body, string * @throws \Docker\API\Exception\ServiceListInternalServerErrorException * @throws \Docker\API\Exception\ServiceListServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Service[]|\Amp\Artax\Response|null> */ public function serviceList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1828,7 +1837,7 @@ public function serviceList(array $queryParameters = [], string $fetch = self::F * @throws \Docker\API\Exception\ServiceCreateInternalServerErrorException * @throws \Docker\API\Exception\ServiceCreateServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ServicesCreatePostResponse201|\Amp\Artax\Response|null> */ public function serviceCreate(\Docker\API\Model\ServicesCreatePostBody $body, array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1843,7 +1852,7 @@ public function serviceCreate(\Docker\API\Model\ServicesCreatePostBody $body, ar * @throws \Docker\API\Exception\ServiceDeleteInternalServerErrorException * @throws \Docker\API\Exception\ServiceDeleteServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function serviceDelete(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1863,7 +1872,7 @@ public function serviceDelete(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ServiceInspectInternalServerErrorException * @throws \Docker\API\Exception\ServiceInspectServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Service|\Amp\Artax\Response|null> */ public function serviceInspect(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1875,7 +1884,7 @@ public function serviceInspect(string $id, array $queryParameters = [], string $ * @param \Docker\API\Model\ServicesIdUpdatePostBody $body * @param array $queryParameters { * - * @var int $version The version number of the service object being updated. This is required to avoid conflicting writes. + * @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. The valid values are `spec` and `previous-spec`. * @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. * } @@ -1892,7 +1901,7 @@ public function serviceInspect(string $id, array $queryParameters = [], string $ * @throws \Docker\API\Exception\ServiceUpdateInternalServerErrorException * @throws \Docker\API\Exception\ServiceUpdateServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\ServiceUpdateResponse|\Amp\Artax\Response|null> */ public function serviceUpdate(string $id, \Docker\API\Model\ServicesIdUpdatePostBody $body, array $queryParameters = [], array $headerParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1909,7 +1918,7 @@ public function serviceUpdate(string $id, \Docker\API\Model\ServicesIdUpdatePost * @param array $queryParameters { * * @var bool $details show service context and extra details provided to logs - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` @@ -1924,7 +1933,7 @@ public function serviceUpdate(string $id, \Docker\API\Model\ServicesIdUpdatePost * @throws \Docker\API\Exception\ServiceLogsInternalServerErrorException * @throws \Docker\API\Exception\ServiceLogsServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function serviceLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1942,7 +1951,7 @@ public function serviceLogs(string $id, array $queryParameters = [], string $fet * @throws \Docker\API\Exception\TaskListInternalServerErrorException * @throws \Docker\API\Exception\TaskListServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Task[]|\Amp\Artax\Response|null> */ public function taskList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -1957,7 +1966,7 @@ public function taskList(array $queryParameters = [], string $fetch = self::FETC * @throws \Docker\API\Exception\TaskInspectInternalServerErrorException * @throws \Docker\API\Exception\TaskInspectServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Task|\Amp\Artax\Response|null> */ public function taskInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -1974,7 +1983,7 @@ public function taskInspect(string $id, string $fetch = self::FETCH_OBJECT) * @param array $queryParameters { * * @var bool $details show task context and extra details provided to logs - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` @@ -1989,7 +1998,7 @@ public function taskInspect(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\TaskLogsInternalServerErrorException * @throws \Docker\API\Exception\TaskLogsServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function taskLogs(string $id, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2007,7 +2016,7 @@ public function taskLogs(string $id, array $queryParameters = [], string $fetch * @throws \Docker\API\Exception\SecretListInternalServerErrorException * @throws \Docker\API\Exception\SecretListServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Secret[]|\Amp\Artax\Response|null> */ public function secretList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2022,7 +2031,7 @@ public function secretList(array $queryParameters = [], string $fetch = self::FE * @throws \Docker\API\Exception\SecretCreateInternalServerErrorException * @throws \Docker\API\Exception\SecretCreateServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\IdResponse|\Amp\Artax\Response|null> */ public function secretCreate(\Docker\API\Model\SecretsCreatePostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -2037,7 +2046,7 @@ public function secretCreate(\Docker\API\Model\SecretsCreatePostBody $body, stri * @throws \Docker\API\Exception\SecretDeleteInternalServerErrorException * @throws \Docker\API\Exception\SecretDeleteServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function secretDelete(string $id, string $fetch = self::FETCH_OBJECT) { @@ -2052,7 +2061,7 @@ public function secretDelete(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\SecretInspectInternalServerErrorException * @throws \Docker\API\Exception\SecretInspectServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Secret|\Amp\Artax\Response|null> */ public function secretInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -2074,7 +2083,7 @@ public function secretInspect(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\SecretUpdateInternalServerErrorException * @throws \Docker\API\Exception\SecretUpdateServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function secretUpdate(string $id, \Docker\API\Model\SecretSpec $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2092,7 +2101,7 @@ public function secretUpdate(string $id, \Docker\API\Model\SecretSpec $body, arr * @throws \Docker\API\Exception\ConfigListInternalServerErrorException * @throws \Docker\API\Exception\ConfigListServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Config[]|\Amp\Artax\Response|null> */ public function configList(array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2107,7 +2116,7 @@ public function configList(array $queryParameters = [], string $fetch = self::FE * @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException * @throws \Docker\API\Exception\ConfigCreateServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\IdResponse|\Amp\Artax\Response|null> */ public function configCreate(\Docker\API\Model\ConfigsCreatePostBody $body, string $fetch = self::FETCH_OBJECT) { @@ -2122,7 +2131,7 @@ public function configCreate(\Docker\API\Model\ConfigsCreatePostBody $body, stri * @throws \Docker\API\Exception\ConfigDeleteInternalServerErrorException * @throws \Docker\API\Exception\ConfigDeleteServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function configDelete(string $id, string $fetch = self::FETCH_OBJECT) { @@ -2137,7 +2146,7 @@ public function configDelete(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ConfigInspectInternalServerErrorException * @throws \Docker\API\Exception\ConfigInspectServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\Config|\Amp\Artax\Response|null> */ public function configInspect(string $id, string $fetch = self::FETCH_OBJECT) { @@ -2159,7 +2168,7 @@ public function configInspect(string $id, string $fetch = self::FETCH_OBJECT) * @throws \Docker\API\Exception\ConfigUpdateInternalServerErrorException * @throws \Docker\API\Exception\ConfigUpdateServiceUnavailableException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function configUpdate(string $id, \Docker\API\Model\ConfigSpec $body, array $queryParameters = [], string $fetch = self::FETCH_OBJECT) { @@ -2175,7 +2184,7 @@ public function configUpdate(string $id, \Docker\API\Model\ConfigSpec $body, arr * @throws \Docker\API\Exception\DistributionInspectUnauthorizedException * @throws \Docker\API\Exception\DistributionInspectInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Docker\API\Model\DistributionNameJsonGetResponse200|\Amp\Artax\Response|null> */ public function distributionInspect(string $name, string $fetch = self::FETCH_OBJECT) { @@ -2188,7 +2197,7 @@ public function distributionInspect(string $name, string $fetch = self::FETCH_OB * @throws \Docker\API\Exception\SessionBadRequestException * @throws \Docker\API\Exception\SessionInternalServerErrorException * - * @return \Amp\Promise + * @return \Amp\Promise<\Amp\Artax\Response|null> */ public function session(string $fetch = self::FETCH_OBJECT) { diff --git a/src/Endpoint/BuildPrune.php b/src/Endpoint/BuildPrune.php index 84c6a8e9..f9ea2d18 100644 --- a/src/Endpoint/BuildPrune.php +++ b/src/Endpoint/BuildPrune.php @@ -12,6 +12,28 @@ class BuildPrune extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane\OpenApiRuntime\Client\AmpArtaxEndpoint, \Jane\OpenApiRuntime\Client\Psr7HttplugEndpoint { + /** + * @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` + + * } + */ + public function __construct(array $queryParameters = []) + { + $this->queryParameters = $queryParameters; + } + use \Jane\OpenApiRuntime\Client\AmpArtaxEndpointTrait, \Jane\OpenApiRuntime\Client\Psr7HttplugEndpointTrait; public function getMethod(): string @@ -34,12 +56,25 @@ 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->setAllowedTypes('keep-storage', ['int']); + $optionsResolver->setAllowedTypes('all', ['bool']); + $optionsResolver->setAllowedTypes('filters', ['string']); + + return $optionsResolver; + } + /** * {@inheritdoc} * * @throws \Docker\API\Exception\BuildPruneInternalServerErrorException * - * @return null|\Docker\API\Model\BuildPrunePostResponse200 + * @return \Docker\API\Model\BuildPrunePostResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ConfigCreate.php b/src/Endpoint/ConfigCreate.php index 9b067cb7..10ee00c6 100644 --- a/src/Endpoint/ConfigCreate.php +++ b/src/Endpoint/ConfigCreate.php @@ -49,7 +49,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\ConfigCreateInternalServerErrorException * @throws \Docker\API\Exception\ConfigCreateServiceUnavailableException * - * @return null|\Docker\API\Model\IdResponse + * @return \Docker\API\Model\IdResponse|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ConfigInspect.php b/src/Endpoint/ConfigInspect.php index c9b66c27..54e13de9 100644 --- a/src/Endpoint/ConfigInspect.php +++ b/src/Endpoint/ConfigInspect.php @@ -51,7 +51,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\ConfigInspectInternalServerErrorException * @throws \Docker\API\Exception\ConfigInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Config + * @return \Docker\API\Model\Config|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ConfigList.php b/src/Endpoint/ConfigList.php index c3d77a78..90289a61 100644 --- a/src/Endpoint/ConfigList.php +++ b/src/Endpoint/ConfigList.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ConfigListInternalServerErrorException * @throws \Docker\API\Exception\ConfigListServiceUnavailableException * - * @return null|\Docker\API\Model\Config[] + * @return \Docker\API\Model\Config[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerAttach.php b/src/Endpoint/ContainerAttach.php index 58cee509..7bffead9 100644 --- a/src/Endpoint/ContainerAttach.php +++ b/src/Endpoint/ContainerAttach.php @@ -96,7 +96,7 @@ class ContainerAttach extends \Jane\OpenApiRuntime\Client\BaseEndpoint implement * @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 + * @var bool $logs Replay previous logs from the container. * @var bool $stream Stream attached streams from the time the request was made onwards * @var bool $stdin Attach to `stdin` diff --git a/src/Endpoint/ContainerChanges.php b/src/Endpoint/ContainerChanges.php index 482ce93e..8da9f629 100644 --- a/src/Endpoint/ContainerChanges.php +++ b/src/Endpoint/ContainerChanges.php @@ -58,7 +58,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\ContainerChangesNotFoundException * @throws \Docker\API\Exception\ContainerChangesInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdChangesGetResponse200Item[] + * @return \Docker\API\Model\ContainersIdChangesGetResponse200Item[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerCreate.php b/src/Endpoint/ContainerCreate.php index c45860de..b190934f 100644 --- a/src/Endpoint/ContainerCreate.php +++ b/src/Endpoint/ContainerCreate.php @@ -66,7 +66,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ContainerCreateConflictException * @throws \Docker\API\Exception\ContainerCreateInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersCreatePostResponse201 + * @return \Docker\API\Model\ContainersCreatePostResponse201|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerExec.php b/src/Endpoint/ContainerExec.php index 5be5a86c..428af41b 100644 --- a/src/Endpoint/ContainerExec.php +++ b/src/Endpoint/ContainerExec.php @@ -55,7 +55,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\ContainerExecConflictException * @throws \Docker\API\Exception\ContainerExecInternalServerErrorException * - * @return null|\Docker\API\Model\IdResponse + * @return \Docker\API\Model\IdResponse|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerInspect.php b/src/Endpoint/ContainerInspect.php index ce173197..d227eb18 100644 --- a/src/Endpoint/ContainerInspect.php +++ b/src/Endpoint/ContainerInspect.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ContainerInspectNotFoundException * @throws \Docker\API\Exception\ContainerInspectInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdJsonGetResponse200 + * @return \Docker\API\Model\ContainersIdJsonGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerKill.php b/src/Endpoint/ContainerKill.php index d2f6dd53..c6fa9f51 100644 --- a/src/Endpoint/ContainerKill.php +++ b/src/Endpoint/ContainerKill.php @@ -66,6 +66,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * {@inheritdoc} * * @throws \Docker\API\Exception\ContainerKillNotFoundException + * @throws \Docker\API\Exception\ContainerKillConflictException * @throws \Docker\API\Exception\ContainerKillInternalServerErrorException */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) @@ -76,6 +77,9 @@ protected function transformResponseBody(string $body, int $status, \Symfony\Com if (404 === $status) { throw new \Docker\API\Exception\ContainerKillNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json')); } + if (409 === $status) { + throw new \Docker\API\Exception\ContainerKillConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json')); + } if (500 === $status) { throw new \Docker\API\Exception\ContainerKillInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json')); } diff --git a/src/Endpoint/ContainerList.php b/src/Endpoint/ContainerList.php index c0ba2029..4b32924d 100644 --- a/src/Endpoint/ContainerList.php +++ b/src/Endpoint/ContainerList.php @@ -91,7 +91,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ContainerListBadRequestException * @throws \Docker\API\Exception\ContainerListInternalServerErrorException * - * @return null|\Docker\API\Model\ContainerSummaryItem[] + * @return \Docker\API\Model\ContainerSummaryItem[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerLogs.php b/src/Endpoint/ContainerLogs.php index 3417eb62..0a9aef45 100644 --- a/src/Endpoint/ContainerLogs.php +++ b/src/Endpoint/ContainerLogs.php @@ -23,7 +23,7 @@ class ContainerLogs extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements * @param string $id ID or name of the container * @param array $queryParameters { * - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` diff --git a/src/Endpoint/ContainerPrune.php b/src/Endpoint/ContainerPrune.php index 81077452..03006a60 100644 --- a/src/Endpoint/ContainerPrune.php +++ b/src/Endpoint/ContainerPrune.php @@ -15,7 +15,7 @@ class ContainerPrune extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @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. @@ -66,7 +66,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\ContainerPruneInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersPrunePostResponse200 + * @return \Docker\API\Model\ContainersPrunePostResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerStart.php b/src/Endpoint/ContainerStart.php index f9e6adcf..038ec3a0 100644 --- a/src/Endpoint/ContainerStart.php +++ b/src/Endpoint/ContainerStart.php @@ -66,7 +66,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ContainerStartNotFoundException * @throws \Docker\API\Exception\ContainerStartInternalServerErrorException * - * @return null|\Docker\API\Model\ErrorResponse + * @return \Docker\API\Model\ErrorResponse|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerStats.php b/src/Endpoint/ContainerStats.php index dad2dd66..cc65a2f8 100644 --- a/src/Endpoint/ContainerStats.php +++ b/src/Endpoint/ContainerStats.php @@ -18,9 +18,9 @@ class ContainerStats extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements * This endpoint returns a live stream of a container’s resource usage. statistics. - The `precpu_stats` is the CPU statistic of last read, which is used - for calculating the CPU usage percentage. It is not the same as the - `cpu_stats` field. + 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 diff --git a/src/Endpoint/ContainerStop.php b/src/Endpoint/ContainerStop.php index 4e555178..0333fcdc 100644 --- a/src/Endpoint/ContainerStop.php +++ b/src/Endpoint/ContainerStop.php @@ -66,7 +66,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ContainerStopNotFoundException * @throws \Docker\API\Exception\ContainerStopInternalServerErrorException * - * @return null|\Docker\API\Model\ErrorResponse + * @return \Docker\API\Model\ErrorResponse|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerTop.php b/src/Endpoint/ContainerTop.php index 8f96821f..81f8a2be 100644 --- a/src/Endpoint/ContainerTop.php +++ b/src/Endpoint/ContainerTop.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ContainerTopNotFoundException * @throws \Docker\API\Exception\ContainerTopInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdTopGetResponse200 + * @return \Docker\API\Model\ContainersIdTopGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerUpdate.php b/src/Endpoint/ContainerUpdate.php index a0373b83..4b27b679 100644 --- a/src/Endpoint/ContainerUpdate.php +++ b/src/Endpoint/ContainerUpdate.php @@ -54,7 +54,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\ContainerUpdateNotFoundException * @throws \Docker\API\Exception\ContainerUpdateInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdUpdatePostResponse200 + * @return \Docker\API\Model\ContainersIdUpdatePostResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ContainerWait.php b/src/Endpoint/ContainerWait.php index 29d5f9cc..a5328ec6 100644 --- a/src/Endpoint/ContainerWait.php +++ b/src/Endpoint/ContainerWait.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ContainerWaitNotFoundException * @throws \Docker\API\Exception\ContainerWaitInternalServerErrorException * - * @return null|\Docker\API\Model\ContainersIdWaitPostResponse200 + * @return \Docker\API\Model\ContainersIdWaitPostResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/DistributionInspect.php b/src/Endpoint/DistributionInspect.php index 5c0449c0..65d2fb54 100644 --- a/src/Endpoint/DistributionInspect.php +++ b/src/Endpoint/DistributionInspect.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\DistributionInspectUnauthorizedException * @throws \Docker\API\Exception\DistributionInspectInternalServerErrorException * - * @return null|\Docker\API\Model\DistributionNameJsonGetResponse200 + * @return \Docker\API\Model\DistributionNameJsonGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ExecInspect.php b/src/Endpoint/ExecInspect.php index ad074fc5..05ae03a5 100644 --- a/src/Endpoint/ExecInspect.php +++ b/src/Endpoint/ExecInspect.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\ExecInspectNotFoundException * @throws \Docker\API\Exception\ExecInspectInternalServerErrorException * - * @return null|\Docker\API\Model\ExecIdJsonGetResponse200 + * @return \Docker\API\Model\ExecIdJsonGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/GetPluginPrivileges.php b/src/Endpoint/GetPluginPrivileges.php index e88a1589..a83e2f94 100644 --- a/src/Endpoint/GetPluginPrivileges.php +++ b/src/Endpoint/GetPluginPrivileges.php @@ -61,7 +61,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\GetPluginPrivilegesInternalServerErrorException * - * @return null|\Docker\API\Model\PluginsPrivilegesGetResponse200Item[] + * @return \Docker\API\Model\PluginsPrivilegesGetResponse200Item[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ImageBuild.php b/src/Endpoint/ImageBuild.php index c8311bea..37389ba1 100644 --- a/src/Endpoint/ImageBuild.php +++ b/src/Endpoint/ImageBuild.php @@ -41,18 +41,20 @@ class ImageBuild extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Ja * @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. [Read more about the buildargs instruction.](https://docs.docker.com/engine/reference/builder/#arg) + * @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. + * @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 to which this container should connect to. * @var string $platform Platform in the format os[/arch[/variant]] + * @var string $target Target build stage * } * * @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 + * @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: @@ -105,9 +107,9 @@ public function getExtraHeaders(): array 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']); + $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']); $optionsResolver->setRequired([]); - $optionsResolver->setDefaults(['dockerfile' => 'Dockerfile', 'q' => false, 'nocache' => false, 'rm' => true, 'forcerm' => false, 'platform' => '']); + $optionsResolver->setDefaults(['dockerfile' => 'Dockerfile', 'q' => false, 'nocache' => false, 'rm' => true, 'forcerm' => false, 'platform' => '', 'target' => '']); $optionsResolver->setAllowedTypes('dockerfile', ['string']); $optionsResolver->setAllowedTypes('t', ['string']); $optionsResolver->setAllowedTypes('extrahosts', ['string']); @@ -130,6 +132,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver $optionsResolver->setAllowedTypes('labels', ['string']); $optionsResolver->setAllowedTypes('networkmode', ['string']); $optionsResolver->setAllowedTypes('platform', ['string']); + $optionsResolver->setAllowedTypes('target', ['string']); return $optionsResolver; } diff --git a/src/Endpoint/ImageCommit.php b/src/Endpoint/ImageCommit.php index 87dc1d45..f844aef9 100644 --- a/src/Endpoint/ImageCommit.php +++ b/src/Endpoint/ImageCommit.php @@ -76,7 +76,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ImageCommitNotFoundException * @throws \Docker\API\Exception\ImageCommitInternalServerErrorException * - * @return null|\Docker\API\Model\IdResponse + * @return \Docker\API\Model\IdResponse|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ImageDelete.php b/src/Endpoint/ImageDelete.php index 71aeee21..647450a6 100644 --- a/src/Endpoint/ImageDelete.php +++ b/src/Endpoint/ImageDelete.php @@ -76,7 +76,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ImageDeleteConflictException * @throws \Docker\API\Exception\ImageDeleteInternalServerErrorException * - * @return null|\Docker\API\Model\ImageDeleteResponseItem[] + * @return \Docker\API\Model\ImageDeleteResponseItem[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ImageHistory.php b/src/Endpoint/ImageHistory.php index c55e9050..7f9d9d1c 100644 --- a/src/Endpoint/ImageHistory.php +++ b/src/Endpoint/ImageHistory.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\ImageHistoryNotFoundException * @throws \Docker\API\Exception\ImageHistoryInternalServerErrorException * - * @return null|\Docker\API\Model\ImagesNameHistoryGetResponse200Item[] + * @return \Docker\API\Model\ImagesNameHistoryGetResponse200Item[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ImageInspect.php b/src/Endpoint/ImageInspect.php index a77652d8..36d6eebb 100644 --- a/src/Endpoint/ImageInspect.php +++ b/src/Endpoint/ImageInspect.php @@ -52,7 +52,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\ImageInspectNotFoundException * @throws \Docker\API\Exception\ImageInspectInternalServerErrorException * - * @return null|\Docker\API\Model\Image + * @return \Docker\API\Model\Image|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ImageList.php b/src/Endpoint/ImageList.php index 88711b39..cbbb04ce 100644 --- a/src/Endpoint/ImageList.php +++ b/src/Endpoint/ImageList.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\ImageListInternalServerErrorException * - * @return null|\Docker\API\Model\ImageSummary[] + * @return \Docker\API\Model\ImageSummary[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ImagePrune.php b/src/Endpoint/ImagePrune.php index 46826a1c..44dfe393 100644 --- a/src/Endpoint/ImagePrune.php +++ b/src/Endpoint/ImagePrune.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\ImagePruneInternalServerErrorException * - * @return null|\Docker\API\Model\ImagesPrunePostResponse200 + * @return \Docker\API\Model\ImagesPrunePostResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ImageSearch.php b/src/Endpoint/ImageSearch.php index 0144491e..cda28393 100644 --- a/src/Endpoint/ImageSearch.php +++ b/src/Endpoint/ImageSearch.php @@ -72,7 +72,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\ImageSearchInternalServerErrorException * - * @return null|\Docker\API\Model\ImagesSearchGetResponse200Item[] + * @return \Docker\API\Model\ImagesSearchGetResponse200Item[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/NetworkCreate.php b/src/Endpoint/NetworkCreate.php index 0159216d..8046e983 100644 --- a/src/Endpoint/NetworkCreate.php +++ b/src/Endpoint/NetworkCreate.php @@ -49,7 +49,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\NetworkCreateNotFoundException * @throws \Docker\API\Exception\NetworkCreateInternalServerErrorException * - * @return null|\Docker\API\Model\NetworksCreatePostResponse201 + * @return \Docker\API\Model\NetworksCreatePostResponse201|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/NetworkInspect.php b/src/Endpoint/NetworkInspect.php index c7341688..fc379d66 100644 --- a/src/Endpoint/NetworkInspect.php +++ b/src/Endpoint/NetworkInspect.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\NetworkInspectNotFoundException * @throws \Docker\API\Exception\NetworkInspectInternalServerErrorException * - * @return null|\Docker\API\Model\Network + * @return \Docker\API\Model\Network|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/NetworkList.php b/src/Endpoint/NetworkList.php index bf5062b9..cf27bed6 100644 --- a/src/Endpoint/NetworkList.php +++ b/src/Endpoint/NetworkList.php @@ -75,7 +75,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\NetworkListInternalServerErrorException * - * @return null|\Docker\API\Model\Network[] + * @return \Docker\API\Model\Network[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/NetworkPrune.php b/src/Endpoint/NetworkPrune.php index 0d85e4da..3565034e 100644 --- a/src/Endpoint/NetworkPrune.php +++ b/src/Endpoint/NetworkPrune.php @@ -15,7 +15,7 @@ class NetworkPrune extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \ /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @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. @@ -66,7 +66,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\NetworkPruneInternalServerErrorException * - * @return null|\Docker\API\Model\NetworksPrunePostResponse200 + * @return \Docker\API\Model\NetworksPrunePostResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/NodeInspect.php b/src/Endpoint/NodeInspect.php index f34b7791..3a73e945 100644 --- a/src/Endpoint/NodeInspect.php +++ b/src/Endpoint/NodeInspect.php @@ -51,7 +51,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\NodeInspectInternalServerErrorException * @throws \Docker\API\Exception\NodeInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Node + * @return \Docker\API\Model\Node|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/NodeList.php b/src/Endpoint/NodeList.php index 0f5cb07f..c54e2c43 100644 --- a/src/Endpoint/NodeList.php +++ b/src/Endpoint/NodeList.php @@ -15,13 +15,14 @@ class NodeList extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane /** * @param array $queryParameters { * - * @var string $filters filters to process on the nodes list, encoded as JSON (a `map[string][]string`) + * @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`)` * } @@ -70,7 +71,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\NodeListInternalServerErrorException * @throws \Docker\API\Exception\NodeListServiceUnavailableException * - * @return null|\Docker\API\Model\Node[] + * @return \Docker\API\Model\Node[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/PluginDelete.php b/src/Endpoint/PluginDelete.php index 99fd3dd5..22e2621f 100644 --- a/src/Endpoint/PluginDelete.php +++ b/src/Endpoint/PluginDelete.php @@ -66,7 +66,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\PluginDeleteNotFoundException * @throws \Docker\API\Exception\PluginDeleteInternalServerErrorException * - * @return null|\Docker\API\Model\Plugin + * @return \Docker\API\Model\Plugin|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/PluginInspect.php b/src/Endpoint/PluginInspect.php index c28717c8..b0831270 100644 --- a/src/Endpoint/PluginInspect.php +++ b/src/Endpoint/PluginInspect.php @@ -50,7 +50,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\PluginInspectNotFoundException * @throws \Docker\API\Exception\PluginInspectInternalServerErrorException * - * @return null|\Docker\API\Model\Plugin + * @return \Docker\API\Model\Plugin|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/PluginList.php b/src/Endpoint/PluginList.php index 95ed0bab..0397675a 100644 --- a/src/Endpoint/PluginList.php +++ b/src/Endpoint/PluginList.php @@ -67,7 +67,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\PluginListInternalServerErrorException * - * @return null|\Docker\API\Model\Plugin[] + * @return \Docker\API\Model\Plugin[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/PluginPull.php b/src/Endpoint/PluginPull.php index c31377b9..f0d4ceeb 100644 --- a/src/Endpoint/PluginPull.php +++ b/src/Endpoint/PluginPull.php @@ -19,9 +19,9 @@ class PluginPull extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Ja * @param array $body * @param array $queryParameters { * - * @var string $remote remote reference for plugin to install + * @var string $remote Remote reference for plugin to install. - * @var string $name local name for the pulled plugin + * @var string $name Local name for the pulled plugin. The `:latest` tag is optional, and is used as the default if omitted. diff --git a/src/Endpoint/PluginUpgrade.php b/src/Endpoint/PluginUpgrade.php index 20b04d2e..dfed9d91 100644 --- a/src/Endpoint/PluginUpgrade.php +++ b/src/Endpoint/PluginUpgrade.php @@ -19,7 +19,7 @@ class PluginUpgrade extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements * @param array $body * @param array $queryParameters { * - * @var string $remote remote reference to upgrade to + * @var string $remote Remote reference to upgrade to. The `:latest` tag is optional, and is used as the default if omitted. diff --git a/src/Endpoint/PutContainerArchive.php b/src/Endpoint/PutContainerArchive.php index ac635b81..fa600b25 100644 --- a/src/Endpoint/PutContainerArchive.php +++ b/src/Endpoint/PutContainerArchive.php @@ -21,7 +21,7 @@ class PutContainerArchive extends \Jane\OpenApiRuntime\Client\BaseEndpoint imple * @param string $inputStream the input stream must be a tar archive compressed with one of the following algorithms: identity (no compression), gzip, bzip2, xz * @param array $queryParameters { * - * @var string $path Path to a directory in the container to extract the archive’s contents into. + * @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. * } */ diff --git a/src/Endpoint/SecretCreate.php b/src/Endpoint/SecretCreate.php index a5a10ea1..6453875f 100644 --- a/src/Endpoint/SecretCreate.php +++ b/src/Endpoint/SecretCreate.php @@ -49,7 +49,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\SecretCreateInternalServerErrorException * @throws \Docker\API\Exception\SecretCreateServiceUnavailableException * - * @return null|\Docker\API\Model\IdResponse + * @return \Docker\API\Model\IdResponse|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SecretInspect.php b/src/Endpoint/SecretInspect.php index 414c4400..31f8c2d9 100644 --- a/src/Endpoint/SecretInspect.php +++ b/src/Endpoint/SecretInspect.php @@ -51,7 +51,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\SecretInspectInternalServerErrorException * @throws \Docker\API\Exception\SecretInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Secret + * @return \Docker\API\Model\Secret|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SecretList.php b/src/Endpoint/SecretList.php index ef02b995..1e27be2a 100644 --- a/src/Endpoint/SecretList.php +++ b/src/Endpoint/SecretList.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\SecretListInternalServerErrorException * @throws \Docker\API\Exception\SecretListServiceUnavailableException * - * @return null|\Docker\API\Model\Secret[] + * @return \Docker\API\Model\Secret[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ServiceCreate.php b/src/Endpoint/ServiceCreate.php index d0d9e8fe..39e79ffb 100644 --- a/src/Endpoint/ServiceCreate.php +++ b/src/Endpoint/ServiceCreate.php @@ -67,7 +67,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \Docker\API\Exception\ServiceCreateInternalServerErrorException * @throws \Docker\API\Exception\ServiceCreateServiceUnavailableException * - * @return null|\Docker\API\Model\ServicesCreatePostResponse201 + * @return \Docker\API\Model\ServicesCreatePostResponse201|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ServiceInspect.php b/src/Endpoint/ServiceInspect.php index 8f3cf424..77faf923 100644 --- a/src/Endpoint/ServiceInspect.php +++ b/src/Endpoint/ServiceInspect.php @@ -67,7 +67,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ServiceInspectInternalServerErrorException * @throws \Docker\API\Exception\ServiceInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Service + * @return \Docker\API\Model\Service|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ServiceList.php b/src/Endpoint/ServiceList.php index 1198877c..753736a6 100644 --- a/src/Endpoint/ServiceList.php +++ b/src/Endpoint/ServiceList.php @@ -68,7 +68,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\ServiceListInternalServerErrorException * @throws \Docker\API\Exception\ServiceListServiceUnavailableException * - * @return null|\Docker\API\Model\Service[] + * @return \Docker\API\Model\Service[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/ServiceLogs.php b/src/Endpoint/ServiceLogs.php index b385458c..b809804c 100644 --- a/src/Endpoint/ServiceLogs.php +++ b/src/Endpoint/ServiceLogs.php @@ -24,7 +24,7 @@ class ServiceLogs extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \J * @param array $queryParameters { * * @var bool $details show service context and extra details provided to logs - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` diff --git a/src/Endpoint/ServiceUpdate.php b/src/Endpoint/ServiceUpdate.php index 480d5dfb..8a5ba6b6 100644 --- a/src/Endpoint/ServiceUpdate.php +++ b/src/Endpoint/ServiceUpdate.php @@ -19,7 +19,7 @@ class ServiceUpdate extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements * @param \Docker\API\Model\ServicesIdUpdatePostBody $body * @param array $queryParameters { * - * @var int $version The version number of the service object being updated. This is required to avoid conflicting writes. + * @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. The valid values are `spec` and `previous-spec`. * @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. * } @@ -91,7 +91,7 @@ protected function getHeadersOptionsResolver(): \Symfony\Component\OptionsResolv * @throws \Docker\API\Exception\ServiceUpdateInternalServerErrorException * @throws \Docker\API\Exception\ServiceUpdateServiceUnavailableException * - * @return null|\Docker\API\Model\ServiceUpdateResponse + * @return \Docker\API\Model\ServiceUpdateResponse|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SwarmInspect.php b/src/Endpoint/SwarmInspect.php index aa2e64c9..627cb9ae 100644 --- a/src/Endpoint/SwarmInspect.php +++ b/src/Endpoint/SwarmInspect.php @@ -41,7 +41,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\SwarmInspectInternalServerErrorException * @throws \Docker\API\Exception\SwarmInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Swarm + * @return \Docker\API\Model\Swarm|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SwarmUnlockkey.php b/src/Endpoint/SwarmUnlockkey.php index 30f48457..da5a797c 100644 --- a/src/Endpoint/SwarmUnlockkey.php +++ b/src/Endpoint/SwarmUnlockkey.php @@ -40,7 +40,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\SwarmUnlockkeyInternalServerErrorException * @throws \Docker\API\Exception\SwarmUnlockkeyServiceUnavailableException * - * @return null|\Docker\API\Model\SwarmUnlockkeyGetResponse200 + * @return \Docker\API\Model\SwarmUnlockkeyGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SystemAuth.php b/src/Endpoint/SystemAuth.php index e1a94c42..0e331ed2 100644 --- a/src/Endpoint/SystemAuth.php +++ b/src/Endpoint/SystemAuth.php @@ -49,7 +49,7 @@ public function getExtraHeaders(): array * * @throws \Docker\API\Exception\SystemAuthInternalServerErrorException * - * @return null|\Docker\API\Model\AuthPostResponse200 + * @return \Docker\API\Model\AuthPostResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SystemDataUsage.php b/src/Endpoint/SystemDataUsage.php index c0da2fbc..380e63b2 100644 --- a/src/Endpoint/SystemDataUsage.php +++ b/src/Endpoint/SystemDataUsage.php @@ -39,7 +39,7 @@ public function getExtraHeaders(): array * * @throws \Docker\API\Exception\SystemDataUsageInternalServerErrorException * - * @return null|\Docker\API\Model\SystemDfGetResponse200 + * @return \Docker\API\Model\SystemDfGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SystemEvents.php b/src/Endpoint/SystemEvents.php index f81aac71..e1963c78 100644 --- a/src/Endpoint/SystemEvents.php +++ b/src/Endpoint/SystemEvents.php @@ -105,7 +105,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\SystemEventsBadRequestException * @throws \Docker\API\Exception\SystemEventsInternalServerErrorException * - * @return null|\Docker\API\Model\EventsGetResponse200 + * @return \Docker\API\Model\EventsGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SystemInfo.php b/src/Endpoint/SystemInfo.php index 3b43e14a..9b5f4da3 100644 --- a/src/Endpoint/SystemInfo.php +++ b/src/Endpoint/SystemInfo.php @@ -39,7 +39,7 @@ public function getExtraHeaders(): array * * @throws \Docker\API\Exception\SystemInfoInternalServerErrorException * - * @return null|\Docker\API\Model\SystemInfo + * @return \Docker\API\Model\SystemInfo|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/SystemVersion.php b/src/Endpoint/SystemVersion.php index b0461b01..73cdcf84 100644 --- a/src/Endpoint/SystemVersion.php +++ b/src/Endpoint/SystemVersion.php @@ -39,7 +39,7 @@ public function getExtraHeaders(): array * * @throws \Docker\API\Exception\SystemVersionInternalServerErrorException * - * @return null|\Docker\API\Model\VersionGetResponse200 + * @return \Docker\API\Model\VersionGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/TaskInspect.php b/src/Endpoint/TaskInspect.php index 97d97512..a5dbf2f6 100644 --- a/src/Endpoint/TaskInspect.php +++ b/src/Endpoint/TaskInspect.php @@ -51,7 +51,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\TaskInspectInternalServerErrorException * @throws \Docker\API\Exception\TaskInspectServiceUnavailableException * - * @return null|\Docker\API\Model\Task + * @return \Docker\API\Model\Task|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/TaskList.php b/src/Endpoint/TaskList.php index 9142a5d9..d78f1f43 100644 --- a/src/Endpoint/TaskList.php +++ b/src/Endpoint/TaskList.php @@ -70,7 +70,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * @throws \Docker\API\Exception\TaskListInternalServerErrorException * @throws \Docker\API\Exception\TaskListServiceUnavailableException * - * @return null|\Docker\API\Model\Task[] + * @return \Docker\API\Model\Task[]|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/TaskLogs.php b/src/Endpoint/TaskLogs.php index be0ddc4b..e67b9991 100644 --- a/src/Endpoint/TaskLogs.php +++ b/src/Endpoint/TaskLogs.php @@ -24,7 +24,7 @@ class TaskLogs extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \Jane * @param array $queryParameters { * * @var bool $details show task context and extra details provided to logs - * @var bool $follow return the logs as a stream + * @var bool $follow Return the logs as a stream. * @var bool $stdout Return logs from `stdout` * @var bool $stderr Return logs from `stderr` diff --git a/src/Endpoint/VolumeCreate.php b/src/Endpoint/VolumeCreate.php index 14d409a8..833d3003 100644 --- a/src/Endpoint/VolumeCreate.php +++ b/src/Endpoint/VolumeCreate.php @@ -47,7 +47,7 @@ public function getExtraHeaders(): array * * @throws \Docker\API\Exception\VolumeCreateInternalServerErrorException * - * @return null|\Docker\API\Model\Volume + * @return \Docker\API\Model\Volume|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/VolumeInspect.php b/src/Endpoint/VolumeInspect.php index 2e5decb4..b0dcd7a9 100644 --- a/src/Endpoint/VolumeInspect.php +++ b/src/Endpoint/VolumeInspect.php @@ -50,7 +50,7 @@ public function getExtraHeaders(): array * @throws \Docker\API\Exception\VolumeInspectNotFoundException * @throws \Docker\API\Exception\VolumeInspectInternalServerErrorException * - * @return null|\Docker\API\Model\Volume + * @return \Docker\API\Model\Volume|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/VolumeList.php b/src/Endpoint/VolumeList.php index de7b3e87..d6c0b73b 100644 --- a/src/Endpoint/VolumeList.php +++ b/src/Endpoint/VolumeList.php @@ -72,7 +72,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\VolumeListInternalServerErrorException * - * @return null|\Docker\API\Model\VolumesGetResponse200 + * @return \Docker\API\Model\VolumesGetResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Endpoint/VolumePrune.php b/src/Endpoint/VolumePrune.php index f885f71a..7e348866 100644 --- a/src/Endpoint/VolumePrune.php +++ b/src/Endpoint/VolumePrune.php @@ -15,7 +15,7 @@ class VolumePrune extends \Jane\OpenApiRuntime\Client\BaseEndpoint implements \J /** * @param array $queryParameters { * - * @var string $filters filters to process on the prune list, encoded as JSON (a `map[string][]string`) + * @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. @@ -65,7 +65,7 @@ protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver * * @throws \Docker\API\Exception\VolumePruneInternalServerErrorException * - * @return null|\Docker\API\Model\VolumesPrunePostResponse200 + * @return \Docker\API\Model\VolumesPrunePostResponse200|null */ protected function transformResponseBody(string $body, int $status, \Symfony\Component\Serializer\SerializerInterface $serializer) { diff --git a/src/Exception/ContainerKillConflictException.php b/src/Exception/ContainerKillConflictException.php new file mode 100644 index 00000000..bb583f94 --- /dev/null +++ b/src/Exception/ContainerKillConflictException.php @@ -0,0 +1,27 @@ +errorResponse = $errorResponse; + } + + public function getErrorResponse() + { + return $this->errorResponse; + } +} diff --git a/src/Model/BuildCache.php b/src/Model/BuildCache.php new file mode 100644 index 00000000..4292f632 --- /dev/null +++ b/src/Model/BuildCache.php @@ -0,0 +1,255 @@ +iD; + } + + /** + * @param string $iD + * + * @return self + */ + public function setID(?string $iD): self + { + $this->iD = $iD; + + return $this; + } + + /** + * @return string + */ + public function getParent(): ?string + { + return $this->parent; + } + + /** + * @param string $parent + * + * @return self + */ + public function setParent(?string $parent): self + { + $this->parent = $parent; + + return $this; + } + + /** + * @return string + */ + public function getType(): ?string + { + return $this->type; + } + + /** + * @param string $type + * + * @return self + */ + public function setType(?string $type): self + { + $this->type = $type; + + return $this; + } + + /** + * @return string + */ + public function getDescription(): ?string + { + return $this->description; + } + + /** + * @param string $description + * + * @return self + */ + public function setDescription(?string $description): self + { + $this->description = $description; + + return $this; + } + + /** + * @return bool + */ + public function getInUse(): ?bool + { + return $this->inUse; + } + + /** + * @param bool $inUse + * + * @return self + */ + public function setInUse(?bool $inUse): self + { + $this->inUse = $inUse; + + return $this; + } + + /** + * @return bool + */ + public function getShared(): ?bool + { + return $this->shared; + } + + /** + * @param bool $shared + * + * @return self + */ + public function setShared(?bool $shared): self + { + $this->shared = $shared; + + return $this; + } + + /** + * @return int + */ + public function getSize(): ?int + { + return $this->size; + } + + /** + * @param int $size + * + * @return self + */ + public function setSize(?int $size): self + { + $this->size = $size; + + return $this; + } + + /** + * @return int + */ + public function getCreatedAt(): ?int + { + return $this->createdAt; + } + + /** + * @param int $createdAt + * + * @return self + */ + public function setCreatedAt(?int $createdAt): self + { + $this->createdAt = $createdAt; + + return $this; + } + + /** + * @return int + */ + public function getLastUsedAt(): ?int + { + return $this->lastUsedAt; + } + + /** + * @param int $lastUsedAt + * + * @return self + */ + public function setLastUsedAt(?int $lastUsedAt): self + { + $this->lastUsedAt = $lastUsedAt; + + return $this; + } + + /** + * @return int + */ + public function getUsageCount(): ?int + { + return $this->usageCount; + } + + /** + * @param int $usageCount + * + * @return self + */ + public function setUsageCount(?int $usageCount): self + { + $this->usageCount = $usageCount; + + return $this; + } +} diff --git a/src/Model/BuildPrunePostResponse200.php b/src/Model/BuildPrunePostResponse200.php index 20e1970e..5811a5ba 100644 --- a/src/Model/BuildPrunePostResponse200.php +++ b/src/Model/BuildPrunePostResponse200.php @@ -12,6 +12,10 @@ class BuildPrunePostResponse200 { + /** + * @var string[] + */ + protected $cachesDeleted; /** * Disk space reclaimed in bytes. * @@ -19,6 +23,26 @@ class BuildPrunePostResponse200 */ protected $spaceReclaimed; + /** + * @return string[] + */ + public function getCachesDeleted(): ?array + { + return $this->cachesDeleted; + } + + /** + * @param string[] $cachesDeleted + * + * @return self + */ + public function setCachesDeleted(?array $cachesDeleted): self + { + $this->cachesDeleted = $cachesDeleted; + + return $this; + } + /** * Disk space reclaimed in bytes. * diff --git a/src/Model/ClusterInfo.php b/src/Model/ClusterInfo.php index 17998136..b9f0026f 100644 --- a/src/Model/ClusterInfo.php +++ b/src/Model/ClusterInfo.php @@ -65,6 +65,27 @@ class ClusterInfo * @var bool */ 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 + */ + protected $dataPathPort; + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @var string[] + */ + protected $defaultAddrPool; + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @var int + */ + protected $subnetSize; /** * The ID of the swarm. @@ -255,4 +276,82 @@ public function setRootRotationInProgress(?bool $rootRotationInProgress): self 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. + + * + * @return int + */ + 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. + + * + * @param int $dataPathPort + * + * @return self + */ + public function setDataPathPort(?int $dataPathPort): self + { + $this->dataPathPort = $dataPathPort; + + return $this; + } + + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @return string[] + */ + public function getDefaultAddrPool(): ?array + { + return $this->defaultAddrPool; + } + + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @param string[] $defaultAddrPool + * + * @return self + */ + public function setDefaultAddrPool(?array $defaultAddrPool): self + { + $this->defaultAddrPool = $defaultAddrPool; + + return $this; + } + + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @return int + */ + public function getSubnetSize(): ?int + { + return $this->subnetSize; + } + + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @param int $subnetSize + * + * @return self + */ + public function setSubnetSize(?int $subnetSize): self + { + $this->subnetSize = $subnetSize; + + return $this; + } } diff --git a/src/Model/ConfigSpec.php b/src/Model/ConfigSpec.php index 088e9364..c60e9d5a 100644 --- a/src/Model/ConfigSpec.php +++ b/src/Model/ConfigSpec.php @@ -32,6 +32,12 @@ class ConfigSpec * @var string */ protected $data; + /** + * Driver represents a driver (network, logging, secrets). + * + * @var Driver + */ + protected $templating; /** * User-defined name of the config. @@ -108,4 +114,28 @@ public function setData(?string $data): self return $this; } + + /** + * Driver represents a driver (network, logging, secrets). + * + * @return Driver + */ + public function getTemplating(): ?Driver + { + return $this->templating; + } + + /** + * Driver represents a driver (network, logging, secrets). + * + * @param Driver $templating + * + * @return self + */ + public function setTemplating(?Driver $templating): self + { + $this->templating = $templating; + + return $this; + } } diff --git a/src/Model/ConfigsCreatePostBody.php b/src/Model/ConfigsCreatePostBody.php index b6a30b5b..d37795bc 100644 --- a/src/Model/ConfigsCreatePostBody.php +++ b/src/Model/ConfigsCreatePostBody.php @@ -32,6 +32,12 @@ class ConfigsCreatePostBody * @var string */ protected $data; + /** + * Driver represents a driver (network, logging, secrets). + * + * @var Driver + */ + protected $templating; /** * User-defined name of the config. @@ -108,4 +114,28 @@ public function setData(?string $data): self return $this; } + + /** + * Driver represents a driver (network, logging, secrets). + * + * @return Driver + */ + public function getTemplating(): ?Driver + { + return $this->templating; + } + + /** + * Driver represents a driver (network, logging, secrets). + * + * @param Driver $templating + * + * @return self + */ + public function setTemplating(?Driver $templating): self + { + $this->templating = $templating; + + return $this; + } } diff --git a/src/Model/ContainerConfig.php b/src/Model/ContainerConfig.php index 38d9ca5b..f3e5d23e 100644 --- a/src/Model/ContainerConfig.php +++ b/src/Model/ContainerConfig.php @@ -51,7 +51,7 @@ class ContainerConfig /** * An object mapping ports to an empty object in the form:. - `{"/": {}}` + `{"/": {}}` * * @var mixed[] @@ -316,7 +316,7 @@ public function setAttachStderr(?bool $attachStderr): self /** * An object mapping ports to an empty object in the form:. - `{"/": {}}` + `{"/": {}}` * * @return mixed[] @@ -329,7 +329,7 @@ public function getExposedPorts(): ?\ArrayObject /** * An object mapping ports to an empty object in the form:. - `{"/": {}}` + `{"/": {}}` * * @param mixed[] $exposedPorts diff --git a/src/Model/ContainersCreatePostBody.php b/src/Model/ContainersCreatePostBody.php index 8bcca83c..3961dd2b 100644 --- a/src/Model/ContainersCreatePostBody.php +++ b/src/Model/ContainersCreatePostBody.php @@ -51,7 +51,7 @@ class ContainersCreatePostBody /** * An object mapping ports to an empty object in the form:. - `{"/": {}}` + `{"/": {}}` * * @var mixed[] @@ -328,7 +328,7 @@ public function setAttachStderr(?bool $attachStderr): self /** * An object mapping ports to an empty object in the form:. - `{"/": {}}` + `{"/": {}}` * * @return mixed[] @@ -341,7 +341,7 @@ public function getExposedPorts(): ?\ArrayObject /** * An object mapping ports to an empty object in the form:. - `{"/": {}}` + `{"/": {}}` * * @param mixed[] $exposedPorts diff --git a/src/Model/ContainersIdJsonGetResponse200.php b/src/Model/ContainersIdJsonGetResponse200.php index 465e3c8f..00118172 100644 --- a/src/Model/ContainersIdJsonGetResponse200.php +++ b/src/Model/ContainersIdJsonGetResponse200.php @@ -95,7 +95,9 @@ class ContainersIdJsonGetResponse200 */ protected $appArmorProfile; /** - * @var string + * IDs of exec instances that are running in the container. + * + * @var string[] */ protected $execIDs; /** @@ -508,19 +510,23 @@ public function setAppArmorProfile(?string $appArmorProfile): self } /** - * @return string + * IDs of exec instances that are running in the container. + * + * @return string[] */ - public function getExecIDs(): ?string + public function getExecIDs(): ?array { return $this->execIDs; } /** - * @param string $execIDs + * IDs of exec instances that are running in the container. + * + * @param string[] $execIDs * * @return self */ - public function setExecIDs(?string $execIDs): self + public function setExecIDs(?array $execIDs): self { $this->execIDs = $execIDs; diff --git a/src/Model/ContainersIdUpdatePostBody.php b/src/Model/ContainersIdUpdatePostBody.php index 6f04d9b6..760ac4b2 100644 --- a/src/Model/ContainersIdUpdatePostBody.php +++ b/src/Model/ContainersIdUpdatePostBody.php @@ -126,6 +126,12 @@ class ContainersIdUpdatePostBody * @var int */ protected $kernelMemory; + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @var int + */ + protected $kernelMemoryTCP; /** * Memory soft limit in bytes. * @@ -156,6 +162,12 @@ class ContainersIdUpdatePostBody * @var bool */ protected $oomKillDisable; + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @var bool + */ + protected $init; /** * Tune a container's pids limit. Set -1 for unlimited. * @@ -664,6 +676,30 @@ public function setKernelMemory(?int $kernelMemory): self return $this; } + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @return int + */ + public function getKernelMemoryTCP(): ?int + { + return $this->kernelMemoryTCP; + } + + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @param int $kernelMemoryTCP + * + * @return self + */ + public function setKernelMemoryTCP(?int $kernelMemoryTCP): self + { + $this->kernelMemoryTCP = $kernelMemoryTCP; + + return $this; + } + /** * Memory soft limit in bytes. * @@ -784,6 +820,30 @@ public function setOomKillDisable(?bool $oomKillDisable): self return $this; } + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @return bool + */ + public function getInit(): ?bool + { + return $this->init; + } + + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @param bool $init + * + * @return self + */ + public function setInit(?bool $init): self + { + $this->init = $init; + + return $this; + } + /** * Tune a container's pids limit. Set -1 for unlimited. * diff --git a/src/Model/HostConfig.php b/src/Model/HostConfig.php index 32414fca..79ba5fd1 100644 --- a/src/Model/HostConfig.php +++ b/src/Model/HostConfig.php @@ -126,6 +126,12 @@ class HostConfig * @var int */ protected $kernelMemory; + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @var int + */ + protected $kernelMemoryTCP; /** * Memory soft limit in bytes. * @@ -156,6 +162,12 @@ class HostConfig * @var bool */ protected $oomKillDisable; + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @var bool + */ + protected $init; /** * Tune a container's pids limit. Set -1 for unlimited. * @@ -233,8 +245,8 @@ class HostConfig container's port-number and protocol as key in the format `/`, for example, `80/udp`. - If a container's port is mapped for both `tcp` and `udp`, two separate - entries are added to the mapping table. + If a container's port is mapped for multiple protocols, separate entries + are added to the mapping table. * * @var PortBinding[][] @@ -274,13 +286,22 @@ class HostConfig */ protected $mounts; /** - * A list of kernel capabilities to add to the container. + * A list of kernel capabilities to be available for container (this overrides the default set). + + Conflicts with options 'CapAdd' and 'CapDrop'" + + * + * @var string[] + */ + protected $capabilities; + /** + * A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'. * * @var string[] */ protected $capAdd; /** - * A list of kernel capabilities to drop from the container. + * A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'. * * @var string[] */ @@ -445,6 +466,18 @@ class HostConfig * @var string */ protected $isolation; + /** + * The list of paths to be masked inside the container (this overrides the default set of paths). + * + * @var string[] + */ + protected $maskedPaths; + /** + * The list of paths to be set as read-only inside the container (this overrides the default set of paths). + * + * @var string[] + */ + protected $readonlyPaths; /** * An integer value representing this container's relative CPU weight versus other containers. @@ -902,6 +935,30 @@ public function setKernelMemory(?int $kernelMemory): self return $this; } + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @return int + */ + public function getKernelMemoryTCP(): ?int + { + return $this->kernelMemoryTCP; + } + + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @param int $kernelMemoryTCP + * + * @return self + */ + public function setKernelMemoryTCP(?int $kernelMemoryTCP): self + { + $this->kernelMemoryTCP = $kernelMemoryTCP; + + return $this; + } + /** * Memory soft limit in bytes. * @@ -1022,6 +1079,30 @@ public function setOomKillDisable(?bool $oomKillDisable): self return $this; } + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @return bool + */ + public function getInit(): ?bool + { + return $this->init; + } + + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @param bool $init + * + * @return self + */ + public function setInit(?bool $init): self + { + $this->init = $init; + + return $this; + } + /** * Tune a container's pids limit. Set -1 for unlimited. * @@ -1291,8 +1372,8 @@ public function setNetworkMode(?string $networkMode): self container's port-number and protocol as key in the format `/`, for example, `80/udp`. - If a container's port is mapped for both `tcp` and `udp`, two separate - entries are added to the mapping table. + If a container's port is mapped for multiple protocols, separate entries + are added to the mapping table. * * @return PortBinding[][] @@ -1307,8 +1388,8 @@ public function getPortBindings(): ?\ArrayObject container's port-number and protocol as key in the format `/`, for example, `80/udp`. - If a container's port is mapped for both `tcp` and `udp`, two separate - entries are added to the mapping table. + If a container's port is mapped for multiple protocols, separate entries + are added to the mapping table. * * @param PortBinding[][] $portBindings @@ -1449,7 +1530,37 @@ public function setMounts(?array $mounts): self } /** - * A list of kernel capabilities to add to the container. + * A list of kernel capabilities to be available for container (this overrides the default set). + + Conflicts with options 'CapAdd' and 'CapDrop'" + + * + * @return string[] + */ + public function getCapabilities(): ?array + { + return $this->capabilities; + } + + /** + * A list of kernel capabilities to be available for container (this overrides the default set). + + Conflicts with options 'CapAdd' and 'CapDrop'" + + * + * @param string[] $capabilities + * + * @return self + */ + public function setCapabilities(?array $capabilities): self + { + $this->capabilities = $capabilities; + + return $this; + } + + /** + * A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'. * * @return string[] */ @@ -1459,7 +1570,7 @@ public function getCapAdd(): ?array } /** - * A list of kernel capabilities to add to the container. + * A list of kernel capabilities to add to the container. Conflicts with option 'Capabilities'. * * @param string[] $capAdd * @@ -1473,7 +1584,7 @@ public function setCapAdd(?array $capAdd): self } /** - * A list of kernel capabilities to drop from the container. + * A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'. * * @return string[] */ @@ -1483,7 +1594,7 @@ public function getCapDrop(): ?array } /** - * A list of kernel capabilities to drop from the container. + * A list of kernel capabilities to drop from the container. Conflicts with option 'Capabilities'. * * @param string[] $capDrop * @@ -2091,4 +2202,52 @@ public function setIsolation(?string $isolation): self return $this; } + + /** + * The list of paths to be masked inside the container (this overrides the default set of paths). + * + * @return string[] + */ + public function getMaskedPaths(): ?array + { + return $this->maskedPaths; + } + + /** + * The list of paths to be masked inside the container (this overrides the default set of paths). + * + * @param string[] $maskedPaths + * + * @return self + */ + public function setMaskedPaths(?array $maskedPaths): self + { + $this->maskedPaths = $maskedPaths; + + return $this; + } + + /** + * The list of paths to be set as read-only inside the container (this overrides the default set of paths). + * + * @return string[] + */ + public function getReadonlyPaths(): ?array + { + return $this->readonlyPaths; + } + + /** + * The list of paths to be set as read-only inside the container (this overrides the default set of paths). + * + * @param string[] $readonlyPaths + * + * @return self + */ + public function setReadonlyPaths(?array $readonlyPaths): self + { + $this->readonlyPaths = $readonlyPaths; + + return $this; + } } diff --git a/src/Model/IPAM.php b/src/Model/IPAM.php index 16748ff1..fca1e1a1 100644 --- a/src/Model/IPAM.php +++ b/src/Model/IPAM.php @@ -27,7 +27,7 @@ class IPAM /** * Driver-specific options, specified as a map. * - * @var string[][] + * @var string[] */ protected $options; @@ -82,9 +82,9 @@ public function setConfig(?array $config): self /** * Driver-specific options, specified as a map. * - * @return string[][] + * @return string[] */ - public function getOptions(): ?array + public function getOptions(): ?\ArrayObject { return $this->options; } @@ -92,11 +92,11 @@ public function getOptions(): ?array /** * Driver-specific options, specified as a map. * - * @param string[][] $options + * @param string[] $options * * @return self */ - public function setOptions(?array $options): self + public function setOptions(?\ArrayObject $options): self { $this->options = $options; diff --git a/src/Model/IndexInfo.php b/src/Model/IndexInfo.php index 0744d216..b476425f 100644 --- a/src/Model/IndexInfo.php +++ b/src/Model/IndexInfo.php @@ -25,7 +25,7 @@ class IndexInfo */ protected $mirrors; /** - * Indicates if the the registry is part of the list of insecure. + * Indicates if the registry is part of the list of insecure. registries. If `false`, the registry is insecure. Insecure registries accept @@ -98,7 +98,7 @@ public function setMirrors(?array $mirrors): self } /** - * Indicates if the the registry is part of the list of insecure. + * Indicates if the registry is part of the list of insecure. registries. If `false`, the registry is insecure. Insecure registries accept @@ -120,7 +120,7 @@ public function getSecure(): ?bool } /** - * Indicates if the the registry is part of the list of insecure. + * Indicates if the registry is part of the list of insecure. registries. If `false`, the registry is insecure. Insecure registries accept diff --git a/src/Model/Mount.php b/src/Model/Mount.php index c710aba8..26ed296a 100644 --- a/src/Model/Mount.php +++ b/src/Model/Mount.php @@ -30,6 +30,7 @@ class Mount - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed. - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. + - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. * * @var string @@ -120,6 +121,7 @@ public function setSource(?string $source): self - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed. - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. + - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. * * @return string @@ -135,6 +137,7 @@ public function getType(): ?string - `bind` Mounts a file or directory from the host into the container. Must exist prior to creating the container. - `volume` Creates a volume with the given name and options (or uses a pre-existing volume with the same name and options). These are **not** removed when the container is removed. - `tmpfs` Create a tmpfs with the given options. The mount source cannot be specified for tmpfs. + - `npipe` Mounts a named pipe from the host into the container. Must exist prior to creating the container. * * @param string $type diff --git a/src/Model/MountBindOptions.php b/src/Model/MountBindOptions.php index a4f5bef1..124f7681 100644 --- a/src/Model/MountBindOptions.php +++ b/src/Model/MountBindOptions.php @@ -18,6 +18,12 @@ class MountBindOptions * @var string */ protected $propagation; + /** + * Disable recursive bind mount. + * + * @var bool + */ + protected $nonRecursive; /** * A propagation mode with the value `[r]private`, `[r]shared`, or `[r]slave`. @@ -42,4 +48,28 @@ public function setPropagation(?string $propagation): self return $this; } + + /** + * Disable recursive bind mount. + * + * @return bool + */ + public function getNonRecursive(): ?bool + { + return $this->nonRecursive; + } + + /** + * Disable recursive bind mount. + * + * @param bool $nonRecursive + * + * @return self + */ + public function setNonRecursive(?bool $nonRecursive): self + { + $this->nonRecursive = $nonRecursive; + + return $this; + } } diff --git a/src/Model/NetworkSettings.php b/src/Model/NetworkSettings.php index 37b71730..ce6d4115 100644 --- a/src/Model/NetworkSettings.php +++ b/src/Model/NetworkSettings.php @@ -47,8 +47,8 @@ class NetworkSettings container's port-number and protocol as key in the format `/`, for example, `80/udp`. - If a container's port is mapped for both `tcp` and `udp`, two separate - entries are added to the mapping table. + If a container's port is mapped for multiple protocols, separate entries + are added to the mapping table. * * @var PortBinding[][] @@ -320,8 +320,8 @@ public function setLinkLocalIPv6PrefixLen(?int $linkLocalIPv6PrefixLen): self container's port-number and protocol as key in the format `/`, for example, `80/udp`. - If a container's port is mapped for both `tcp` and `udp`, two separate - entries are added to the mapping table. + If a container's port is mapped for multiple protocols, separate entries + are added to the mapping table. * * @return PortBinding[][] @@ -336,8 +336,8 @@ public function getPorts(): ?\ArrayObject container's port-number and protocol as key in the format `/`, for example, `80/udp`. - If a container's port is mapped for both `tcp` and `udp`, two separate - entries are added to the mapping table. + If a container's port is mapped for multiple protocols, separate entries + are added to the mapping table. * * @param PortBinding[][] $ports diff --git a/src/Model/PluginConfigInterface.php b/src/Model/PluginConfigInterface.php index e5021ea1..f16ddecb 100644 --- a/src/Model/PluginConfigInterface.php +++ b/src/Model/PluginConfigInterface.php @@ -20,6 +20,12 @@ class PluginConfigInterface * @var string */ protected $socket; + /** + * Protocol to use for clients connecting to the plugin. + * + * @var string + */ + protected $protocolScheme; /** * @return PluginInterfaceType[] @@ -60,4 +66,28 @@ public function setSocket(?string $socket): self return $this; } + + /** + * Protocol to use for clients connecting to the plugin. + * + * @return string + */ + public function getProtocolScheme(): ?string + { + return $this->protocolScheme; + } + + /** + * Protocol to use for clients connecting to the plugin. + * + * @param string $protocolScheme + * + * @return self + */ + public function setProtocolScheme(?string $protocolScheme): self + { + $this->protocolScheme = $protocolScheme; + + return $this; + } } diff --git a/src/Model/Port.php b/src/Model/Port.php index 4a53824f..4876d0a1 100644 --- a/src/Model/Port.php +++ b/src/Model/Port.php @@ -13,6 +13,8 @@ class Port { /** + * Host IP address that the container's port is mapped to. + * * @var string */ protected $iP; @@ -34,6 +36,8 @@ class Port protected $type; /** + * Host IP address that the container's port is mapped to. + * * @return string */ public function getIP(): ?string @@ -42,6 +46,8 @@ public function getIP(): ?string } /** + * Host IP address that the container's port is mapped to. + * * @param string $iP * * @return self diff --git a/src/Model/Resources.php b/src/Model/Resources.php index 2568c5c2..e4c189e7 100644 --- a/src/Model/Resources.php +++ b/src/Model/Resources.php @@ -126,6 +126,12 @@ class Resources * @var int */ protected $kernelMemory; + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @var int + */ + protected $kernelMemoryTCP; /** * Memory soft limit in bytes. * @@ -156,6 +162,12 @@ class Resources * @var bool */ protected $oomKillDisable; + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @var bool + */ + protected $init; /** * Tune a container's pids limit. Set -1 for unlimited. * @@ -655,6 +667,30 @@ public function setKernelMemory(?int $kernelMemory): self return $this; } + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @return int + */ + public function getKernelMemoryTCP(): ?int + { + return $this->kernelMemoryTCP; + } + + /** + * Hard limit for kernel TCP buffer memory (in bytes). + * + * @param int $kernelMemoryTCP + * + * @return self + */ + public function setKernelMemoryTCP(?int $kernelMemoryTCP): self + { + $this->kernelMemoryTCP = $kernelMemoryTCP; + + return $this; + } + /** * Memory soft limit in bytes. * @@ -775,6 +811,30 @@ public function setOomKillDisable(?bool $oomKillDisable): self return $this; } + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @return bool + */ + public function getInit(): ?bool + { + return $this->init; + } + + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @param bool $init + * + * @return self + */ + public function setInit(?bool $init): self + { + $this->init = $init; + + return $this; + } + /** * Tune a container's pids limit. Set -1 for unlimited. * diff --git a/src/Model/SecretSpec.php b/src/Model/SecretSpec.php index 8fb8941f..f63903ba 100644 --- a/src/Model/SecretSpec.php +++ b/src/Model/SecretSpec.php @@ -41,6 +41,12 @@ class SecretSpec * @var Driver */ protected $driver; + /** + * Driver represents a driver (network, logging, secrets). + * + * @var Driver + */ + protected $templating; /** * User-defined name of the secret. @@ -147,4 +153,28 @@ public function setDriver(?Driver $driver): self return $this; } + + /** + * Driver represents a driver (network, logging, secrets). + * + * @return Driver + */ + public function getTemplating(): ?Driver + { + return $this->templating; + } + + /** + * Driver represents a driver (network, logging, secrets). + * + * @param Driver $templating + * + * @return self + */ + public function setTemplating(?Driver $templating): self + { + $this->templating = $templating; + + return $this; + } } diff --git a/src/Model/SecretsCreatePostBody.php b/src/Model/SecretsCreatePostBody.php index 0f85b194..b7db1faa 100644 --- a/src/Model/SecretsCreatePostBody.php +++ b/src/Model/SecretsCreatePostBody.php @@ -41,6 +41,12 @@ class SecretsCreatePostBody * @var Driver */ protected $driver; + /** + * Driver represents a driver (network, logging, secrets). + * + * @var Driver + */ + protected $templating; /** * User-defined name of the secret. @@ -147,4 +153,28 @@ public function setDriver(?Driver $driver): self return $this; } + + /** + * Driver represents a driver (network, logging, secrets). + * + * @return Driver + */ + public function getTemplating(): ?Driver + { + return $this->templating; + } + + /** + * Driver represents a driver (network, logging, secrets). + * + * @param Driver $templating + * + * @return self + */ + public function setTemplating(?Driver $templating): self + { + $this->templating = $templating; + + return $this; + } } diff --git a/src/Model/Swarm.php b/src/Model/Swarm.php index b2fa2dec..03951fd5 100644 --- a/src/Model/Swarm.php +++ b/src/Model/Swarm.php @@ -65,6 +65,27 @@ class Swarm * @var bool */ 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 + */ + protected $dataPathPort; + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @var string[] + */ + protected $defaultAddrPool; + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @var int + */ + protected $subnetSize; /** * JoinTokens contains the tokens workers and managers need to join the swarm. * @@ -262,6 +283,84 @@ public function setRootRotationInProgress(?bool $rootRotationInProgress): self 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. + + * + * @return int + */ + 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. + + * + * @param int $dataPathPort + * + * @return self + */ + public function setDataPathPort(?int $dataPathPort): self + { + $this->dataPathPort = $dataPathPort; + + return $this; + } + + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @return string[] + */ + public function getDefaultAddrPool(): ?array + { + return $this->defaultAddrPool; + } + + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @param string[] $defaultAddrPool + * + * @return self + */ + public function setDefaultAddrPool(?array $defaultAddrPool): self + { + $this->defaultAddrPool = $defaultAddrPool; + + return $this; + } + + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @return int + */ + public function getSubnetSize(): ?int + { + return $this->subnetSize; + } + + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @param int $subnetSize + * + * @return self + */ + public function setSubnetSize(?int $subnetSize): self + { + $this->subnetSize = $subnetSize; + + return $this; + } + /** * JoinTokens contains the tokens workers and managers need to join the swarm. * diff --git a/src/Model/SwarmInitPostBody.php b/src/Model/SwarmInitPostBody.php index c383e49b..77aa7040 100644 --- a/src/Model/SwarmInitPostBody.php +++ b/src/Model/SwarmInitPostBody.php @@ -37,12 +37,33 @@ class SwarmInitPostBody * @var string */ protected $dataPathAddr; + /** + * 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, default port 4789 will be used. + + * + * @var int + */ + protected $dataPathPort; + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @var string[] + */ + protected $defaultAddrPool; /** * Force creation of a new swarm. * * @var bool */ protected $forceNewCluster; + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @var int + */ + protected $subnetSize; /** * User modifiable swarm configuration. * @@ -136,6 +157,60 @@ public function setDataPathAddr(?string $dataPathAddr): self 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, default port 4789 will be used. + + * + * @return int + */ + 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, default port 4789 will be used. + + * + * @param int $dataPathPort + * + * @return self + */ + public function setDataPathPort(?int $dataPathPort): self + { + $this->dataPathPort = $dataPathPort; + + return $this; + } + + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @return string[] + */ + public function getDefaultAddrPool(): ?array + { + return $this->defaultAddrPool; + } + + /** + * Default Address Pool specifies default subnet pools for global scope networks. + * + * @param string[] $defaultAddrPool + * + * @return self + */ + public function setDefaultAddrPool(?array $defaultAddrPool): self + { + $this->defaultAddrPool = $defaultAddrPool; + + return $this; + } + /** * Force creation of a new swarm. * @@ -160,6 +235,30 @@ public function setForceNewCluster(?bool $forceNewCluster): self return $this; } + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @return int + */ + public function getSubnetSize(): ?int + { + return $this->subnetSize; + } + + /** + * SubnetSize specifies the subnet size of the networks created from the default subnet pool. + * + * @param int $subnetSize + * + * @return self + */ + public function setSubnetSize(?int $subnetSize): self + { + $this->subnetSize = $subnetSize; + + return $this; + } + /** * User modifiable swarm configuration. * diff --git a/src/Model/SystemDfGetResponse200.php b/src/Model/SystemDfGetResponse200.php index 4a0ef614..e0d7686b 100644 --- a/src/Model/SystemDfGetResponse200.php +++ b/src/Model/SystemDfGetResponse200.php @@ -28,6 +28,10 @@ class SystemDfGetResponse200 * @var Volume[] */ protected $volumes; + /** + * @var BuildCache[] + */ + protected $buildCache; /** * @return int @@ -108,4 +112,24 @@ public function setVolumes(?array $volumes): self return $this; } + + /** + * @return BuildCache[] + */ + public function getBuildCache(): ?array + { + return $this->buildCache; + } + + /** + * @param BuildCache[] $buildCache + * + * @return self + */ + public function setBuildCache(?array $buildCache): self + { + $this->buildCache = $buildCache; + + return $this; + } } diff --git a/src/Model/SystemInfo.php b/src/Model/SystemInfo.php index 0afee2e6..8f020a94 100644 --- a/src/Model/SystemInfo.php +++ b/src/Model/SystemInfo.php @@ -316,6 +316,8 @@ class SystemInfo /** * HTTP-proxy configured for the daemon. This value is obtained from the. [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. + Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL + are masked in the API response. Containers do not automatically inherit this configuration. @@ -326,6 +328,8 @@ class SystemInfo /** * HTTPS-proxy configured for the daemon. This value is obtained from the. [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. + Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL + are masked in the API response. Containers do not automatically inherit this configuration. @@ -471,7 +475,7 @@ class SystemInfo */ protected $isolation; /** - * Name and, optional, path of the the `docker-init` binary. + * Name and, optional, path of the `docker-init` binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. @@ -519,6 +523,26 @@ class SystemInfo * @var string[] */ protected $securityOptions; + /** + * Reports a summary of the product license on the daemon. + + If a commercial license has been applied to the daemon, information + such as number of nodes, and expiration are included. + + * + * @var string + */ + protected $productLicense; + /** + * List of warnings / informational messages about missing features, or. + issues related to the daemon configuration. + + These messages can be printed by the client as information to the user. + + * + * @var string[] + */ + protected $warnings; /** * Unique identifier of the daemon. @@ -1581,6 +1605,8 @@ public function setGenericResources(?array $genericResources): self /** * HTTP-proxy configured for the daemon. This value is obtained from the. [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. + Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL + are masked in the API response. Containers do not automatically inherit this configuration. @@ -1595,6 +1621,8 @@ public function getHttpProxy(): ?string /** * HTTP-proxy configured for the daemon. This value is obtained from the. [`HTTP_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. + Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL + are masked in the API response. Containers do not automatically inherit this configuration. @@ -1613,6 +1641,8 @@ public function setHttpProxy(?string $httpProxy): self /** * HTTPS-proxy configured for the daemon. This value is obtained from the. [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. + Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL + are masked in the API response. Containers do not automatically inherit this configuration. @@ -1627,6 +1657,8 @@ public function getHttpsProxy(): ?string /** * HTTPS-proxy configured for the daemon. This value is obtained from the. [`HTTPS_PROXY`](https://www.gnu.org/software/wget/manual/html_node/Proxies.html) environment variable. + Credentials ([user info component](https://tools.ietf.org/html/rfc3986#section-3.2.1)) in the proxy URL + are masked in the API response. Containers do not automatically inherit this configuration. @@ -2061,7 +2093,7 @@ public function setIsolation(?string $isolation): self } /** - * Name and, optional, path of the the `docker-init` binary. + * Name and, optional, path of the `docker-init` binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. @@ -2075,7 +2107,7 @@ public function getInitBinary(): ?string } /** - * Name and, optional, path of the the `docker-init` binary. + * Name and, optional, path of the `docker-init` binary. If the path is omitted, the daemon searches the host's `$PATH` for the binary and uses the first result. @@ -2217,4 +2249,68 @@ public function setSecurityOptions(?array $securityOptions): self return $this; } + + /** + * Reports a summary of the product license on the daemon. + + If a commercial license has been applied to the daemon, information + such as number of nodes, and expiration are included. + + * + * @return string + */ + public function getProductLicense(): ?string + { + return $this->productLicense; + } + + /** + * Reports a summary of the product license on the daemon. + + If a commercial license has been applied to the daemon, information + such as number of nodes, and expiration are included. + + * + * @param string $productLicense + * + * @return self + */ + public function setProductLicense(?string $productLicense): self + { + $this->productLicense = $productLicense; + + return $this; + } + + /** + * List of warnings / informational messages about missing features, or. + issues related to the daemon configuration. + + These messages can be printed by the client as information to the user. + + * + * @return string[] + */ + public function getWarnings(): ?array + { + return $this->warnings; + } + + /** + * List of warnings / informational messages about missing features, or. + issues related to the daemon configuration. + + These messages can be printed by the client as information to the user. + + * + * @param string[] $warnings + * + * @return self + */ + public function setWarnings(?array $warnings): self + { + $this->warnings = $warnings; + + return $this; + } } diff --git a/src/Model/TaskSpec.php b/src/Model/TaskSpec.php index c04beb6a..990c6966 100644 --- a/src/Model/TaskSpec.php +++ b/src/Model/TaskSpec.php @@ -13,17 +13,48 @@ class TaskSpec { /** - * Invalid when specified with `ContainerSpec`. *(Experimental release only.)*. + * Plugin spec for the service. *(Experimental release only.)*. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + * * @var TaskSpecPluginSpec */ protected $pluginSpec; /** - * Invalid when specified with `PluginSpec`. + * Container spec for the service. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + * * @var TaskSpecContainerSpec */ protected $containerSpec; + /** + * Read-only spec type for non-swarm containers attached to swarm overlay. + networks. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + + * + * @var TaskSpecNetworkAttachmentSpec + */ + protected $networkAttachmentSpec; /** * Resource requirements which apply to each individual container created as part of the service. * @@ -64,7 +95,15 @@ class TaskSpec protected $logDriver; /** - * Invalid when specified with `ContainerSpec`. *(Experimental release only.)*. + * Plugin spec for the service. *(Experimental release only.)*. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + * * @return TaskSpecPluginSpec */ @@ -74,7 +113,15 @@ public function getPluginSpec(): ?TaskSpecPluginSpec } /** - * Invalid when specified with `ContainerSpec`. *(Experimental release only.)*. + * Plugin spec for the service. *(Experimental release only.)*. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + * * @param TaskSpecPluginSpec $pluginSpec * @@ -88,7 +135,15 @@ public function setPluginSpec(?TaskSpecPluginSpec $pluginSpec): self } /** - * Invalid when specified with `PluginSpec`. + * Container spec for the service. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + * * @return TaskSpecContainerSpec */ @@ -98,7 +153,15 @@ public function getContainerSpec(): ?TaskSpecContainerSpec } /** - * Invalid when specified with `PluginSpec`. + * Container spec for the service. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + * * @param TaskSpecContainerSpec $containerSpec * @@ -111,6 +174,48 @@ public function setContainerSpec(?TaskSpecContainerSpec $containerSpec): self return $this; } + /** + * Read-only spec type for non-swarm containers attached to swarm overlay. + networks. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + + * + * @return TaskSpecNetworkAttachmentSpec + */ + public function getNetworkAttachmentSpec(): ?TaskSpecNetworkAttachmentSpec + { + return $this->networkAttachmentSpec; + } + + /** + * Read-only spec type for non-swarm containers attached to swarm overlay. + networks. + +


+ + > **Note**: ContainerSpec, NetworkAttachmentSpec, and PluginSpec are + > mutually exclusive. PluginSpec is only used when the Runtime field + > is set to `plugin`. NetworkAttachmentSpec is used when the Runtime + > field is set to `attachment`. + + * + * @param TaskSpecNetworkAttachmentSpec $networkAttachmentSpec + * + * @return self + */ + public function setNetworkAttachmentSpec(?TaskSpecNetworkAttachmentSpec $networkAttachmentSpec): self + { + $this->networkAttachmentSpec = $networkAttachmentSpec; + + return $this; + } + /** * Resource requirements which apply to each individual container created as part of the service. * diff --git a/src/Model/TaskSpecContainerSpec.php b/src/Model/TaskSpecContainerSpec.php index a0c29fed..5a2d27fb 100644 --- a/src/Model/TaskSpecContainerSpec.php +++ b/src/Model/TaskSpecContainerSpec.php @@ -150,6 +150,25 @@ class TaskSpecContainerSpec * @var string */ protected $isolation; + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @var bool + */ + protected $init; + /** + * Set kernel namedspaced parameters (sysctls) in the container. + The Sysctls option on services accepts the same sysctls as the + are supported on containers. Note that while the same sysctls are + supported, no guarantees or checks are made about their + suitability for a clustered environment, and it's up to the user + to determine whether a given sysctl will work properly in a + Service. + + * + * @var string[] + */ + protected $sysctls; /** * The image name to use for the container. @@ -690,4 +709,66 @@ public function setIsolation(?string $isolation): self return $this; } + + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @return bool + */ + public function getInit(): ?bool + { + return $this->init; + } + + /** + * Run an init inside the container that forwards signals and reaps processes. This field is omitted if empty, and the default (as configured on the daemon) is used. + * + * @param bool $init + * + * @return self + */ + public function setInit(?bool $init): self + { + $this->init = $init; + + return $this; + } + + /** + * Set kernel namedspaced parameters (sysctls) in the container. + The Sysctls option on services accepts the same sysctls as the + are supported on containers. Note that while the same sysctls are + supported, no guarantees or checks are made about their + suitability for a clustered environment, and it's up to the user + to determine whether a given sysctl will work properly in a + Service. + + * + * @return string[] + */ + public function getSysctls(): ?\ArrayObject + { + return $this->sysctls; + } + + /** + * Set kernel namedspaced parameters (sysctls) in the container. + The Sysctls option on services accepts the same sysctls as the + are supported on containers. Note that while the same sysctls are + supported, no guarantees or checks are made about their + suitability for a clustered environment, and it's up to the user + to determine whether a given sysctl will work properly in a + Service. + + * + * @param string[] $sysctls + * + * @return self + */ + public function setSysctls(?\ArrayObject $sysctls): self + { + $this->sysctls = $sysctls; + + return $this; + } } diff --git a/src/Model/TaskSpecNetworkAttachmentSpec.php b/src/Model/TaskSpecNetworkAttachmentSpec.php new file mode 100644 index 00000000..d8835fa5 --- /dev/null +++ b/src/Model/TaskSpecNetworkAttachmentSpec.php @@ -0,0 +1,45 @@ +containerID; + } + + /** + * ID of the container represented by this task. + * + * @param string $containerID + * + * @return self + */ + public function setContainerID(?string $containerID): self + { + $this->containerID = $containerID; + + return $this; + } +} diff --git a/src/Model/TaskSpecPlacement.php b/src/Model/TaskSpecPlacement.php index 08784dfe..6f27ea2a 100644 --- a/src/Model/TaskSpecPlacement.php +++ b/src/Model/TaskSpecPlacement.php @@ -24,6 +24,12 @@ class TaskSpecPlacement * @var TaskSpecPlacementPreferencesItem[] */ protected $preferences; + /** + * Maximum number of replicas for per node (default value is 0, which is unlimited). + * + * @var int + */ + protected $maxReplicas; /** * Platforms stores all the platforms that the service's image can. run on. This field is used in the platform filter for scheduling. @@ -83,6 +89,30 @@ public function setPreferences(?array $preferences): self return $this; } + /** + * Maximum number of replicas for per node (default value is 0, which is unlimited). + * + * @return int + */ + public function getMaxReplicas(): ?int + { + return $this->maxReplicas; + } + + /** + * Maximum number of replicas for per node (default value is 0, which is unlimited). + * + * @param int $maxReplicas + * + * @return self + */ + public function setMaxReplicas(?int $maxReplicas): self + { + $this->maxReplicas = $maxReplicas; + + return $this; + } + /** * Platforms stores all the platforms that the service's image can. run on. This field is used in the platform filter for scheduling. diff --git a/src/Normalizer/BuildCacheNormalizer.php b/src/Normalizer/BuildCacheNormalizer.php new file mode 100644 index 00000000..bdcf8a9d --- /dev/null +++ b/src/Normalizer/BuildCacheNormalizer.php @@ -0,0 +1,111 @@ +{'ID'} !== null) { + $object->setID($data->{'ID'}); + } + if (property_exists($data, 'Parent') && $data->{'Parent'} !== null) { + $object->setParent($data->{'Parent'}); + } + if (property_exists($data, 'Type') && $data->{'Type'} !== null) { + $object->setType($data->{'Type'}); + } + if (property_exists($data, 'Description') && $data->{'Description'} !== null) { + $object->setDescription($data->{'Description'}); + } + if (property_exists($data, 'InUse') && $data->{'InUse'} !== null) { + $object->setInUse($data->{'InUse'}); + } + if (property_exists($data, 'Shared') && $data->{'Shared'} !== null) { + $object->setShared($data->{'Shared'}); + } + if (property_exists($data, 'Size') && $data->{'Size'} !== null) { + $object->setSize($data->{'Size'}); + } + if (property_exists($data, 'CreatedAt') && $data->{'CreatedAt'} !== null) { + $object->setCreatedAt($data->{'CreatedAt'}); + } + if (property_exists($data, 'LastUsedAt') && $data->{'LastUsedAt'} !== null) { + $object->setLastUsedAt($data->{'LastUsedAt'}); + } + if (property_exists($data, 'UsageCount') && $data->{'UsageCount'} !== null) { + $object->setUsageCount($data->{'UsageCount'}); + } + + return $object; + } + + public function normalize($object, $format = null, array $context = []) + { + $data = new \stdClass(); + if (null !== $object->getID()) { + $data->{'ID'} = $object->getID(); + } + if (null !== $object->getParent()) { + $data->{'Parent'} = $object->getParent(); + } + if (null !== $object->getType()) { + $data->{'Type'} = $object->getType(); + } + if (null !== $object->getDescription()) { + $data->{'Description'} = $object->getDescription(); + } + if (null !== $object->getInUse()) { + $data->{'InUse'} = $object->getInUse(); + } + if (null !== $object->getShared()) { + $data->{'Shared'} = $object->getShared(); + } + if (null !== $object->getSize()) { + $data->{'Size'} = $object->getSize(); + } + if (null !== $object->getCreatedAt()) { + $data->{'CreatedAt'} = $object->getCreatedAt(); + } + if (null !== $object->getLastUsedAt()) { + $data->{'LastUsedAt'} = $object->getLastUsedAt(); + } + if (null !== $object->getUsageCount()) { + $data->{'UsageCount'} = $object->getUsageCount(); + } + + return $data; + } +} diff --git a/src/Normalizer/BuildPrunePostResponse200Normalizer.php b/src/Normalizer/BuildPrunePostResponse200Normalizer.php index 66f8a476..a7a56c31 100644 --- a/src/Normalizer/BuildPrunePostResponse200Normalizer.php +++ b/src/Normalizer/BuildPrunePostResponse200Normalizer.php @@ -38,6 +38,13 @@ public function denormalize($data, $class, $format = null, array $context = []) return null; } $object = new \Docker\API\Model\BuildPrunePostResponse200(); + if (property_exists($data, 'CachesDeleted') && $data->{'CachesDeleted'} !== null) { + $values = []; + foreach ($data->{'CachesDeleted'} as $value) { + $values[] = $value; + } + $object->setCachesDeleted($values); + } if (property_exists($data, 'SpaceReclaimed') && $data->{'SpaceReclaimed'} !== null) { $object->setSpaceReclaimed($data->{'SpaceReclaimed'}); } @@ -48,6 +55,13 @@ public function denormalize($data, $class, $format = null, array $context = []) public function normalize($object, $format = null, array $context = []) { $data = new \stdClass(); + if (null !== $object->getCachesDeleted()) { + $values = []; + foreach ($object->getCachesDeleted() as $value) { + $values[] = $value; + } + $data->{'CachesDeleted'} = $values; + } if (null !== $object->getSpaceReclaimed()) { $data->{'SpaceReclaimed'} = $object->getSpaceReclaimed(); } diff --git a/src/Normalizer/ClusterInfoNormalizer.php b/src/Normalizer/ClusterInfoNormalizer.php index efd2f622..a558ec8d 100644 --- a/src/Normalizer/ClusterInfoNormalizer.php +++ b/src/Normalizer/ClusterInfoNormalizer.php @@ -59,6 +59,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'RootRotationInProgress') && $data->{'RootRotationInProgress'} !== null) { $object->setRootRotationInProgress($data->{'RootRotationInProgress'}); } + if (property_exists($data, 'DataPathPort') && $data->{'DataPathPort'} !== null) { + $object->setDataPathPort($data->{'DataPathPort'}); + } + if (property_exists($data, 'DefaultAddrPool') && $data->{'DefaultAddrPool'} !== null) { + $values = []; + foreach ($data->{'DefaultAddrPool'} as $value) { + $values[] = $value; + } + $object->setDefaultAddrPool($values); + } + if (property_exists($data, 'SubnetSize') && $data->{'SubnetSize'} !== null) { + $object->setSubnetSize($data->{'SubnetSize'}); + } return $object; } @@ -87,6 +100,19 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getRootRotationInProgress()) { $data->{'RootRotationInProgress'} = $object->getRootRotationInProgress(); } + if (null !== $object->getDataPathPort()) { + $data->{'DataPathPort'} = $object->getDataPathPort(); + } + if (null !== $object->getDefaultAddrPool()) { + $values = []; + foreach ($object->getDefaultAddrPool() as $value) { + $values[] = $value; + } + $data->{'DefaultAddrPool'} = $values; + } + if (null !== $object->getSubnetSize()) { + $data->{'SubnetSize'} = $object->getSubnetSize(); + } return $data; } diff --git a/src/Normalizer/ConfigSpecNormalizer.php b/src/Normalizer/ConfigSpecNormalizer.php index f14a7010..dd837476 100644 --- a/src/Normalizer/ConfigSpecNormalizer.php +++ b/src/Normalizer/ConfigSpecNormalizer.php @@ -51,6 +51,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'Data') && $data->{'Data'} !== null) { $object->setData($data->{'Data'}); } + if (property_exists($data, 'Templating') && $data->{'Templating'} !== null) { + $object->setTemplating($this->denormalizer->denormalize($data->{'Templating'}, 'Docker\\API\\Model\\Driver', 'json', $context)); + } return $object; } @@ -71,6 +74,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getData()) { $data->{'Data'} = $object->getData(); } + if (null !== $object->getTemplating()) { + $data->{'Templating'} = $this->normalizer->normalize($object->getTemplating(), 'json', $context); + } return $data; } diff --git a/src/Normalizer/ConfigsCreatePostBodyNormalizer.php b/src/Normalizer/ConfigsCreatePostBodyNormalizer.php index 942db8a4..f94b8293 100644 --- a/src/Normalizer/ConfigsCreatePostBodyNormalizer.php +++ b/src/Normalizer/ConfigsCreatePostBodyNormalizer.php @@ -51,6 +51,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'Data') && $data->{'Data'} !== null) { $object->setData($data->{'Data'}); } + if (property_exists($data, 'Templating') && $data->{'Templating'} !== null) { + $object->setTemplating($this->denormalizer->denormalize($data->{'Templating'}, 'Docker\\API\\Model\\Driver', 'json', $context)); + } return $object; } @@ -71,6 +74,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getData()) { $data->{'Data'} = $object->getData(); } + if (null !== $object->getTemplating()) { + $data->{'Templating'} = $this->normalizer->normalize($object->getTemplating(), 'json', $context); + } return $data; } diff --git a/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php b/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php index 6c37d13c..1023aa96 100644 --- a/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php +++ b/src/Normalizer/ContainersIdJsonGetResponse200Normalizer.php @@ -94,7 +94,11 @@ public function denormalize($data, $class, $format = null, array $context = []) $object->setAppArmorProfile($data->{'AppArmorProfile'}); } if (property_exists($data, 'ExecIDs') && $data->{'ExecIDs'} !== null) { - $object->setExecIDs($data->{'ExecIDs'}); + $values_1 = []; + foreach ($data->{'ExecIDs'} as $value_1) { + $values_1[] = $value_1; + } + $object->setExecIDs($values_1); } if (property_exists($data, 'HostConfig') && $data->{'HostConfig'} !== null) { $object->setHostConfig($this->denormalizer->denormalize($data->{'HostConfig'}, 'Docker\\API\\Model\\HostConfig', 'json', $context)); @@ -109,11 +113,11 @@ public function denormalize($data, $class, $format = null, array $context = []) $object->setSizeRootFs($data->{'SizeRootFs'}); } if (property_exists($data, 'Mounts') && $data->{'Mounts'} !== null) { - $values_1 = []; - foreach ($data->{'Mounts'} as $value_1) { - $values_1[] = $this->denormalizer->denormalize($value_1, 'Docker\\API\\Model\\MountPoint', 'json', $context); + $values_2 = []; + foreach ($data->{'Mounts'} as $value_2) { + $values_2[] = $this->denormalizer->denormalize($value_2, 'Docker\\API\\Model\\MountPoint', 'json', $context); } - $object->setMounts($values_1); + $object->setMounts($values_2); } if (property_exists($data, 'Config') && $data->{'Config'} !== null) { $object->setConfig($this->denormalizer->denormalize($data->{'Config'}, 'Docker\\API\\Model\\ContainerConfig', 'json', $context)); @@ -184,7 +188,11 @@ public function normalize($object, $format = null, array $context = []) $data->{'AppArmorProfile'} = $object->getAppArmorProfile(); } if (null !== $object->getExecIDs()) { - $data->{'ExecIDs'} = $object->getExecIDs(); + $values_1 = []; + foreach ($object->getExecIDs() as $value_1) { + $values_1[] = $value_1; + } + $data->{'ExecIDs'} = $values_1; } if (null !== $object->getHostConfig()) { $data->{'HostConfig'} = $this->normalizer->normalize($object->getHostConfig(), 'json', $context); @@ -199,11 +207,11 @@ public function normalize($object, $format = null, array $context = []) $data->{'SizeRootFs'} = $object->getSizeRootFs(); } if (null !== $object->getMounts()) { - $values_1 = []; - foreach ($object->getMounts() as $value_1) { - $values_1[] = $this->normalizer->normalize($value_1, 'json', $context); + $values_2 = []; + foreach ($object->getMounts() as $value_2) { + $values_2[] = $this->normalizer->normalize($value_2, 'json', $context); } - $data->{'Mounts'} = $values_1; + $data->{'Mounts'} = $values_2; } if (null !== $object->getConfig()) { $data->{'Config'} = $this->normalizer->normalize($object->getConfig(), 'json', $context); diff --git a/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php b/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php index 38ba58f7..102e485f 100644 --- a/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php +++ b/src/Normalizer/ContainersIdUpdatePostBodyNormalizer.php @@ -123,6 +123,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'KernelMemory') && $data->{'KernelMemory'} !== null) { $object->setKernelMemory($data->{'KernelMemory'}); } + if (property_exists($data, 'KernelMemoryTCP') && $data->{'KernelMemoryTCP'} !== null) { + $object->setKernelMemoryTCP($data->{'KernelMemoryTCP'}); + } if (property_exists($data, 'MemoryReservation') && $data->{'MemoryReservation'} !== null) { $object->setMemoryReservation($data->{'MemoryReservation'}); } @@ -138,6 +141,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'OomKillDisable') && $data->{'OomKillDisable'} !== null) { $object->setOomKillDisable($data->{'OomKillDisable'}); } + if (property_exists($data, 'Init') && $data->{'Init'} !== null) { + $object->setInit($data->{'Init'}); + } if (property_exists($data, 'PidsLimit') && $data->{'PidsLimit'} !== null) { $object->setPidsLimit($data->{'PidsLimit'}); } @@ -255,6 +261,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getKernelMemory()) { $data->{'KernelMemory'} = $object->getKernelMemory(); } + if (null !== $object->getKernelMemoryTCP()) { + $data->{'KernelMemoryTCP'} = $object->getKernelMemoryTCP(); + } if (null !== $object->getMemoryReservation()) { $data->{'MemoryReservation'} = $object->getMemoryReservation(); } @@ -270,6 +279,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getOomKillDisable()) { $data->{'OomKillDisable'} = $object->getOomKillDisable(); } + if (null !== $object->getInit()) { + $data->{'Init'} = $object->getInit(); + } if (null !== $object->getPidsLimit()) { $data->{'PidsLimit'} = $object->getPidsLimit(); } diff --git a/src/Normalizer/HostConfigNormalizer.php b/src/Normalizer/HostConfigNormalizer.php index 52bdece6..81ef161b 100644 --- a/src/Normalizer/HostConfigNormalizer.php +++ b/src/Normalizer/HostConfigNormalizer.php @@ -123,6 +123,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'KernelMemory') && $data->{'KernelMemory'} !== null) { $object->setKernelMemory($data->{'KernelMemory'}); } + if (property_exists($data, 'KernelMemoryTCP') && $data->{'KernelMemoryTCP'} !== null) { + $object->setKernelMemoryTCP($data->{'KernelMemoryTCP'}); + } if (property_exists($data, 'MemoryReservation') && $data->{'MemoryReservation'} !== null) { $object->setMemoryReservation($data->{'MemoryReservation'}); } @@ -138,6 +141,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'OomKillDisable') && $data->{'OomKillDisable'} !== null) { $object->setOomKillDisable($data->{'OomKillDisable'}); } + if (property_exists($data, 'Init') && $data->{'Init'} !== null) { + $object->setInit($data->{'Init'}); + } if (property_exists($data, 'PidsLimit') && $data->{'PidsLimit'} !== null) { $object->setPidsLimit($data->{'PidsLimit'}); } @@ -210,54 +216,61 @@ public function denormalize($data, $class, $format = null, array $context = []) } $object->setMounts($values_12); } - if (property_exists($data, 'CapAdd') && $data->{'CapAdd'} !== null) { + if (property_exists($data, 'Capabilities') && $data->{'Capabilities'} !== null) { $values_13 = []; - foreach ($data->{'CapAdd'} as $value_13) { + foreach ($data->{'Capabilities'} as $value_13) { $values_13[] = $value_13; } - $object->setCapAdd($values_13); + $object->setCapabilities($values_13); } - if (property_exists($data, 'CapDrop') && $data->{'CapDrop'} !== null) { + if (property_exists($data, 'CapAdd') && $data->{'CapAdd'} !== null) { $values_14 = []; - foreach ($data->{'CapDrop'} as $value_14) { + foreach ($data->{'CapAdd'} as $value_14) { $values_14[] = $value_14; } - $object->setCapDrop($values_14); + $object->setCapAdd($values_14); } - if (property_exists($data, 'Dns') && $data->{'Dns'} !== null) { + if (property_exists($data, 'CapDrop') && $data->{'CapDrop'} !== null) { $values_15 = []; - foreach ($data->{'Dns'} as $value_15) { + foreach ($data->{'CapDrop'} as $value_15) { $values_15[] = $value_15; } - $object->setDns($values_15); + $object->setCapDrop($values_15); } - if (property_exists($data, 'DnsOptions') && $data->{'DnsOptions'} !== null) { + if (property_exists($data, 'Dns') && $data->{'Dns'} !== null) { $values_16 = []; - foreach ($data->{'DnsOptions'} as $value_16) { + foreach ($data->{'Dns'} as $value_16) { $values_16[] = $value_16; } - $object->setDnsOptions($values_16); + $object->setDns($values_16); } - if (property_exists($data, 'DnsSearch') && $data->{'DnsSearch'} !== null) { + if (property_exists($data, 'DnsOptions') && $data->{'DnsOptions'} !== null) { $values_17 = []; - foreach ($data->{'DnsSearch'} as $value_17) { + foreach ($data->{'DnsOptions'} as $value_17) { $values_17[] = $value_17; } - $object->setDnsSearch($values_17); + $object->setDnsOptions($values_17); } - if (property_exists($data, 'ExtraHosts') && $data->{'ExtraHosts'} !== null) { + if (property_exists($data, 'DnsSearch') && $data->{'DnsSearch'} !== null) { $values_18 = []; - foreach ($data->{'ExtraHosts'} as $value_18) { + foreach ($data->{'DnsSearch'} as $value_18) { $values_18[] = $value_18; } - $object->setExtraHosts($values_18); + $object->setDnsSearch($values_18); } - if (property_exists($data, 'GroupAdd') && $data->{'GroupAdd'} !== null) { + if (property_exists($data, 'ExtraHosts') && $data->{'ExtraHosts'} !== null) { $values_19 = []; - foreach ($data->{'GroupAdd'} as $value_19) { + foreach ($data->{'ExtraHosts'} as $value_19) { $values_19[] = $value_19; } - $object->setGroupAdd($values_19); + $object->setExtraHosts($values_19); + } + if (property_exists($data, 'GroupAdd') && $data->{'GroupAdd'} !== null) { + $values_20 = []; + foreach ($data->{'GroupAdd'} as $value_20) { + $values_20[] = $value_20; + } + $object->setGroupAdd($values_20); } if (property_exists($data, 'IpcMode') && $data->{'IpcMode'} !== null) { $object->setIpcMode($data->{'IpcMode'}); @@ -266,11 +279,11 @@ public function denormalize($data, $class, $format = null, array $context = []) $object->setCgroup($data->{'Cgroup'}); } if (property_exists($data, 'Links') && $data->{'Links'} !== null) { - $values_20 = []; - foreach ($data->{'Links'} as $value_20) { - $values_20[] = $value_20; + $values_21 = []; + foreach ($data->{'Links'} as $value_21) { + $values_21[] = $value_21; } - $object->setLinks($values_20); + $object->setLinks($values_21); } if (property_exists($data, 'OomScoreAdj') && $data->{'OomScoreAdj'} !== null) { $object->setOomScoreAdj($data->{'OomScoreAdj'}); @@ -288,25 +301,25 @@ public function denormalize($data, $class, $format = null, array $context = []) $object->setReadonlyRootfs($data->{'ReadonlyRootfs'}); } if (property_exists($data, 'SecurityOpt') && $data->{'SecurityOpt'} !== null) { - $values_21 = []; - foreach ($data->{'SecurityOpt'} as $value_21) { - $values_21[] = $value_21; + $values_22 = []; + foreach ($data->{'SecurityOpt'} as $value_22) { + $values_22[] = $value_22; } - $object->setSecurityOpt($values_21); + $object->setSecurityOpt($values_22); } if (property_exists($data, 'StorageOpt') && $data->{'StorageOpt'} !== null) { - $values_22 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($data->{'StorageOpt'} as $key_1 => $value_22) { - $values_22[$key_1] = $value_22; + $values_23 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data->{'StorageOpt'} as $key_1 => $value_23) { + $values_23[$key_1] = $value_23; } - $object->setStorageOpt($values_22); + $object->setStorageOpt($values_23); } if (property_exists($data, 'Tmpfs') && $data->{'Tmpfs'} !== null) { - $values_23 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($data->{'Tmpfs'} as $key_2 => $value_23) { - $values_23[$key_2] = $value_23; + $values_24 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data->{'Tmpfs'} as $key_2 => $value_24) { + $values_24[$key_2] = $value_24; } - $object->setTmpfs($values_23); + $object->setTmpfs($values_24); } if (property_exists($data, 'UTSMode') && $data->{'UTSMode'} !== null) { $object->setUTSMode($data->{'UTSMode'}); @@ -318,25 +331,39 @@ public function denormalize($data, $class, $format = null, array $context = []) $object->setShmSize($data->{'ShmSize'}); } if (property_exists($data, 'Sysctls') && $data->{'Sysctls'} !== null) { - $values_24 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($data->{'Sysctls'} as $key_3 => $value_24) { - $values_24[$key_3] = $value_24; + $values_25 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data->{'Sysctls'} as $key_3 => $value_25) { + $values_25[$key_3] = $value_25; } - $object->setSysctls($values_24); + $object->setSysctls($values_25); } if (property_exists($data, 'Runtime') && $data->{'Runtime'} !== null) { $object->setRuntime($data->{'Runtime'}); } if (property_exists($data, 'ConsoleSize') && $data->{'ConsoleSize'} !== null) { - $values_25 = []; - foreach ($data->{'ConsoleSize'} as $value_25) { - $values_25[] = $value_25; + $values_26 = []; + foreach ($data->{'ConsoleSize'} as $value_26) { + $values_26[] = $value_26; } - $object->setConsoleSize($values_25); + $object->setConsoleSize($values_26); } if (property_exists($data, 'Isolation') && $data->{'Isolation'} !== null) { $object->setIsolation($data->{'Isolation'}); } + if (property_exists($data, 'MaskedPaths') && $data->{'MaskedPaths'} !== null) { + $values_27 = []; + foreach ($data->{'MaskedPaths'} as $value_27) { + $values_27[] = $value_27; + } + $object->setMaskedPaths($values_27); + } + if (property_exists($data, 'ReadonlyPaths') && $data->{'ReadonlyPaths'} !== null) { + $values_28 = []; + foreach ($data->{'ReadonlyPaths'} as $value_28) { + $values_28[] = $value_28; + } + $object->setReadonlyPaths($values_28); + } return $object; } @@ -429,6 +456,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getKernelMemory()) { $data->{'KernelMemory'} = $object->getKernelMemory(); } + if (null !== $object->getKernelMemoryTCP()) { + $data->{'KernelMemoryTCP'} = $object->getKernelMemoryTCP(); + } if (null !== $object->getMemoryReservation()) { $data->{'MemoryReservation'} = $object->getMemoryReservation(); } @@ -444,6 +474,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getOomKillDisable()) { $data->{'OomKillDisable'} = $object->getOomKillDisable(); } + if (null !== $object->getInit()) { + $data->{'Init'} = $object->getInit(); + } if (null !== $object->getPidsLimit()) { $data->{'PidsLimit'} = $object->getPidsLimit(); } @@ -516,54 +549,61 @@ public function normalize($object, $format = null, array $context = []) } $data->{'Mounts'} = $values_12; } - if (null !== $object->getCapAdd()) { + if (null !== $object->getCapabilities()) { $values_13 = []; - foreach ($object->getCapAdd() as $value_13) { + foreach ($object->getCapabilities() as $value_13) { $values_13[] = $value_13; } - $data->{'CapAdd'} = $values_13; + $data->{'Capabilities'} = $values_13; } - if (null !== $object->getCapDrop()) { + if (null !== $object->getCapAdd()) { $values_14 = []; - foreach ($object->getCapDrop() as $value_14) { + foreach ($object->getCapAdd() as $value_14) { $values_14[] = $value_14; } - $data->{'CapDrop'} = $values_14; + $data->{'CapAdd'} = $values_14; } - if (null !== $object->getDns()) { + if (null !== $object->getCapDrop()) { $values_15 = []; - foreach ($object->getDns() as $value_15) { + foreach ($object->getCapDrop() as $value_15) { $values_15[] = $value_15; } - $data->{'Dns'} = $values_15; + $data->{'CapDrop'} = $values_15; } - if (null !== $object->getDnsOptions()) { + if (null !== $object->getDns()) { $values_16 = []; - foreach ($object->getDnsOptions() as $value_16) { + foreach ($object->getDns() as $value_16) { $values_16[] = $value_16; } - $data->{'DnsOptions'} = $values_16; + $data->{'Dns'} = $values_16; } - if (null !== $object->getDnsSearch()) { + if (null !== $object->getDnsOptions()) { $values_17 = []; - foreach ($object->getDnsSearch() as $value_17) { + foreach ($object->getDnsOptions() as $value_17) { $values_17[] = $value_17; } - $data->{'DnsSearch'} = $values_17; + $data->{'DnsOptions'} = $values_17; } - if (null !== $object->getExtraHosts()) { + if (null !== $object->getDnsSearch()) { $values_18 = []; - foreach ($object->getExtraHosts() as $value_18) { + foreach ($object->getDnsSearch() as $value_18) { $values_18[] = $value_18; } - $data->{'ExtraHosts'} = $values_18; + $data->{'DnsSearch'} = $values_18; } - if (null !== $object->getGroupAdd()) { + if (null !== $object->getExtraHosts()) { $values_19 = []; - foreach ($object->getGroupAdd() as $value_19) { + foreach ($object->getExtraHosts() as $value_19) { $values_19[] = $value_19; } - $data->{'GroupAdd'} = $values_19; + $data->{'ExtraHosts'} = $values_19; + } + if (null !== $object->getGroupAdd()) { + $values_20 = []; + foreach ($object->getGroupAdd() as $value_20) { + $values_20[] = $value_20; + } + $data->{'GroupAdd'} = $values_20; } if (null !== $object->getIpcMode()) { $data->{'IpcMode'} = $object->getIpcMode(); @@ -572,11 +612,11 @@ public function normalize($object, $format = null, array $context = []) $data->{'Cgroup'} = $object->getCgroup(); } if (null !== $object->getLinks()) { - $values_20 = []; - foreach ($object->getLinks() as $value_20) { - $values_20[] = $value_20; + $values_21 = []; + foreach ($object->getLinks() as $value_21) { + $values_21[] = $value_21; } - $data->{'Links'} = $values_20; + $data->{'Links'} = $values_21; } if (null !== $object->getOomScoreAdj()) { $data->{'OomScoreAdj'} = $object->getOomScoreAdj(); @@ -594,25 +634,25 @@ public function normalize($object, $format = null, array $context = []) $data->{'ReadonlyRootfs'} = $object->getReadonlyRootfs(); } if (null !== $object->getSecurityOpt()) { - $values_21 = []; - foreach ($object->getSecurityOpt() as $value_21) { - $values_21[] = $value_21; + $values_22 = []; + foreach ($object->getSecurityOpt() as $value_22) { + $values_22[] = $value_22; } - $data->{'SecurityOpt'} = $values_21; + $data->{'SecurityOpt'} = $values_22; } if (null !== $object->getStorageOpt()) { - $values_22 = new \stdClass(); - foreach ($object->getStorageOpt() as $key_1 => $value_22) { - $values_22->{$key_1} = $value_22; + $values_23 = new \stdClass(); + foreach ($object->getStorageOpt() as $key_1 => $value_23) { + $values_23->{$key_1} = $value_23; } - $data->{'StorageOpt'} = $values_22; + $data->{'StorageOpt'} = $values_23; } if (null !== $object->getTmpfs()) { - $values_23 = new \stdClass(); - foreach ($object->getTmpfs() as $key_2 => $value_23) { - $values_23->{$key_2} = $value_23; + $values_24 = new \stdClass(); + foreach ($object->getTmpfs() as $key_2 => $value_24) { + $values_24->{$key_2} = $value_24; } - $data->{'Tmpfs'} = $values_23; + $data->{'Tmpfs'} = $values_24; } if (null !== $object->getUTSMode()) { $data->{'UTSMode'} = $object->getUTSMode(); @@ -624,25 +664,39 @@ public function normalize($object, $format = null, array $context = []) $data->{'ShmSize'} = $object->getShmSize(); } if (null !== $object->getSysctls()) { - $values_24 = new \stdClass(); - foreach ($object->getSysctls() as $key_3 => $value_24) { - $values_24->{$key_3} = $value_24; + $values_25 = new \stdClass(); + foreach ($object->getSysctls() as $key_3 => $value_25) { + $values_25->{$key_3} = $value_25; } - $data->{'Sysctls'} = $values_24; + $data->{'Sysctls'} = $values_25; } if (null !== $object->getRuntime()) { $data->{'Runtime'} = $object->getRuntime(); } if (null !== $object->getConsoleSize()) { - $values_25 = []; - foreach ($object->getConsoleSize() as $value_25) { - $values_25[] = $value_25; + $values_26 = []; + foreach ($object->getConsoleSize() as $value_26) { + $values_26[] = $value_26; } - $data->{'ConsoleSize'} = $values_25; + $data->{'ConsoleSize'} = $values_26; } if (null !== $object->getIsolation()) { $data->{'Isolation'} = $object->getIsolation(); } + if (null !== $object->getMaskedPaths()) { + $values_27 = []; + foreach ($object->getMaskedPaths() as $value_27) { + $values_27[] = $value_27; + } + $data->{'MaskedPaths'} = $values_27; + } + if (null !== $object->getReadonlyPaths()) { + $values_28 = []; + foreach ($object->getReadonlyPaths() as $value_28) { + $values_28[] = $value_28; + } + $data->{'ReadonlyPaths'} = $values_28; + } return $data; } diff --git a/src/Normalizer/IPAMNormalizer.php b/src/Normalizer/IPAMNormalizer.php index 086bbc00..5ebb1c90 100644 --- a/src/Normalizer/IPAMNormalizer.php +++ b/src/Normalizer/IPAMNormalizer.php @@ -53,13 +53,9 @@ public function denormalize($data, $class, $format = null, array $context = []) $object->setConfig($values); } if (property_exists($data, 'Options') && $data->{'Options'} !== null) { - $values_2 = []; - foreach ($data->{'Options'} as $value_2) { - $values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); - foreach ($value_2 as $key_1 => $value_3) { - $values_3[$key_1] = $value_3; - } - $values_2[] = $values_3; + $values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data->{'Options'} as $key_1 => $value_2) { + $values_2[$key_1] = $value_2; } $object->setOptions($values_2); } @@ -85,13 +81,9 @@ public function normalize($object, $format = null, array $context = []) $data->{'Config'} = $values; } if (null !== $object->getOptions()) { - $values_2 = []; - foreach ($object->getOptions() as $value_2) { - $values_3 = new \stdClass(); - foreach ($value_2 as $key_1 => $value_3) { - $values_3->{$key_1} = $value_3; - } - $values_2[] = $values_3; + $values_2 = new \stdClass(); + foreach ($object->getOptions() as $key_1 => $value_2) { + $values_2->{$key_1} = $value_2; } $data->{'Options'} = $values_2; } diff --git a/src/Normalizer/MountBindOptionsNormalizer.php b/src/Normalizer/MountBindOptionsNormalizer.php index 1d1d1f79..9e98b10f 100644 --- a/src/Normalizer/MountBindOptionsNormalizer.php +++ b/src/Normalizer/MountBindOptionsNormalizer.php @@ -41,6 +41,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'Propagation') && $data->{'Propagation'} !== null) { $object->setPropagation($data->{'Propagation'}); } + if (property_exists($data, 'NonRecursive') && $data->{'NonRecursive'} !== null) { + $object->setNonRecursive($data->{'NonRecursive'}); + } return $object; } @@ -51,6 +54,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getPropagation()) { $data->{'Propagation'} = $object->getPropagation(); } + if (null !== $object->getNonRecursive()) { + $data->{'NonRecursive'} = $object->getNonRecursive(); + } return $data; } diff --git a/src/Normalizer/NormalizerFactory.php b/src/Normalizer/NormalizerFactory.php index f7c2dc70..3128185c 100644 --- a/src/Normalizer/NormalizerFactory.php +++ b/src/Normalizer/NormalizerFactory.php @@ -53,6 +53,7 @@ public static function create() $normalizers[] = new IPAMNormalizer(); $normalizers[] = new NetworkContainerNormalizer(); $normalizers[] = new BuildInfoNormalizer(); + $normalizers[] = new BuildCacheNormalizer(); $normalizers[] = new ImageIDNormalizer(); $normalizers[] = new CreateImageInfoNormalizer(); $normalizers[] = new PushImageInfoNormalizer(); @@ -109,6 +110,7 @@ public static function create() $normalizers[] = new TaskSpecContainerSpecSecretsItemFileNormalizer(); $normalizers[] = new TaskSpecContainerSpecConfigsItemNormalizer(); $normalizers[] = new TaskSpecContainerSpecConfigsItemFileNormalizer(); + $normalizers[] = new TaskSpecNetworkAttachmentSpecNormalizer(); $normalizers[] = new TaskSpecResourcesNormalizer(); $normalizers[] = new TaskSpecRestartPolicyNormalizer(); $normalizers[] = new TaskSpecPlacementNormalizer(); diff --git a/src/Normalizer/PluginConfigInterfaceNormalizer.php b/src/Normalizer/PluginConfigInterfaceNormalizer.php index 01fc0d06..527a1465 100644 --- a/src/Normalizer/PluginConfigInterfaceNormalizer.php +++ b/src/Normalizer/PluginConfigInterfaceNormalizer.php @@ -48,6 +48,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'Socket') && $data->{'Socket'} !== null) { $object->setSocket($data->{'Socket'}); } + if (property_exists($data, 'ProtocolScheme') && $data->{'ProtocolScheme'} !== null) { + $object->setProtocolScheme($data->{'ProtocolScheme'}); + } return $object; } @@ -65,6 +68,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getSocket()) { $data->{'Socket'} = $object->getSocket(); } + if (null !== $object->getProtocolScheme()) { + $data->{'ProtocolScheme'} = $object->getProtocolScheme(); + } return $data; } diff --git a/src/Normalizer/ResourcesNormalizer.php b/src/Normalizer/ResourcesNormalizer.php index 5d706503..e1fba18a 100644 --- a/src/Normalizer/ResourcesNormalizer.php +++ b/src/Normalizer/ResourcesNormalizer.php @@ -123,6 +123,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'KernelMemory') && $data->{'KernelMemory'} !== null) { $object->setKernelMemory($data->{'KernelMemory'}); } + if (property_exists($data, 'KernelMemoryTCP') && $data->{'KernelMemoryTCP'} !== null) { + $object->setKernelMemoryTCP($data->{'KernelMemoryTCP'}); + } if (property_exists($data, 'MemoryReservation') && $data->{'MemoryReservation'} !== null) { $object->setMemoryReservation($data->{'MemoryReservation'}); } @@ -138,6 +141,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'OomKillDisable') && $data->{'OomKillDisable'} !== null) { $object->setOomKillDisable($data->{'OomKillDisable'}); } + if (property_exists($data, 'Init') && $data->{'Init'} !== null) { + $object->setInit($data->{'Init'}); + } if (property_exists($data, 'PidsLimit') && $data->{'PidsLimit'} !== null) { $object->setPidsLimit($data->{'PidsLimit'}); } @@ -252,6 +258,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getKernelMemory()) { $data->{'KernelMemory'} = $object->getKernelMemory(); } + if (null !== $object->getKernelMemoryTCP()) { + $data->{'KernelMemoryTCP'} = $object->getKernelMemoryTCP(); + } if (null !== $object->getMemoryReservation()) { $data->{'MemoryReservation'} = $object->getMemoryReservation(); } @@ -267,6 +276,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getOomKillDisable()) { $data->{'OomKillDisable'} = $object->getOomKillDisable(); } + if (null !== $object->getInit()) { + $data->{'Init'} = $object->getInit(); + } if (null !== $object->getPidsLimit()) { $data->{'PidsLimit'} = $object->getPidsLimit(); } diff --git a/src/Normalizer/SecretSpecNormalizer.php b/src/Normalizer/SecretSpecNormalizer.php index 4cae5434..398896e6 100644 --- a/src/Normalizer/SecretSpecNormalizer.php +++ b/src/Normalizer/SecretSpecNormalizer.php @@ -54,6 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'Driver') && $data->{'Driver'} !== null) { $object->setDriver($this->denormalizer->denormalize($data->{'Driver'}, 'Docker\\API\\Model\\Driver', 'json', $context)); } + if (property_exists($data, 'Templating') && $data->{'Templating'} !== null) { + $object->setTemplating($this->denormalizer->denormalize($data->{'Templating'}, 'Docker\\API\\Model\\Driver', 'json', $context)); + } return $object; } @@ -77,6 +80,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getDriver()) { $data->{'Driver'} = $this->normalizer->normalize($object->getDriver(), 'json', $context); } + if (null !== $object->getTemplating()) { + $data->{'Templating'} = $this->normalizer->normalize($object->getTemplating(), 'json', $context); + } return $data; } diff --git a/src/Normalizer/SecretsCreatePostBodyNormalizer.php b/src/Normalizer/SecretsCreatePostBodyNormalizer.php index 6b0a853f..f9b4e632 100644 --- a/src/Normalizer/SecretsCreatePostBodyNormalizer.php +++ b/src/Normalizer/SecretsCreatePostBodyNormalizer.php @@ -54,6 +54,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'Driver') && $data->{'Driver'} !== null) { $object->setDriver($this->denormalizer->denormalize($data->{'Driver'}, 'Docker\\API\\Model\\Driver', 'json', $context)); } + if (property_exists($data, 'Templating') && $data->{'Templating'} !== null) { + $object->setTemplating($this->denormalizer->denormalize($data->{'Templating'}, 'Docker\\API\\Model\\Driver', 'json', $context)); + } return $object; } @@ -77,6 +80,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getDriver()) { $data->{'Driver'} = $this->normalizer->normalize($object->getDriver(), 'json', $context); } + if (null !== $object->getTemplating()) { + $data->{'Templating'} = $this->normalizer->normalize($object->getTemplating(), 'json', $context); + } return $data; } diff --git a/src/Normalizer/SwarmInitPostBodyNormalizer.php b/src/Normalizer/SwarmInitPostBodyNormalizer.php index 5505a2fc..a13648e3 100644 --- a/src/Normalizer/SwarmInitPostBodyNormalizer.php +++ b/src/Normalizer/SwarmInitPostBodyNormalizer.php @@ -47,9 +47,22 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'DataPathAddr') && $data->{'DataPathAddr'} !== null) { $object->setDataPathAddr($data->{'DataPathAddr'}); } + if (property_exists($data, 'DataPathPort') && $data->{'DataPathPort'} !== null) { + $object->setDataPathPort($data->{'DataPathPort'}); + } + if (property_exists($data, 'DefaultAddrPool') && $data->{'DefaultAddrPool'} !== null) { + $values = []; + foreach ($data->{'DefaultAddrPool'} as $value) { + $values[] = $value; + } + $object->setDefaultAddrPool($values); + } if (property_exists($data, 'ForceNewCluster') && $data->{'ForceNewCluster'} !== null) { $object->setForceNewCluster($data->{'ForceNewCluster'}); } + if (property_exists($data, 'SubnetSize') && $data->{'SubnetSize'} !== null) { + $object->setSubnetSize($data->{'SubnetSize'}); + } if (property_exists($data, 'Spec') && $data->{'Spec'} !== null) { $object->setSpec($this->denormalizer->denormalize($data->{'Spec'}, 'Docker\\API\\Model\\SwarmSpec', 'json', $context)); } @@ -69,9 +82,22 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getDataPathAddr()) { $data->{'DataPathAddr'} = $object->getDataPathAddr(); } + if (null !== $object->getDataPathPort()) { + $data->{'DataPathPort'} = $object->getDataPathPort(); + } + if (null !== $object->getDefaultAddrPool()) { + $values = []; + foreach ($object->getDefaultAddrPool() as $value) { + $values[] = $value; + } + $data->{'DefaultAddrPool'} = $values; + } if (null !== $object->getForceNewCluster()) { $data->{'ForceNewCluster'} = $object->getForceNewCluster(); } + if (null !== $object->getSubnetSize()) { + $data->{'SubnetSize'} = $object->getSubnetSize(); + } if (null !== $object->getSpec()) { $data->{'Spec'} = $this->normalizer->normalize($object->getSpec(), 'json', $context); } diff --git a/src/Normalizer/SwarmNormalizer.php b/src/Normalizer/SwarmNormalizer.php index eae64ffa..5bfc3a69 100644 --- a/src/Normalizer/SwarmNormalizer.php +++ b/src/Normalizer/SwarmNormalizer.php @@ -59,6 +59,19 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'RootRotationInProgress') && $data->{'RootRotationInProgress'} !== null) { $object->setRootRotationInProgress($data->{'RootRotationInProgress'}); } + if (property_exists($data, 'DataPathPort') && $data->{'DataPathPort'} !== null) { + $object->setDataPathPort($data->{'DataPathPort'}); + } + if (property_exists($data, 'DefaultAddrPool') && $data->{'DefaultAddrPool'} !== null) { + $values = []; + foreach ($data->{'DefaultAddrPool'} as $value) { + $values[] = $value; + } + $object->setDefaultAddrPool($values); + } + if (property_exists($data, 'SubnetSize') && $data->{'SubnetSize'} !== null) { + $object->setSubnetSize($data->{'SubnetSize'}); + } if (property_exists($data, 'JoinTokens') && $data->{'JoinTokens'} !== null) { $object->setJoinTokens($this->denormalizer->denormalize($data->{'JoinTokens'}, 'Docker\\API\\Model\\JoinTokens', 'json', $context)); } @@ -90,6 +103,19 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getRootRotationInProgress()) { $data->{'RootRotationInProgress'} = $object->getRootRotationInProgress(); } + if (null !== $object->getDataPathPort()) { + $data->{'DataPathPort'} = $object->getDataPathPort(); + } + if (null !== $object->getDefaultAddrPool()) { + $values = []; + foreach ($object->getDefaultAddrPool() as $value) { + $values[] = $value; + } + $data->{'DefaultAddrPool'} = $values; + } + if (null !== $object->getSubnetSize()) { + $data->{'SubnetSize'} = $object->getSubnetSize(); + } if (null !== $object->getJoinTokens()) { $data->{'JoinTokens'} = $this->normalizer->normalize($object->getJoinTokens(), 'json', $context); } diff --git a/src/Normalizer/SystemDfGetResponse200Normalizer.php b/src/Normalizer/SystemDfGetResponse200Normalizer.php index a29b07d1..6d5ea862 100644 --- a/src/Normalizer/SystemDfGetResponse200Normalizer.php +++ b/src/Normalizer/SystemDfGetResponse200Normalizer.php @@ -66,6 +66,13 @@ public function denormalize($data, $class, $format = null, array $context = []) } $object->setVolumes($values_3); } + if (property_exists($data, 'BuildCache') && $data->{'BuildCache'} !== null) { + $values_4 = []; + foreach ($data->{'BuildCache'} as $value_4) { + $values_4[] = $this->denormalizer->denormalize($value_4, 'Docker\\API\\Model\\BuildCache', 'json', $context); + } + $object->setBuildCache($values_4); + } return $object; } @@ -101,6 +108,13 @@ public function normalize($object, $format = null, array $context = []) } $data->{'Volumes'} = $values_3; } + if (null !== $object->getBuildCache()) { + $values_4 = []; + foreach ($object->getBuildCache() as $value_4) { + $values_4[] = $this->normalizer->normalize($value_4, 'json', $context); + } + $data->{'BuildCache'} = $values_4; + } return $data; } diff --git a/src/Normalizer/SystemInfoNormalizer.php b/src/Normalizer/SystemInfoNormalizer.php index 24a766ce..4228c5b0 100644 --- a/src/Normalizer/SystemInfoNormalizer.php +++ b/src/Normalizer/SystemInfoNormalizer.php @@ -241,6 +241,16 @@ public function denormalize($data, $class, $format = null, array $context = []) } $object->setSecurityOptions($values_7); } + if (property_exists($data, 'ProductLicense') && $data->{'ProductLicense'} !== null) { + $object->setProductLicense($data->{'ProductLicense'}); + } + if (property_exists($data, 'Warnings') && $data->{'Warnings'} !== null) { + $values_8 = []; + foreach ($data->{'Warnings'} as $value_8) { + $values_8[] = $value_8; + } + $object->setWarnings($values_8); + } return $object; } @@ -451,6 +461,16 @@ public function normalize($object, $format = null, array $context = []) } $data->{'SecurityOptions'} = $values_7; } + if (null !== $object->getProductLicense()) { + $data->{'ProductLicense'} = $object->getProductLicense(); + } + if (null !== $object->getWarnings()) { + $values_8 = []; + foreach ($object->getWarnings() as $value_8) { + $values_8[] = $value_8; + } + $data->{'Warnings'} = $values_8; + } return $data; } diff --git a/src/Normalizer/TaskSpecContainerSpecNormalizer.php b/src/Normalizer/TaskSpecContainerSpecNormalizer.php index ed3f7ef8..0361f8fc 100644 --- a/src/Normalizer/TaskSpecContainerSpecNormalizer.php +++ b/src/Normalizer/TaskSpecContainerSpecNormalizer.php @@ -140,6 +140,16 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'Isolation') && $data->{'Isolation'} !== null) { $object->setIsolation($data->{'Isolation'}); } + if (property_exists($data, 'Init') && $data->{'Init'} !== null) { + $object->setInit($data->{'Init'}); + } + if (property_exists($data, 'Sysctls') && $data->{'Sysctls'} !== null) { + $values_9 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS); + foreach ($data->{'Sysctls'} as $key_1 => $value_9) { + $values_9[$key_1] = $value_9; + } + $object->setSysctls($values_9); + } return $object; } @@ -249,6 +259,16 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getIsolation()) { $data->{'Isolation'} = $object->getIsolation(); } + if (null !== $object->getInit()) { + $data->{'Init'} = $object->getInit(); + } + if (null !== $object->getSysctls()) { + $values_9 = new \stdClass(); + foreach ($object->getSysctls() as $key_1 => $value_9) { + $values_9->{$key_1} = $value_9; + } + $data->{'Sysctls'} = $values_9; + } return $data; } diff --git a/src/Normalizer/TaskSpecNetworkAttachmentSpecNormalizer.php b/src/Normalizer/TaskSpecNetworkAttachmentSpecNormalizer.php new file mode 100644 index 00000000..015e0464 --- /dev/null +++ b/src/Normalizer/TaskSpecNetworkAttachmentSpecNormalizer.php @@ -0,0 +1,57 @@ +{'ContainerID'} !== null) { + $object->setContainerID($data->{'ContainerID'}); + } + + return $object; + } + + public function normalize($object, $format = null, array $context = []) + { + $data = new \stdClass(); + if (null !== $object->getContainerID()) { + $data->{'ContainerID'} = $object->getContainerID(); + } + + return $data; + } +} diff --git a/src/Normalizer/TaskSpecNormalizer.php b/src/Normalizer/TaskSpecNormalizer.php index eeadc845..bf038654 100644 --- a/src/Normalizer/TaskSpecNormalizer.php +++ b/src/Normalizer/TaskSpecNormalizer.php @@ -44,6 +44,9 @@ public function denormalize($data, $class, $format = null, array $context = []) if (property_exists($data, 'ContainerSpec') && $data->{'ContainerSpec'} !== null) { $object->setContainerSpec($this->denormalizer->denormalize($data->{'ContainerSpec'}, 'Docker\\API\\Model\\TaskSpecContainerSpec', 'json', $context)); } + if (property_exists($data, 'NetworkAttachmentSpec') && $data->{'NetworkAttachmentSpec'} !== null) { + $object->setNetworkAttachmentSpec($this->denormalizer->denormalize($data->{'NetworkAttachmentSpec'}, 'Docker\\API\\Model\\TaskSpecNetworkAttachmentSpec', 'json', $context)); + } if (property_exists($data, 'Resources') && $data->{'Resources'} !== null) { $object->setResources($this->denormalizer->denormalize($data->{'Resources'}, 'Docker\\API\\Model\\TaskSpecResources', 'json', $context)); } @@ -82,6 +85,9 @@ public function normalize($object, $format = null, array $context = []) if (null !== $object->getContainerSpec()) { $data->{'ContainerSpec'} = $this->normalizer->normalize($object->getContainerSpec(), 'json', $context); } + if (null !== $object->getNetworkAttachmentSpec()) { + $data->{'NetworkAttachmentSpec'} = $this->normalizer->normalize($object->getNetworkAttachmentSpec(), 'json', $context); + } if (null !== $object->getResources()) { $data->{'Resources'} = $this->normalizer->normalize($object->getResources(), 'json', $context); } diff --git a/src/Normalizer/TaskSpecPlacementNormalizer.php b/src/Normalizer/TaskSpecPlacementNormalizer.php index 11995be6..44f1d445 100644 --- a/src/Normalizer/TaskSpecPlacementNormalizer.php +++ b/src/Normalizer/TaskSpecPlacementNormalizer.php @@ -52,6 +52,9 @@ public function denormalize($data, $class, $format = null, array $context = []) } $object->setPreferences($values_1); } + if (property_exists($data, 'MaxReplicas') && $data->{'MaxReplicas'} !== null) { + $object->setMaxReplicas($data->{'MaxReplicas'}); + } if (property_exists($data, 'Platforms') && $data->{'Platforms'} !== null) { $values_2 = []; foreach ($data->{'Platforms'} as $value_2) { @@ -80,6 +83,9 @@ public function normalize($object, $format = null, array $context = []) } $data->{'Preferences'} = $values_1; } + if (null !== $object->getMaxReplicas()) { + $data->{'MaxReplicas'} = $object->getMaxReplicas(); + } if (null !== $object->getPlatforms()) { $values_2 = []; foreach ($object->getPlatforms() as $value_2) {