Skip to content

[GitHubEnterprise-3.13] Update to 1.1.4-71747b16e45e0f2a54b8e1ca561b75d5 from 1.1.4-8985016ac4b27cc23057fb31dee10264 #1484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions clients/GitHubEnterprise-3.13/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "8985016ac4b27cc23057fb31dee10264",
"specHash": "71747b16e45e0f2a54b8e1ca561b75d5",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -1596,7 +1596,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php",
"hash": "f4d6f6268171e5bdac4c36bd524d933e"
"hash": "1f68b2e0be822f1fe631c2ecbf33af29"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php",
Expand Down Expand Up @@ -3264,7 +3264,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php",
"hash": "e19123d6c0aeecf27c8c9359cfa37d73"
"hash": "eea752ff872e32ab676814f4711443ce"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php",
Expand Down Expand Up @@ -7508,7 +7508,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php",
"hash": "e422d820f3a178650a8a21a39af7414f"
"hash": "cef6f06a6686302752fdf3b6a631d9a4"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php",
Expand Down Expand Up @@ -13236,7 +13236,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory.php",
"hash": "86de612bb69214b911c9aae2aefd17fd"
"hash": "35029681934336b952a05480c07a0f3e"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/BasicError.php",
Expand Down Expand Up @@ -17078,10 +17078,6 @@
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Cwes.php",
"hash": "d9634fd912b4375b20de87e707e1c45e"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php",
"hash": "a0e029eb84b40bf890eb5cb6a6ca8c98"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Credits.php",
"hash": "cdb9e33f008a8d4cf57b16e6735b95de"
Expand Down Expand Up @@ -26504,7 +26500,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php",
"hash": "111042e8c75e48fe50f41cf5f1bf5f32"
"hash": "9cc2dd2fb16ad3ef0e657d9ca943f44f"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php",
Expand Down Expand Up @@ -26948,15 +26944,15 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
"hash": "0fad69374da0792d6207a7cc43f16ccb"
"hash": "fb8d914498dc8ddad6eaa4249ed98e34"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
"hash": "d1905900da5b62fabb0b324a38bb7279"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
"hash": "6c162baaded82b4c6734e822b560ac43"
"hash": "944582af066e6fc6c831c4e7b872a838"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
Expand Down Expand Up @@ -27160,11 +27156,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
"hash": "b5ddf5ed50643698add8a2c384528e11"
"hash": "2fb5474325448bccbcb22bb7d1158ea1"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
"hash": "dbaa0cc35ad0b17f0e6f5565b7c7a283"
"hash": "54beea339c8099994a522e19c9c55b8c"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
Expand Down Expand Up @@ -27216,7 +27212,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Dependabot.php",
"hash": "08bd8e160023bd2237dee15bd8567253"
"hash": "41f38bbe9a82db393bb4c578316bf591"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Billing.php",
Expand Down Expand Up @@ -27668,7 +27664,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Advisories\/GhsaId.php",
"hash": "2c92e8991c2c9b8346d0136b96948f65"
"hash": "456a0b98504643ec116927b80d00d8cc"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/App.php",
Expand Down Expand Up @@ -29944,7 +29940,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
"hash": "a80554fdc52f4357f7577e6a10c8b69d"
"hash": "151d6e808352d3ce2a34abb1d984740b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php",
Expand All @@ -29957,6 +29953,10 @@
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD29A14FC\/Tiet805269F1\/TietA52E66B2\/Tiet7F583E73.php",
"hash": "bdc8166ddf7c904ff62c49a973846e7e"
},
{
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/SecurityAdvisoryEpss.php",
"hash": "d40638f97574f7a84a0e52535948cc82"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVThree;
use ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory;
use ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Cvss;
use ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss;
use ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss;
use EventSauce\ObjectHydrator\IterableList;
use EventSauce\ObjectHydrator\ObjectMapper;
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
Expand Down Expand Up @@ -51,7 +51,7 @@ public function hydrateObject(string $className, array $payload): object
'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities($payload),
'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload),
'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload),
'ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss($payload),
'ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss($payload),
'ApiClients\Client\GitHubEnterprise\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️BasicError($payload),
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
};
Expand Down Expand Up @@ -300,17 +300,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema

after_cvssSeverities:

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

if ($value === null) {
$properties['cwes'] = null;
goto after_cwes;
}

$properties['cwes'] = $value;

after_cwes:

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

if ($value === null) {
Expand All @@ -321,7 +310,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
if (is_array($value)) {
try {
$this->hydrationStack[] = 'epss';
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss($value);
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss($value);
} finally {
array_pop($this->hydrationStack);
}
Expand All @@ -331,6 +320,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema

after_epss:

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

if ($value === null) {
$properties['cwes'] = null;
goto after_cwes;
}

$properties['cwes'] = $value;

after_cwes:

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

if ($value === null) {
Expand Down Expand Up @@ -538,7 +538,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
}
}

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss(array $payload): Epss
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss
{
$properties = [];
$missingFields = [];
Expand All @@ -565,17 +565,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema

after_percentile:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack);
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
}

if (count($missingFields) > 0) {
throw UnableToHydrateObject::dueToMissingFields(Epss::class, $missingFields, stack: $this->hydrationStack);
throw UnableToHydrateObject::dueToMissingFields(SecurityAdvisoryEpss::class, $missingFields, stack: $this->hydrationStack);
}

try {
return new Epss(...$properties);
return new SecurityAdvisoryEpss(...$properties);
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack);
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
}
}

Expand Down Expand Up @@ -678,7 +678,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities($object),
'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object),
'ApiClients\Client\GitHubEnterprise\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object),
'ApiClients\Client\GitHubEnterprise\Schema\GlobalAdvisory\Epss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss($object),
'ApiClients\Client\GitHubEnterprise\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss($object),
'ApiClients\Client\GitHubEnterprise\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️BasicError($object),
default => throw new LogicException("No serialization defined for $className"),
};
Expand Down Expand Up @@ -890,6 +890,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
$cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️CvssSeverities($cvssSeverities);
after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities;

$epss = $object->epss;

if ($epss === null) {
goto after_epss;
}

$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss($epss);
after_epss: $result['epss'] = $epss;

$cwes = $object->cwes;

if ($cwes === null) {
Expand All @@ -905,15 +914,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
$cwes = $cwesSerializer0->serialize($cwes, $this);
after_cwes: $result['cwes'] = $cwes;

$epss = $object->epss;

if ($epss === null) {
goto after_epss;
}

$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss($epss);
after_epss: $result['epss'] = $epss;

$credits = $object->credits;

if ($credits === null) {
Expand Down Expand Up @@ -1030,9 +1030,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
return $result;
}

private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️GlobalAdvisory⚡️Epss(mixed $object): mixed
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed
{
assert($object instanceof Epss);
assert($object instanceof SecurityAdvisoryEpss);
$result = [];

$percentage = $object->percentage;
Expand Down
Loading
Loading