Skip to content

Commit ef26c52

Browse files
committed
Built using latest janephp with fixes
Signed-off-by: Grant Millar <[email protected]>
1 parent 5b39e70 commit ef26c52

File tree

100 files changed

+317
-322
lines changed

Some content is hidden

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

100 files changed

+317
-322
lines changed

composer.json

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"sort-packages": true,
99
"preferred-install": "dist",
1010
"allow-plugins": {
11-
"php-http/discovery": true
11+
"php-http/discovery": false
1212
}
1313
},
1414
"minimum-stability": "dev",
@@ -22,29 +22,31 @@
2222
{
2323
"type": "github",
2424
"url": "https://github.com/flavioheleno"
25-
},
26-
{
27-
"type": "patreon",
28-
"url": "https://www.patreon.com/flavioheleno"
2925
}
3026
],
3127
"require": {
3228
"php": ">=8.1",
33-
"ext-json": "*",
3429
"ext-mbstring": "*",
35-
"jane-php/open-api-runtime": "^7.4",
36-
"nyholm/psr7": "^1.8",
30+
"jane-php/json-schema-runtime": "^7.5",
31+
"jane-php/open-api-runtime": "^7.5",
32+
"php-http/client-common": "^2.7",
33+
"php-http/discovery": "^1.19",
34+
"php-http/multipart-stream-builder": "^1.3",
3735
"psr/http-client": "^1.0",
3836
"psr/http-factory": "^1.0",
39-
"psr/http-message": "^1.0 || ^2.0"
37+
"psr/http-message": "^2.0",
38+
"psr/http-client-implementation": "*",
39+
"psr/http-factory-implementation": "*",
40+
"psr/http-message-implementation": "*",
41+
"symfony/deprecation-contracts": "^3.3",
42+
"symfony/options-resolver": "^6.3",
43+
"symfony/serializer": "^6.3",
44+
"symfony/validator": "^6.3"
4045
},
4146
"require-dev": {
4247
"friendsofphp/php-cs-fixer": "^3.8",
43-
"jane-php/json-schema": "^7.4",
44-
"jane-php/open-api-3": "^7.4"
45-
},
46-
"suggest": {
47-
"php-http/socket-client": "Socket-based HTTP Client to use the API"
48+
"jane-php/open-api-3": "^7.4",
49+
"roave/security-advisories": "dev-latest"
4850
},
4951
"conflict": {
5052
"docker-php/docker-php-api": "*"
@@ -59,10 +61,11 @@
5961
},
6062
"extra": {
6163
"branch-alias": {
62-
"dev-main": "7.1.42.x-dev",
64+
"dev-main": "7.1.43.x-dev",
65+
"7.1.42": "7.1.42.x-dev",
6366
"7.1.41": "7.1.41.x-dev",
6467
"6.1.41": "6.1.41.x-dev",
6568
"6.1.36": "6.1.36.x-dev"
6669
}
6770
}
68-
}
71+
}

