Skip to content

Commit a762079

Browse files
Merge pull request #11 from nortoh/using-official-janephp-7.6-release
[MAD-14311] Using official janephp 7.6 release
2 parents 5d0b979 + f9a9bf0 commit a762079

File tree

730 files changed

+44120
-22430
lines changed

Some content is hidden

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

730 files changed

+44120
-22430
lines changed

composer.json

+2-16
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,13 @@
1010
},
1111
"require": {
1212
"php": ">=7.1",
13-
"jane-php/jane-php": "7.5.10043"
13+
"jane-php/jane-php": "^7.6"
1414
},
1515
"require-dev": {
1616
"phpunit/phpunit": "^10.4",
17-
"friendsofphp/php-cs-fixer": "^2.9",
17+
"friendsofphp/php-cs-fixer": "^3.0",
1818
"amphp/artax": "^3.0"
1919
},
20-
"repositories": [
21-
{
22-
"type": "package",
23-
"package": {
24-
"name": "jane-php/jane-php",
25-
"version": "7.5.10043",
26-
"source": {
27-
"url": "https://github.com/nocworx/janephp",
28-
"type": "git",
29-
"reference": "origin/nocworx-php83"
30-
}
31-
}
32-
}
33-
],
3420
"suggest": {
3521
"amphp/artax": "To use the async api"
3622
},

docker-swagger.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -8707,7 +8707,9 @@ paths:
87078707
type: "string"
87088708
RemoteAddrs:
87098709
description: "Addresses of manager nodes already participating in the swarm."
8710-
type: "string"
8710+
type: "array"
8711+
items:
8712+
type: "string"
87118713
JoinToken:
87128714
description: "Secret token for joining this swarm."
87138715
type: "string"

openapi.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -7986,8 +7986,11 @@
79867986
"description": "Address or interface to use for data path traffic (format: `<ip|interface>`), for example, `192.168.1.1`,\nor an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr`\nis used.\n\nThe `DataPathAddr` specifies the address that global scope network drivers will publish towards other\nnodes in order to reach the containers running on this node. Using this parameter it is possible to\nseparate the container data traffic from the management traffic of the cluster.\n"
79877987
},
79887988
"RemoteAddrs": {
7989-
"type": "string",
7990-
"description": "Addresses of manager nodes already participating in the swarm."
7989+
"type": "array",
7990+
"description": "Addresses of manager nodes already participating in the swarm.",
7991+
"items": {
7992+
"type": "string"
7993+
}
79917994
},
79927995
"JoinToken": {
79937996
"type": "string",
@@ -8021,8 +8024,11 @@
80218024
"description": "Address or interface to use for data path traffic (format: `<ip|interface>`), for example, `192.168.1.1`,\nor an interface, like `eth0`. If `DataPathAddr` is unspecified, the same address as `AdvertiseAddr`\nis used.\n\nThe `DataPathAddr` specifies the address that global scope network drivers will publish towards other\nnodes in order to reach the containers running on this node. Using this parameter it is possible to\nseparate the container data traffic from the management traffic of the cluster.\n"
80228025
},
80238026
"RemoteAddrs": {
8024-
"type": "string",
8025-
"description": "Addresses of manager nodes already participating in the swarm."
8027+
"type": "array",
8028+
"description": "Addresses of manager nodes already participating in the swarm.",
8029+
"items": {
8030+
"type": "string"
8031+
}
80268032
},
80278033
"JoinToken": {
80288034
"type": "string",
@@ -15428,4 +15434,4 @@
1542815434
}
1542915435
},
1543015436
"x-original-swagger-version": "2.0"
15431-
}
15437+
}

openapi.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -5807,9 +5807,11 @@ paths:
58075807
nodes in order to reach the containers running on this node. Using this parameter it is possible to
58085808
separate the container data traffic from the management traffic of the cluster.
58095809
RemoteAddrs:
5810-
type: string
5810+
type: array
58115811
description: Addresses of manager nodes already participating in
58125812
the swarm.
5813+
items:
5814+
type: string
58135815
JoinToken:
58145816
type: string
58155817
description: Secret token for joining this swarm.
@@ -5848,9 +5850,11 @@ paths:
58485850
nodes in order to reach the containers running on this node. Using this parameter it is possible to
58495851
separate the container data traffic from the management traffic of the cluster.
58505852
RemoteAddrs:
5851-
type: string
5853+
type: array
58525854
description: Addresses of manager nodes already participating in
58535855
the swarm.
5856+
items:
5857+
type: string
58545858
JoinToken:
58555859
type: string
58565860
description: Secret token for joining this swarm.

