Skip to content

Commit 617def9

Browse files
authored
Merge pull request #1518 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-aa1162e8505efc555be8f6dd8c43e5bd-from-1.1.4-aa1162e8505efc555be8f6dd8c43e5bd
2 parents 25542ce + 29b05ec commit 617def9

Some content is hidden

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

45 files changed

+1639
-114
lines changed

clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state

Lines changed: 47 additions & 43 deletions
Large diffs are not rendered by default.

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
266266
$properties['mostRecentInstance'] = $value;
267267

268268
after_mostRecentInstance:
269+
270+
$value = $payload['dismissal_approved_by'] ?? null;
271+
272+
if ($value === null) {
273+
$properties['dismissalApprovedBy'] = null;
274+
goto after_dismissalApprovedBy;
275+
}
276+
277+
if (is_array($value)) {
278+
try {
279+
$this->hydrationStack[] = 'dismissalApprovedBy';
280+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value);
281+
} finally {
282+
array_pop($this->hydrationStack);
283+
}
284+
}
285+
286+
$properties['dismissalApprovedBy'] = $value;
287+
288+
after_dismissalApprovedBy:
269289
} catch (Throwable $exception) {
270290
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert', $exception, stack: $this->hydrationStack);
271291
}
@@ -1269,6 +1289,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
12691289
$mostRecentInstance = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeScanningAlertInstance($mostRecentInstance);
12701290
after_mostRecentInstance: $result['most_recent_instance'] = $mostRecentInstance;
12711291

1292+
$dismissalApprovedBy = $object->dismissalApprovedBy;
1293+
1294+
if ($dismissalApprovedBy === null) {
1295+
goto after_dismissalApprovedBy;
1296+
}
1297+
1298+
$dismissalApprovedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($dismissalApprovedBy);
1299+
after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy;
1300+
12721301
return $result;
12731302
}
12741303

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
344344
$properties['multiRepo'] = $value;
345345

346346
after_multiRepo:
347+
348+
$value = $payload['is_base64_encoded'] ?? null;
349+
350+
if ($value === null) {
351+
$properties['isBaseSixtyFourEncoded'] = null;
352+
goto after_isBaseSixtyFourEncoded;
353+
}
354+
355+
$properties['isBaseSixtyFourEncoded'] = $value;
356+
357+
after_isBaseSixtyFourEncoded:
347358
} catch (Throwable $exception) {
348359
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert', $exception, stack: $this->hydrationStack);
349360
}
@@ -968,6 +979,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
968979

969980
after_multiRepo: $result['multi_repo'] = $multiRepo;
970981

982+
$isBaseSixtyFourEncoded = $object->isBaseSixtyFourEncoded;
983+
984+
if ($isBaseSixtyFourEncoded === null) {
985+
goto after_isBaseSixtyFourEncoded;
986+
}
987+
988+
after_isBaseSixtyFourEncoded: $result['is_base64_encoded'] = $isBaseSixtyFourEncoded;
989+
971990
return $result;
972991
}
973992

0 commit comments

Comments
 (0)