src/Normalizer/BuildInfoNormalizer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function normalize($object, $format = null, array $context = [])
116116
$data['error'] = $object->getError();
117117
}
118118
if ($object->isInitialized('errorDetail') && null !== $object->getErrorDetail()) {
119-
$data['errorDetail'] = $this->normalizer->normalize($object->getErrorDetail(), 'json', $context);
119+
$data['errorDetail'] = null === $object->getErrorDetail() ? null : new \ArrayObject($this->normalizer->normalize($object->getErrorDetail(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
120120
}
121121
if ($object->isInitialized('status') && null !== $object->getStatus()) {
122122
$data['status'] = $object->getStatus();
@@ -125,10 +125,10 @@ public function normalize($object, $format = null, array $context = [])
125125
$data['progress'] = $object->getProgress();
126126
}
127127
if ($object->isInitialized('progressDetail') && null !== $object->getProgressDetail()) {
128-
$data['progressDetail'] = $this->normalizer->normalize($object->getProgressDetail(), 'json', $context);
128+
$data['progressDetail'] = null === $object->getProgressDetail() ? null : new \ArrayObject($this->normalizer->normalize($object->getProgressDetail(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
129129
}
130130
if ($object->isInitialized('aux') && null !== $object->getAux()) {
131-
$data['aux'] = $this->normalizer->normalize($object->getAux(), 'json', $context);
131+
$data['aux'] = null === $object->getAux() ? null : new \ArrayObject($this->normalizer->normalize($object->getAux(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
132132
}
133133
foreach ($object as $key => $value) {
134134
if (preg_match('/.*/', (string) $key)) {

src/Normalizer/ClusterInfoNormalizer.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function normalize($object, $format = null, array $context = [])
126126
$data['ID'] = $object->getID();
127127
}
128128
if ($object->isInitialized('version') && null !== $object->getVersion()) {
129-
$data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context);
129+
$data['Version'] = null === $object->getVersion() ? null : new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
130130
}
131131
if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) {
132132
$data['CreatedAt'] = $object->getCreatedAt();
@@ -135,10 +135,10 @@ public function normalize($object, $format = null, array $context = [])
135135
$data['UpdatedAt'] = $object->getUpdatedAt();
136136
}
137137
if ($object->isInitialized('spec') && null !== $object->getSpec()) {
138-
$data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context);
138+
$data['Spec'] = null === $object->getSpec() ? null : new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
139139
}
140140
if ($object->isInitialized('tLSInfo') && null !== $object->getTLSInfo()) {
141-
$data['TLSInfo'] = $this->normalizer->normalize($object->getTLSInfo(), 'json', $context);
141+
$data['TLSInfo'] = null === $object->getTLSInfo() ? null : new \ArrayObject($this->normalizer->normalize($object->getTLSInfo(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
142142
}
143143
if ($object->isInitialized('rootRotationInProgress') && null !== $object->getRootRotationInProgress()) {
144144
$data['RootRotationInProgress'] = $object->getRootRotationInProgress();

src/Normalizer/ClusterVolumeInfoNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function normalize($object, $format = null, array $context = [])
9898
$data['CapacityBytes'] = $object->getCapacityBytes();
9999
}
100100
if ($object->isInitialized('volumeContext') && null !== $object->getVolumeContext()) {
101-
$values = [];
101+
$values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
102102
foreach ($object->getVolumeContext() as $key => $value) {
103103
$values[$key] = $value;
104104
}
@@ -110,7 +110,7 @@ public function normalize($object, $format = null, array $context = [])
110110
if ($object->isInitialized('accessibleTopology') && null !== $object->getAccessibleTopology()) {
111111
$values_1 = [];
112112
foreach ($object->getAccessibleTopology() as $value_1) {
113-
$values_2 = [];
113+
$values_2 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
114114
foreach ($value_1 as $key_1 => $value_2) {
115115
$values_2[$key_1] = $value_2;
116116
}

src/Normalizer/ClusterVolumeNormalizer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function normalize($object, $format = null, array $context = [])
108108
$data['ID'] = $object->getID();
109109
}
110110
if ($object->isInitialized('version') && null !== $object->getVersion()) {
111-
$data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context);
111+
$data['Version'] = null === $object->getVersion() ? null : new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
112112
}
113113
if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) {
114114
$data['CreatedAt'] = $object->getCreatedAt();
@@ -117,15 +117,15 @@ public function normalize($object, $format = null, array $context = [])
117117
$data['UpdatedAt'] = $object->getUpdatedAt();
118118
}
119119
if ($object->isInitialized('spec') && null !== $object->getSpec()) {
120-
$data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context);
120+
$data['Spec'] = null === $object->getSpec() ? null : new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
121121
}
122122
if ($object->isInitialized('info') && null !== $object->getInfo()) {
123-
$data['Info'] = $this->normalizer->normalize($object->getInfo(), 'json', $context);
123+
$data['Info'] = null === $object->getInfo() ? null : new \ArrayObject($this->normalizer->normalize($object->getInfo(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
124124
}
125125
if ($object->isInitialized('publishStatus') && null !== $object->getPublishStatus()) {
126126
$values = [];
127127
foreach ($object->getPublishStatus() as $value) {
128-
$values[] = $this->normalizer->normalize($value, 'json', $context);
128+
$values[] = null === $value ? null : new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
129129
}
130130
$data['PublishStatus'] = $values;
131131
}

src/Normalizer/ClusterVolumePublishStatusItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function normalize($object, $format = null, array $context = [])
8787
$data['State'] = $object->getState();
8888
}
8989
if ($object->isInitialized('publishContext') && null !== $object->getPublishContext()) {
90-
$values = [];
90+
$values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
9191
foreach ($object->getPublishContext() as $key => $value) {
9292
$values[$key] = $value;
9393
}

src/Normalizer/ClusterVolumeSpecAccessModeAccessibilityRequirementsNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function normalize($object, $format = null, array $context = [])
8989
if ($object->isInitialized('requisite') && null !== $object->getRequisite()) {
9090
$values = [];
9191
foreach ($object->getRequisite() as $value) {
92-
$values_1 = [];
92+
$values_1 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
9393
foreach ($value as $key => $value_1) {
9494
$values_1[$key] = $value_1;
9595
}
@@ -100,7 +100,7 @@ public function normalize($object, $format = null, array $context = [])
100100
if ($object->isInitialized('preferred') && null !== $object->getPreferred()) {
101101
$values_2 = [];
102102
foreach ($object->getPreferred() as $value_2) {
103-
$values_3 = [];
103+
$values_3 = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
104104
foreach ($value_2 as $key_1 => $value_3) {
105105
$values_3[$key_1] = $value_3;
106106
}

src/Normalizer/ClusterVolumeSpecAccessModeNormalizer.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,20 +111,20 @@ public function normalize($object, $format = null, array $context = [])
111111
$data['Sharing'] = $object->getSharing();
112112
}
113113
if ($object->isInitialized('mountVolume') && null !== $object->getMountVolume()) {
114-
$data['MountVolume'] = $this->normalizer->normalize($object->getMountVolume(), 'json', $context);
114+
$data['MountVolume'] = null === $object->getMountVolume() ? null : new \ArrayObject($this->normalizer->normalize($object->getMountVolume(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
115115
}
116116
if ($object->isInitialized('secrets') && null !== $object->getSecrets()) {
117117
$values = [];
118118
foreach ($object->getSecrets() as $value) {
119-
$values[] = $this->normalizer->normalize($value, 'json', $context);
119+
$values[] = null === $value ? null : new \ArrayObject($this->normalizer->normalize($value, 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
120120
}
121121
$data['Secrets'] = $values;
122122
}
123123
if ($object->isInitialized('accessibilityRequirements') && null !== $object->getAccessibilityRequirements()) {
124-
$data['AccessibilityRequirements'] = $this->normalizer->normalize($object->getAccessibilityRequirements(), 'json', $context);
124+
$data['AccessibilityRequirements'] = null === $object->getAccessibilityRequirements() ? null : new \ArrayObject($this->normalizer->normalize($object->getAccessibilityRequirements(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
125125
}
126126
if ($object->isInitialized('capacityRange') && null !== $object->getCapacityRange()) {
127-
$data['CapacityRange'] = $this->normalizer->normalize($object->getCapacityRange(), 'json', $context);
127+
$data['CapacityRange'] = null === $object->getCapacityRange() ? null : new \ArrayObject($this->normalizer->normalize($object->getCapacityRange(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
128128
}
129129
if ($object->isInitialized('availability') && null !== $object->getAvailability()) {
130130
$data['Availability'] = $object->getAvailability();

src/Normalizer/ClusterVolumeSpecNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function normalize($object, $format = null, array $context = [])
7474
$data['Group'] = $object->getGroup();
7575
}
7676
if ($object->isInitialized('accessMode') && null !== $object->getAccessMode()) {
77-
$data['AccessMode'] = $this->normalizer->normalize($object->getAccessMode(), 'json', $context);
77+
$data['AccessMode'] = null === $object->getAccessMode() ? null : new \ArrayObject($this->normalizer->normalize($object->getAccessMode(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
7878
}
7979
foreach ($object as $key => $value) {
8080
if (preg_match('/.*/', (string) $key)) {

src/Normalizer/ConfigNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function normalize($object, $format = null, array $context = [])
9292
$data['ID'] = $object->getID();
9393
}
9494
if ($object->isInitialized('version') && null !== $object->getVersion()) {
95-
$data['Version'] = $this->normalizer->normalize($object->getVersion(), 'json', $context);
95+
$data['Version'] = null === $object->getVersion() ? null : new \ArrayObject($this->normalizer->normalize($object->getVersion(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
9696
}
9797
if ($object->isInitialized('createdAt') && null !== $object->getCreatedAt()) {
9898
$data['CreatedAt'] = $object->getCreatedAt();
@@ -101,7 +101,7 @@ public function normalize($object, $format = null, array $context = [])
101101
$data['UpdatedAt'] = $object->getUpdatedAt();
102102
}
103103
if ($object->isInitialized('spec') && null !== $object->getSpec()) {
104-
$data['Spec'] = $this->normalizer->normalize($object->getSpec(), 'json', $context);
104+
$data['Spec'] = null === $object->getSpec() ? null : new \ArrayObject($this->normalizer->normalize($object->getSpec(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
105105
}
106106
foreach ($object as $key => $value) {
107107
if (preg_match('/.*/', (string) $key)) {

0 commit comments

Comments
 (0)