Skip to content

Commit

Permalink
Merge pull request #1518 from php-api-clients/GitHubEnterpriseCloud/f…
Browse files Browse the repository at this point in the history
…rom-1.1.4-aa1162e8505efc555be8f6dd8c43e5bd-from-1.1.4-aa1162e8505efc555be8f6dd8c43e5bd
  • Loading branch information
WyriHaximus authored Feb 12, 2025
2 parents 25542ce + 29b05ec commit 617def9
Show file tree
Hide file tree
Showing 45 changed files with 1,639 additions and 114 deletions.
90 changes: 47 additions & 43 deletions clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
$properties['mostRecentInstance'] = $value;

after_mostRecentInstance:

$value = $payload['dismissal_approved_by'] ?? null;

if ($value === null) {
$properties['dismissalApprovedBy'] = null;
goto after_dismissalApprovedBy;
}

if (is_array($value)) {
try {
$this->hydrationStack[] = 'dismissalApprovedBy';
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value);
} finally {
array_pop($this->hydrationStack);
}
}

$properties['dismissalApprovedBy'] = $value;

after_dismissalApprovedBy:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlert', $exception, stack: $this->hydrationStack);
}
Expand Down Expand Up @@ -1269,6 +1289,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
$mostRecentInstance = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeScanningAlertInstance($mostRecentInstance);
after_mostRecentInstance: $result['most_recent_instance'] = $mostRecentInstance;

$dismissalApprovedBy = $object->dismissalApprovedBy;

if ($dismissalApprovedBy === null) {
goto after_dismissalApprovedBy;
}

$dismissalApprovedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($dismissalApprovedBy);
after_dismissalApprovedBy: $result['dismissal_approved_by'] = $dismissalApprovedBy;

return $result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
$properties['multiRepo'] = $value;

after_multiRepo:

$value = $payload['is_base64_encoded'] ?? null;

if ($value === null) {
$properties['isBaseSixtyFourEncoded'] = null;
goto after_isBaseSixtyFourEncoded;
}

$properties['isBaseSixtyFourEncoded'] = $value;

after_isBaseSixtyFourEncoded:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecretScanningAlert', $exception, stack: $this->hydrationStack);
}
Expand Down Expand Up @@ -968,6 +979,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou

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

$isBaseSixtyFourEncoded = $object->isBaseSixtyFourEncoded;

if ($isBaseSixtyFourEncoded === null) {
goto after_isBaseSixtyFourEncoded;
}

after_isBaseSixtyFourEncoded: $result['is_base64_encoded'] = $isBaseSixtyFourEncoded;

return $result;
}

Expand Down
Loading

0 comments on commit 617def9

Please sign in to comment.