Skip to content

Commit 60f3955

Browse files
committed
Generate new Docker Engine API v1.43 using JanePHP updates
Signed-off-by: Grant Millar <rid@cylo.io>
1 parent 080cbd2 commit 60f3955

100 files changed

Lines changed: 587 additions & 299 deletions

File tree

Some content is hidden

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

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)) {

src/Normalizer/ConfigSpecNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function normalize($object, $format = null, array $context = [])
9090
$data['Name'] = $object->getName();
9191
}
9292
if ($object->isInitialized('labels') && null !== $object->getLabels()) {
93-
$values = [];
93+
$values = new \ArrayObject([], \ArrayObject::ARRAY_AS_PROPS);
9494
foreach ($object->getLabels() as $key => $value) {
9595
$values[$key] = $value;
9696
}
@@ -100,7 +100,7 @@ public function normalize($object, $format = null, array $context = [])
100100
$data['Data'] = $object->getData();
101101
}
102102
if ($object->isInitialized('templating') && null !== $object->getTemplating()) {
103-
$data['Templating'] = $this->normalizer->normalize($object->getTemplating(), 'json', $context);
103+
$data['Templating'] = null === $object->getTemplating() ? null : new \ArrayObject($this->normalizer->normalize($object->getTemplating(), 'json', $context), \ArrayObject::ARRAY_AS_PROPS);
104104
}
105105
foreach ($object as $key_1 => $value_1) {
106106
if (preg_match('/.*/', (string) $key_1)) {

0 commit comments

Comments
 (0)