Skip to content

[GitHubEnterprise-3.15] Update to 1.1.4-461f97fcd984db4523b5ea3d4c13bdc9 from 1.1.4-f994914a014deb77ece836279f42b93e #1418

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
84 changes: 44 additions & 40 deletions clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "f994914a014deb77ece836279f42b93e",
"specHash": "461f97fcd984db4523b5ea3d4c13bdc9",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -14072,7 +14072,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview.php",
"hash": "3d1c62360a516919985dde9aca96af79"
"hash": "f4b0a81797fc5c5b4dba345b07cda9cf"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php",
Expand Down Expand Up @@ -17976,7 +17976,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains.php",
"hash": "e80832dfdb5bb0ea24353975f86a1e39"
"hash": "5f2716a4d3a7e9e8cd0e1a63cbcd2bbd"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ArtifactAttestations.php",
Expand Down Expand Up @@ -27472,143 +27472,143 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Meta.php",
"hash": "46865277211c9e1e0aee41a7033da759"
"hash": "41cc72ff89d01e5b48be965d9a5b63fd"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
"hash": "efed108ce127576e7d3b82eeae777ca3"
"hash": "c41e1e5ed253f0c166d3e55aeb3f84e0"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
"hash": "baee00bcde23b37041946c51783834c6"
"hash": "9ccc31a254636a6ee913ed3bc7c5a313"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Apps.php",
"hash": "89df2a9309368a2a16c7c3ca253ab7cd"
"hash": "bc9fcf94230dddacd81ac52504f0ce1b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations.php",
"hash": "071614fde2e362bc24c3ea33d03a48cc"
"hash": "10b3d7ab0928f1394efcf73f21ff3a07"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/CodesOfConduct.php",
"hash": "b07ead9603e87bce6ef65ab70c9bc368"
"hash": "cad298917ac35e117ba2e8822654d2f2"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Emojis.php",
"hash": "9b67d2c2827a05fdc730eeffef117f78"
"hash": "4f904c269bc906fbc5fd4ed4d5c04484"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Actions.php",
"hash": "77da88d55d2659c997bb459c5061c762"
"hash": "896b1f5c6516371d759abf61887a73b8"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
"hash": "9368f0078c830ed23510fb75e6ef076e"
"hash": "035196723d9518e17e7f016fa71af9c8"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/SecretScanning.php",
"hash": "0715e58d0181f36fa31d063331799511"
"hash": "75160b9f5f6f722926af37274c9fa6a9"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Dependabot.php",
"hash": "1bdfedc45b60a6ef0bc3e32243b01ada"
"hash": "6512e1520f8d0d54c26b8b494834c097"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Billing.php",
"hash": "dbf0e15fddcc14841352c1c6fcf17c9a"
"hash": "a9b8e085d4498873d43af940caa6f27b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Activity.php",
"hash": "c5c9ac51ac843432e6b74f2e62a3711b"
"hash": "8002e58689b586d3299f62cbee4c8051"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Gists.php",
"hash": "22c87ec8f6a04dd74cbcc815284e894e"
"hash": "dcbd654fd08e7f5e6ef821110847b33a"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Gitignore.php",
"hash": "3dfecb30b6aca9cc664307fd2dc913e2"
"hash": "51207c9cb09351bdb671405d598e7e36"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Issues.php",
"hash": "afe68411a1040d20c38f4383fc9c5c1d"
"hash": "35c64af07212fd2867cedbad7f520cbc"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Licenses.php",
"hash": "846f74a5a6018e3a3ac9419ef90370a6"
"hash": "0dc45e08d5019a8c671f44217ec39605"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Markdown.php",
"hash": "1f6b3aa228f6a2ad4d316599aad6c97f"
"hash": "1fc478dbc6bf1d600e3723e4d56acf87"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Orgs.php",
"hash": "2452df8aac80845be3d4ed8aad976f2c"
"hash": "fdc3b3f56cbdb20a22e742684b62055c"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Oidc.php",
"hash": "8b866439473c956e4b828d1e5f547db1"
"hash": "a30a62a2fc13921312cee49a6c771816"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/AnnouncementBanners.php",
"hash": "507661bccd3b474178a112af7f7a44da"
"hash": "6745d13871b53ebb63ec0c9fb7899c97"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
"hash": "bd868d58d6560aa31d4342b7d8140310"
"hash": "2c635398b70e785a0aa772ddfbbacffe"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Packages.php",
"hash": "eb4d11edecd55f3cef29ec2653112f52"
"hash": "337c6101216c73dac1eccb57f9f2631a"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Teams.php",
"hash": "5006075565b377a5180a6e26579e2b4d"
"hash": "dd98e69260d21de08925655d6b23783c"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Migrations.php",
"hash": "e5867e26378c1b9c61245fb0274e7567"
"hash": "75a9dbc00a423613f7044841829c282f"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Projects.php",
"hash": "b723e82951da9e446bf946fdf277ae9c"
"hash": "3e90e269db0fc92da9a346cd31875516"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Repos.php",
"hash": "0019017c599240127041d6dc5d882f7d"
"hash": "c6e8e0222a9f3e2e04fc791ab05112e7"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Reactions.php",
"hash": "120235c3d73c33758ea7bd67bb722ca6"
"hash": "61228303c2b949e0b77147ce8af75cdd"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/RateLimit.php",
"hash": "0d5e64b4bfd41075eb64e48fb8b68b2b"
"hash": "c8267af41635f3f2fa1288a40252a085"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Checks.php",
"hash": "5e6e85e8876b3bc0b4a5bc6411a3b989"
"hash": "2a98475dae061d86e6f9a9df81f151f2"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/DependencyGraph.php",
"hash": "b0c5a91de59ea1f5367354dfd659ef57"
"hash": "a638452f9411a0fc738141835c32327d"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Git.php",
"hash": "3ceae1707b9acbb9b0c7008067fabf13"
"hash": "5a443aa23db0a8a7c61bc7e8989408f2"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Pulls.php",
"hash": "745ecf71dd604c48a85a491c15aec872"
"hash": "32674ccd8390448362aa20c4836e7d52"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Search.php",
"hash": "f104c650e8fb9d12812d39bd7c300db5"
"hash": "f575d503a83922ab6cd69e189613b87d"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Users.php",
"hash": "b88b65fed7be6c123f00e6a373f1dd14"
"hash": "455cf91f4c82dccfc1a89c557ec31af3"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operators.php",
Expand Down Expand Up @@ -28312,7 +28312,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Meta.php",
"hash": "314f4fc0d60e4ddf045b9d2e56231ed3"
"hash": "b6be5926b354e7d0337ff22e6a1a3f0b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Networks\/Owner\/Repo\/Events.php",
Expand Down Expand Up @@ -30288,7 +30288,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
"hash": "90a7c451a8167fde41f01b8bce98f3cc"
"hash": "7679f4d4a16985f2c7bc46c968262ca2"
},
{
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php",
"hash": "9961e5081556c929c54d6f03962dba7f"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use ApiClients\Client\GitHubEnterprise\Schema\ApiOverview;
use ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains;
use ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound;
use ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ArtifactAttestations;
use EventSauce\ObjectHydrator\IterableList;
use EventSauce\ObjectHydrator\ObjectMapper;
Expand Down Expand Up @@ -44,6 +45,7 @@ public function hydrateObject(string $className, array $payload): object
return match ($className) {
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview($payload),
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains($payload),
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound($payload),
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ArtifactAttestations' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ArtifactAttestations($payload),
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
};
Expand Down Expand Up @@ -181,6 +183,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema

after_actions:

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

if ($value === null) {
$properties['actionsInbound'] = null;
goto after_actionsInbound;
}

if (is_array($value)) {
try {
$this->hydrationStack[] = 'actionsInbound';
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound($value);
} finally {
array_pop($this->hydrationStack);
}
}

$properties['actionsInbound'] = $value;

after_actionsInbound:

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

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

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound(array $payload): ActionsInbound
{
$properties = [];
$missingFields = [];
try {
$value = $payload['full_domains'] ?? null;

if ($value === null) {
$properties['fullDomains'] = null;
goto after_fullDomains;
}

$properties['fullDomains'] = $value;

after_fullDomains:

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

if ($value === null) {
$properties['wildcardDomains'] = null;
goto after_wildcardDomains;
}

$properties['wildcardDomains'] = $value;

after_wildcardDomains:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound', $exception, stack: $this->hydrationStack);
}

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

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

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ArtifactAttestations(array $payload): ArtifactAttestations
{
$properties = [];
Expand Down Expand Up @@ -289,6 +352,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview($object),
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains($object),
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound($object),
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ArtifactAttestations' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ArtifactAttestations($object),
default => throw new LogicException("No serialization defined for $className"),
};
Expand Down Expand Up @@ -475,6 +539,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
$actions = $actionsSerializer0->serialize($actions, $this);
after_actions: $result['actions'] = $actions;

$actionsInbound = $object->actionsInbound;

if ($actionsInbound === null) {
goto after_actionsInbound;
}

$actionsInbound = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound($actionsInbound);
after_actionsInbound: $result['actions_inbound'] = $actionsInbound;

$artifactAttestations = $object->artifactAttestations;

if ($artifactAttestations === null) {
Expand All @@ -487,6 +560,44 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
return $result;
}

private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound(mixed $object): mixed
{
assert($object instanceof ActionsInbound);
$result = [];

$fullDomains = $object->fullDomains;

if ($fullDomains === null) {
goto after_fullDomains;
}

static $fullDomainsSerializer0;

if ($fullDomainsSerializer0 === null) {
$fullDomainsSerializer0 = new SerializeArrayItems(...[]);
}

$fullDomains = $fullDomainsSerializer0->serialize($fullDomains, $this);
after_fullDomains: $result['full_domains'] = $fullDomains;

$wildcardDomains = $object->wildcardDomains;

if ($wildcardDomains === null) {
goto after_wildcardDomains;
}

static $wildcardDomainsSerializer0;

if ($wildcardDomainsSerializer0 === null) {
$wildcardDomainsSerializer0 = new SerializeArrayItems(...[]);
}

$wildcardDomains = $wildcardDomainsSerializer0->serialize($wildcardDomains, $this);
after_wildcardDomains: $result['wildcard_domains'] = $wildcardDomains;

return $result;
}

private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ArtifactAttestations(mixed $object): mixed
{
assert($object instanceof ArtifactAttestations);
Expand Down
Loading
Loading