Skip to content

[GitHubEnterprise-3.14] Update to 1.1.4-e9e561609727200e583d8b0b8e5feeb1 from 1.1.4-15f794337a26277abf54b138881ec64f #1417

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
82 changes: 43 additions & 39 deletions clients/GitHubEnterprise-3.14/etc/openapi-client-generator.state
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"specHash": "15f794337a26277abf54b138881ec64f",
"specHash": "e9e561609727200e583d8b0b8e5feeb1",
"generatedFiles": {
"files": [
{
Expand Down Expand Up @@ -14044,7 +14044,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/ApiOverview.php",
"hash": "c57a07238d7584c82effee8254c900d7"
"hash": "8eede6fa1055fef8f20892db9438a7ea"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php",
Expand Down Expand Up @@ -18052,7 +18052,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains.php",
"hash": "e80832dfdb5bb0ea24353975f86a1e39"
"hash": "5f2716a4d3a7e9e8cd0e1a63cbcd2bbd"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ArtifactAttestations.php",
Expand Down Expand Up @@ -27492,139 +27492,139 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Meta.php",
"hash": "46865277211c9e1e0aee41a7033da759"
"hash": "41cc72ff89d01e5b48be965d9a5b63fd"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
"hash": "c31d519e960a48d0963b5721915ee6c2"
"hash": "3969d0c96e854589ccfd64812d38dcba"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
"hash": "baee00bcde23b37041946c51783834c6"
"hash": "9ccc31a254636a6ee913ed3bc7c5a313"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Apps.php",
"hash": "89df2a9309368a2a16c7c3ca253ab7cd"
"hash": "bc9fcf94230dddacd81ac52504f0ce1b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations.php",
"hash": "071614fde2e362bc24c3ea33d03a48cc"
"hash": "10b3d7ab0928f1394efcf73f21ff3a07"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/CodesOfConduct.php",
"hash": "b07ead9603e87bce6ef65ab70c9bc368"
"hash": "cad298917ac35e117ba2e8822654d2f2"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Emojis.php",
"hash": "9b67d2c2827a05fdc730eeffef117f78"
"hash": "4f904c269bc906fbc5fd4ed4d5c04484"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Actions.php",
"hash": "77da88d55d2659c997bb459c5061c762"
"hash": "896b1f5c6516371d759abf61887a73b8"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
"hash": "9368f0078c830ed23510fb75e6ef076e"
"hash": "035196723d9518e17e7f016fa71af9c8"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/SecretScanning.php",
"hash": "d434ebc4738ad4b129d4cb64d1301a04"
"hash": "6039919e101b08cc4e90675c500cbff9"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Dependabot.php",
"hash": "1bdfedc45b60a6ef0bc3e32243b01ada"
"hash": "6512e1520f8d0d54c26b8b494834c097"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Billing.php",
"hash": "dbf0e15fddcc14841352c1c6fcf17c9a"
"hash": "a9b8e085d4498873d43af940caa6f27b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Activity.php",
"hash": "c5c9ac51ac843432e6b74f2e62a3711b"
"hash": "8002e58689b586d3299f62cbee4c8051"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Gists.php",
"hash": "22c87ec8f6a04dd74cbcc815284e894e"
"hash": "dcbd654fd08e7f5e6ef821110847b33a"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Gitignore.php",
"hash": "3dfecb30b6aca9cc664307fd2dc913e2"
"hash": "51207c9cb09351bdb671405d598e7e36"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Issues.php",
"hash": "afe68411a1040d20c38f4383fc9c5c1d"
"hash": "35c64af07212fd2867cedbad7f520cbc"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Licenses.php",
"hash": "846f74a5a6018e3a3ac9419ef90370a6"
"hash": "0dc45e08d5019a8c671f44217ec39605"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Markdown.php",
"hash": "1f6b3aa228f6a2ad4d316599aad6c97f"
"hash": "1fc478dbc6bf1d600e3723e4d56acf87"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Orgs.php",
"hash": "2452df8aac80845be3d4ed8aad976f2c"
"hash": "fdc3b3f56cbdb20a22e742684b62055c"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Oidc.php",
"hash": "8b866439473c956e4b828d1e5f547db1"
"hash": "a30a62a2fc13921312cee49a6c771816"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/AnnouncementBanners.php",
"hash": "507661bccd3b474178a112af7f7a44da"
"hash": "6745d13871b53ebb63ec0c9fb7899c97"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Packages.php",
"hash": "eb4d11edecd55f3cef29ec2653112f52"
"hash": "337c6101216c73dac1eccb57f9f2631a"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Teams.php",
"hash": "5006075565b377a5180a6e26579e2b4d"
"hash": "dd98e69260d21de08925655d6b23783c"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Migrations.php",
"hash": "e5867e26378c1b9c61245fb0274e7567"
"hash": "75a9dbc00a423613f7044841829c282f"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Projects.php",
"hash": "b723e82951da9e446bf946fdf277ae9c"
"hash": "3e90e269db0fc92da9a346cd31875516"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Repos.php",
"hash": "c25281d487a9f1a2f979453917e5f3ec"
"hash": "073fa34b76ee31b9071d3a8f64a5b6bc"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Reactions.php",
"hash": "120235c3d73c33758ea7bd67bb722ca6"
"hash": "61228303c2b949e0b77147ce8af75cdd"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/RateLimit.php",
"hash": "0d5e64b4bfd41075eb64e48fb8b68b2b"
"hash": "c8267af41635f3f2fa1288a40252a085"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Checks.php",
"hash": "5e6e85e8876b3bc0b4a5bc6411a3b989"
"hash": "2a98475dae061d86e6f9a9df81f151f2"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/DependencyGraph.php",
"hash": "b0c5a91de59ea1f5367354dfd659ef57"
"hash": "a638452f9411a0fc738141835c32327d"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Git.php",
"hash": "3ceae1707b9acbb9b0c7008067fabf13"
"hash": "5a443aa23db0a8a7c61bc7e8989408f2"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Pulls.php",
"hash": "745ecf71dd604c48a85a491c15aec872"
"hash": "32674ccd8390448362aa20c4836e7d52"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Search.php",
"hash": "f104c650e8fb9d12812d39bd7c300db5"
"hash": "f575d503a83922ab6cd69e189613b87d"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Users.php",
"hash": "b88b65fed7be6c123f00e6a373f1dd14"
"hash": "455cf91f4c82dccfc1a89c557ec31af3"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operators.php",
Expand Down Expand Up @@ -28328,7 +28328,7 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Meta.php",
"hash": "314f4fc0d60e4ddf045b9d2e56231ed3"
"hash": "b6be5926b354e7d0337ff22e6a1a3f0b"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Networks\/Owner\/Repo\/Events.php",
Expand Down Expand Up @@ -30280,7 +30280,11 @@
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
"hash": "9f2b918ffea9dc7c79ef9ea73b3ce665"
"hash": "252e30a5170965571e9b49245ad836c7"
},
{
"name": ".\/clients\/GitHubEnterprise-3.14\/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