src/Endpoint/BuildPrune.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
class BuildPrune extends \Docker\API\Runtime\Client\BaseEndpoint implements \Docker\API\Runtime\Client\Endpoint
66
{
77
use \Docker\API\Runtime\Client\EndpointTrait;
8-
public function getMethod(): string
8+
public function getMethod() : string
99
{
1010
return 'POST';
1111
}
12-
public function getUri(): string
12+
public function getUri() : string
1313
{
1414
return '/build/prune';
1515
}
16-
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
16+
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array
1717
{
1818
return [[], null];
1919
}
20-
public function getExtraHeaders(): array
20+
public function getExtraHeaders() : array
2121
{
2222
return ['Accept' => ['application/json']];
2323
}
@@ -33,13 +33,13 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
3333
$status = $response->getStatusCode();
3434
$body = (string) $response->getBody();
3535
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
36-
return $serializer->deserialize($body, 'Docker\API\Model\BuildPrunePostResponse200', 'json');
36+
return $serializer->deserialize($body, 'Docker\\API\\Model\\BuildPrunePostResponse200', 'json');
3737
}
3838
if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) {
39-
throw new \Docker\API\Exception\BuildPruneInternalServerErrorException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
39+
throw new \Docker\API\Exception\BuildPruneInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
4040
}
4141
}
42-
public function getAuthenticationScopes(): array
42+
public function getAuthenticationScopes() : array
4343
{
4444
return [];
4545
}

src/Endpoint/ConfigCreate.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ public function __construct(?\Docker\API\Model\ConfigsCreatePostBody $requestBod
1414
$this->body = $requestBody;
1515
}
1616
use \Docker\API\Runtime\Client\EndpointTrait;
17-
public function getMethod(): string
17+
public function getMethod() : string
1818
{
1919
return 'POST';
2020
}
21-
public function getUri(): string
21+
public function getUri() : string
2222
{
2323
return '/configs/create';
2424
}
25-
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
25+
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array
2626
{
2727
if ($this->body instanceof \Docker\API\Model\ConfigsCreatePostBody) {
2828
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
2929
}
3030
return [[], null];
3131
}
32-
public function getExtraHeaders(): array
32+
public function getExtraHeaders() : array
3333
{
3434
return ['Accept' => ['application/json']];
3535
}
@@ -47,19 +47,19 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
4747
$status = $response->getStatusCode();
4848
$body = (string) $response->getBody();
4949
if (is_null($contentType) === false && (201 === $status && mb_strpos($contentType, 'application/json') !== false)) {
50-
return $serializer->deserialize($body, 'Docker\API\Model\IdResponse', 'json');
50+
return $serializer->deserialize($body, 'Docker\\API\\Model\\IdResponse', 'json');
5151
}
5252
if (is_null($contentType) === false && (409 === $status && mb_strpos($contentType, 'application/json') !== false)) {
53-
throw new \Docker\API\Exception\ConfigCreateConflictException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
53+
throw new \Docker\API\Exception\ConfigCreateConflictException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
5454
}
5555
if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) {
56-
throw new \Docker\API\Exception\ConfigCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
56+
throw new \Docker\API\Exception\ConfigCreateInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
5757
}
5858
if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) {
59-
throw new \Docker\API\Exception\ConfigCreateServiceUnavailableException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
59+
throw new \Docker\API\Exception\ConfigCreateServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
6060
}
6161
}
62-
public function getAuthenticationScopes(): array
62+
public function getAuthenticationScopes() : array
6363
{
6464
return [];
6565
}

src/Endpoint/ConfigDelete.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ public function __construct(string $id)
1515
$this->id = $id;
1616
}
1717
use \Docker\API\Runtime\Client\EndpointTrait;
18-
public function getMethod(): string
18+
public function getMethod() : string
1919
{
2020
return 'DELETE';
2121
}
22-
public function getUri(): string
22+
public function getUri() : string
2323
{
2424
return str_replace(['{id}'], [$this->id], '/configs/{id}');
2525
}
26-
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
26+
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array
2727
{
2828
return [[], null];
2929
}
30-
public function getExtraHeaders(): array
30+
public function getExtraHeaders() : array
3131
{
3232
return ['Accept' => ['application/json']];
3333
}
@@ -47,16 +47,16 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
4747
if (204 === $status) {
4848
}
4949
if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) {
50-
throw new \Docker\API\Exception\ConfigDeleteNotFoundException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
50+
throw new \Docker\API\Exception\ConfigDeleteNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
5151
}
5252
if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) {
53-
throw new \Docker\API\Exception\ConfigDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
53+
throw new \Docker\API\Exception\ConfigDeleteInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
5454
}
5555
if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) {
56-
throw new \Docker\API\Exception\ConfigDeleteServiceUnavailableException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
56+
throw new \Docker\API\Exception\ConfigDeleteServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
5757
}
5858
}
59-
public function getAuthenticationScopes(): array
59+
public function getAuthenticationScopes() : array
6060
{
6161
return [];
6262
}

src/Endpoint/ConfigInspect.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ public function __construct(string $id)
1515
$this->id = $id;
1616
}
1717
use \Docker\API\Runtime\Client\EndpointTrait;
18-
public function getMethod(): string
18+
public function getMethod() : string
1919
{
2020
return 'GET';
2121
}
22-
public function getUri(): string
22+
public function getUri() : string
2323
{
2424
return str_replace(['{id}'], [$this->id], '/configs/{id}');
2525
}
26-
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
26+
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array
2727
{
2828
return [[], null];
2929
}
30-
public function getExtraHeaders(): array
30+
public function getExtraHeaders() : array
3131
{
3232
return ['Accept' => ['application/json']];
3333
}
@@ -45,19 +45,19 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
4545
$status = $response->getStatusCode();
4646
$body = (string) $response->getBody();
4747
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
48-
return $serializer->deserialize($body, 'Docker\API\Model\Config', 'json');
48+
return $serializer->deserialize($body, 'Docker\\API\\Model\\Config', 'json');
4949
}
5050
if (is_null($contentType) === false && (404 === $status && mb_strpos($contentType, 'application/json') !== false)) {
51-
throw new \Docker\API\Exception\ConfigInspectNotFoundException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
51+
throw new \Docker\API\Exception\ConfigInspectNotFoundException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
5252
}
5353
if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) {
54-
throw new \Docker\API\Exception\ConfigInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
54+
throw new \Docker\API\Exception\ConfigInspectInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
5555
}
5656
if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) {
57-
throw new \Docker\API\Exception\ConfigInspectServiceUnavailableException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
57+
throw new \Docker\API\Exception\ConfigInspectServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
5858
}
5959
}
60-
public function getAuthenticationScopes(): array
60+
public function getAuthenticationScopes() : array
6161
{
6262
return [];
6363
}

src/Endpoint/ConfigList.php

+9-9
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ public function __construct(array $queryParameters = [])
2222
$this->queryParameters = $queryParameters;
2323
}
2424
use \Docker\API\Runtime\Client\EndpointTrait;
25-
public function getMethod(): string
25+
public function getMethod() : string
2626
{
2727
return 'GET';
2828
}
29-
public function getUri(): string
29+
public function getUri() : string
3030
{
3131
return '/configs';
3232
}
33-
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null): array
33+
public function getBody(\Symfony\Component\Serializer\SerializerInterface $serializer, $streamFactory = null) : array
3434
{
3535
return [[], null];
3636
}
37-
public function getExtraHeaders(): array
37+
public function getExtraHeaders() : array
3838
{
3939
return ['Accept' => ['application/json']];
4040
}
41-
protected function getQueryOptionsResolver(): \Symfony\Component\OptionsResolver\OptionsResolver
41+
protected function getQueryOptionsResolver() : \Symfony\Component\OptionsResolver\OptionsResolver
4242
{
4343
$optionsResolver = parent::getQueryOptionsResolver();
4444
$optionsResolver->setDefined(['filters']);
@@ -60,16 +60,16 @@ protected function transformResponseBody(\Psr\Http\Message\ResponseInterface $re
6060
$status = $response->getStatusCode();
6161
$body = (string) $response->getBody();
6262
if (is_null($contentType) === false && (200 === $status && mb_strpos($contentType, 'application/json') !== false)) {
63-
return $serializer->deserialize($body, 'Docker\API\Model\Config[]', 'json');
63+
return $serializer->deserialize($body, 'Docker\\API\\Model\\Config[]', 'json');
6464
}
6565
if (is_null($contentType) === false && (500 === $status && mb_strpos($contentType, 'application/json') !== false)) {
66-
throw new \Docker\API\Exception\ConfigListInternalServerErrorException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
66+
throw new \Docker\API\Exception\ConfigListInternalServerErrorException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
6767
}
6868
if (is_null($contentType) === false && (503 === $status && mb_strpos($contentType, 'application/json') !== false)) {
69-
throw new \Docker\API\Exception\ConfigListServiceUnavailableException($serializer->deserialize($body, 'Docker\API\Model\ErrorResponse', 'json'), $response);
69+
throw new \Docker\API\Exception\ConfigListServiceUnavailableException($serializer->deserialize($body, 'Docker\\API\\Model\\ErrorResponse', 'json'), $response);
7070
}
7171
}
72-
public function getAuthenticationScopes(): array
72+
public function getAuthenticationScopes() : array
7373
{
7474
return [];
7575
}

0 commit comments

Comments
 (0)