Skip to content

Commit eecdfe7

Browse files
authored
Merge pull request #1418 from php-api-clients/GitHubEnterprise-3.15/from-1.1.4-461f97fcd984db4523b5ea3d4c13bdc9-from-1.1.4-461f97fcd984db4523b5ea3d4c13bdc9
2 parents aade9b0 + 1515fd0 commit eecdfe7

File tree

7 files changed

+292
-43
lines changed

7 files changed

+292
-43
lines changed

clients/GitHubEnterprise-3.15/etc/openapi-client-generator.state

+44-40
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "f994914a014deb77ece836279f42b93e",
2+
"specHash": "461f97fcd984db4523b5ea3d4c13bdc9",
33
"generatedFiles": {
44
"files": [
55
{
@@ -14072,7 +14072,7 @@
1407214072
},
1407314073
{
1407414074
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview.php",
14075-
"hash": "3d1c62360a516919985dde9aca96af79"
14075+
"hash": "f4b0a81797fc5c5b4dba345b07cda9cf"
1407614076
},
1407714077
{
1407814078
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php",
@@ -17976,7 +17976,7 @@
1797617976
},
1797717977
{
1797817978
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains.php",
17979-
"hash": "e80832dfdb5bb0ea24353975f86a1e39"
17979+
"hash": "5f2716a4d3a7e9e8cd0e1a63cbcd2bbd"
1798017980
},
1798117981
{
1798217982
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ArtifactAttestations.php",
@@ -27472,143 +27472,143 @@
2747227472
},
2747327473
{
2747427474
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Meta.php",
27475-
"hash": "46865277211c9e1e0aee41a7033da759"
27475+
"hash": "41cc72ff89d01e5b48be965d9a5b63fd"
2747627476
},
2747727477
{
2747827478
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
27479-
"hash": "efed108ce127576e7d3b82eeae777ca3"
27479+
"hash": "c41e1e5ed253f0c166d3e55aeb3f84e0"
2748027480
},
2748127481
{
2748227482
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
27483-
"hash": "baee00bcde23b37041946c51783834c6"
27483+
"hash": "9ccc31a254636a6ee913ed3bc7c5a313"
2748427484
},
2748527485
{
2748627486
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Apps.php",
27487-
"hash": "89df2a9309368a2a16c7c3ca253ab7cd"
27487+
"hash": "bc9fcf94230dddacd81ac52504f0ce1b"
2748827488
},
2748927489
{
2749027490
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations.php",
27491-
"hash": "071614fde2e362bc24c3ea33d03a48cc"
27491+
"hash": "10b3d7ab0928f1394efcf73f21ff3a07"
2749227492
},
2749327493
{
2749427494
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/CodesOfConduct.php",
27495-
"hash": "b07ead9603e87bce6ef65ab70c9bc368"
27495+
"hash": "cad298917ac35e117ba2e8822654d2f2"
2749627496
},
2749727497
{
2749827498
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Emojis.php",
27499-
"hash": "9b67d2c2827a05fdc730eeffef117f78"
27499+
"hash": "4f904c269bc906fbc5fd4ed4d5c04484"
2750027500
},
2750127501
{
2750227502
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Actions.php",
27503-
"hash": "77da88d55d2659c997bb459c5061c762"
27503+
"hash": "896b1f5c6516371d759abf61887a73b8"
2750427504
},
2750527505
{
2750627506
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
27507-
"hash": "9368f0078c830ed23510fb75e6ef076e"
27507+
"hash": "035196723d9518e17e7f016fa71af9c8"
2750827508
},
2750927509
{
2751027510
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/SecretScanning.php",
27511-
"hash": "0715e58d0181f36fa31d063331799511"
27511+
"hash": "75160b9f5f6f722926af37274c9fa6a9"
2751227512
},
2751327513
{
2751427514
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Dependabot.php",
27515-
"hash": "1bdfedc45b60a6ef0bc3e32243b01ada"
27515+
"hash": "6512e1520f8d0d54c26b8b494834c097"
2751627516
},
2751727517
{
2751827518
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Billing.php",
27519-
"hash": "dbf0e15fddcc14841352c1c6fcf17c9a"
27519+
"hash": "a9b8e085d4498873d43af940caa6f27b"
2752027520
},
2752127521
{
2752227522
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Activity.php",
27523-
"hash": "c5c9ac51ac843432e6b74f2e62a3711b"
27523+
"hash": "8002e58689b586d3299f62cbee4c8051"
2752427524
},
2752527525
{
2752627526
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Gists.php",
27527-
"hash": "22c87ec8f6a04dd74cbcc815284e894e"
27527+
"hash": "dcbd654fd08e7f5e6ef821110847b33a"
2752827528
},
2752927529
{
2753027530
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Gitignore.php",
27531-
"hash": "3dfecb30b6aca9cc664307fd2dc913e2"
27531+
"hash": "51207c9cb09351bdb671405d598e7e36"
2753227532
},
2753327533
{
2753427534
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Issues.php",
27535-
"hash": "afe68411a1040d20c38f4383fc9c5c1d"
27535+
"hash": "35c64af07212fd2867cedbad7f520cbc"
2753627536
},
2753727537
{
2753827538
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Licenses.php",
27539-
"hash": "846f74a5a6018e3a3ac9419ef90370a6"
27539+
"hash": "0dc45e08d5019a8c671f44217ec39605"
2754027540
},
2754127541
{
2754227542
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Markdown.php",
27543-
"hash": "1f6b3aa228f6a2ad4d316599aad6c97f"
27543+
"hash": "1fc478dbc6bf1d600e3723e4d56acf87"
2754427544
},
2754527545
{
2754627546
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Orgs.php",
27547-
"hash": "2452df8aac80845be3d4ed8aad976f2c"
27547+
"hash": "fdc3b3f56cbdb20a22e742684b62055c"
2754827548
},
2754927549
{
2755027550
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Oidc.php",
27551-
"hash": "8b866439473c956e4b828d1e5f547db1"
27551+
"hash": "a30a62a2fc13921312cee49a6c771816"
2755227552
},
2755327553
{
2755427554
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/AnnouncementBanners.php",
27555-
"hash": "507661bccd3b474178a112af7f7a44da"
27555+
"hash": "6745d13871b53ebb63ec0c9fb7899c97"
2755627556
},
2755727557
{
2755827558
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
27559-
"hash": "bd868d58d6560aa31d4342b7d8140310"
27559+
"hash": "2c635398b70e785a0aa772ddfbbacffe"
2756027560
},
2756127561
{
2756227562
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Packages.php",
27563-
"hash": "eb4d11edecd55f3cef29ec2653112f52"
27563+
"hash": "337c6101216c73dac1eccb57f9f2631a"
2756427564
},
2756527565
{
2756627566
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Teams.php",
27567-
"hash": "5006075565b377a5180a6e26579e2b4d"
27567+
"hash": "dd98e69260d21de08925655d6b23783c"
2756827568
},
2756927569
{
2757027570
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Migrations.php",
27571-
"hash": "e5867e26378c1b9c61245fb0274e7567"
27571+
"hash": "75a9dbc00a423613f7044841829c282f"
2757227572
},
2757327573
{
2757427574
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Projects.php",
27575-
"hash": "b723e82951da9e446bf946fdf277ae9c"
27575+
"hash": "3e90e269db0fc92da9a346cd31875516"
2757627576
},
2757727577
{
2757827578
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Repos.php",
27579-
"hash": "0019017c599240127041d6dc5d882f7d"
27579+
"hash": "c6e8e0222a9f3e2e04fc791ab05112e7"
2758027580
},
2758127581
{
2758227582
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Reactions.php",
27583-
"hash": "120235c3d73c33758ea7bd67bb722ca6"
27583+
"hash": "61228303c2b949e0b77147ce8af75cdd"
2758427584
},
2758527585
{
2758627586
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/RateLimit.php",
27587-
"hash": "0d5e64b4bfd41075eb64e48fb8b68b2b"
27587+
"hash": "c8267af41635f3f2fa1288a40252a085"
2758827588
},
2758927589
{
2759027590
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Checks.php",
27591-
"hash": "5e6e85e8876b3bc0b4a5bc6411a3b989"
27591+
"hash": "2a98475dae061d86e6f9a9df81f151f2"
2759227592
},
2759327593
{
2759427594
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/DependencyGraph.php",
27595-
"hash": "b0c5a91de59ea1f5367354dfd659ef57"
27595+
"hash": "a638452f9411a0fc738141835c32327d"
2759627596
},
2759727597
{
2759827598
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Git.php",
27599-
"hash": "3ceae1707b9acbb9b0c7008067fabf13"
27599+
"hash": "5a443aa23db0a8a7c61bc7e8989408f2"
2760027600
},
2760127601
{
2760227602
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Pulls.php",
27603-
"hash": "745ecf71dd604c48a85a491c15aec872"
27603+
"hash": "32674ccd8390448362aa20c4836e7d52"
2760427604
},
2760527605
{
2760627606
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Search.php",
27607-
"hash": "f104c650e8fb9d12812d39bd7c300db5"
27607+
"hash": "f575d503a83922ab6cd69e189613b87d"
2760827608
},
2760927609
{
2761027610
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Users.php",
27611-
"hash": "b88b65fed7be6c123f00e6a373f1dd14"
27611+
"hash": "455cf91f4c82dccfc1a89c557ec31af3"
2761227612
},
2761327613
{
2761427614
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operators.php",
@@ -28312,7 +28312,7 @@
2831228312
},
2831328313
{
2831428314
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Meta.php",
28315-
"hash": "314f4fc0d60e4ddf045b9d2e56231ed3"
28315+
"hash": "b6be5926b354e7d0337ff22e6a1a3f0b"
2831628316
},
2831728317
{
2831828318
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Networks\/Owner\/Repo\/Events.php",
@@ -30288,7 +30288,11 @@
3028830288
},
3028930289
{
3029030290
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
30291-
"hash": "90a7c451a8167fde41f01b8bce98f3cc"
30291+
"hash": "7679f4d4a16985f2c7bc46c968262ca2"
30292+
},
30293+
{
30294+
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php",
30295+
"hash": "9961e5081556c929c54d6f03962dba7f"
3029230296
}
3029330297
]
3029430298
},

clients/GitHubEnterprise-3.15/src/Internal/Hydrator/Operation/Meta.php

+111
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
use ApiClients\Client\GitHubEnterprise\Schema\ApiOverview;
88
use ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains;
9+
use ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound;
910
use ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ArtifactAttestations;
1011
use EventSauce\ObjectHydrator\IterableList;
1112
use EventSauce\ObjectHydrator\ObjectMapper;
@@ -44,6 +45,7 @@ public function hydrateObject(string $className, array $payload): object
4445
return match ($className) {
4546
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview($payload),
4647
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains($payload),
48+
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound($payload),
4749
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ArtifactAttestations' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ArtifactAttestations($payload),
4850
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
4951
};
@@ -181,6 +183,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
181183

182184
after_actions:
183185

186+
$value = $payload['actions_inbound'] ?? null;
187+
188+
if ($value === null) {
189+
$properties['actionsInbound'] = null;
190+
goto after_actionsInbound;
191+
}
192+
193+
if (is_array($value)) {
194+
try {
195+
$this->hydrationStack[] = 'actionsInbound';
196+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound($value);
197+
} finally {
198+
array_pop($this->hydrationStack);
199+
}
200+
}
201+
202+
$properties['actionsInbound'] = $value;
203+
204+
after_actionsInbound:
205+
184206
$value = $payload['artifact_attestations'] ?? null;
185207

186208
if ($value === null) {
@@ -215,6 +237,47 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
215237
}
216238
}
217239

240+
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound(array $payload): ActionsInbound
241+
{
242+
$properties = [];
243+
$missingFields = [];
244+
try {
245+
$value = $payload['full_domains'] ?? null;
246+
247+
if ($value === null) {
248+
$properties['fullDomains'] = null;
249+
goto after_fullDomains;
250+
}
251+
252+
$properties['fullDomains'] = $value;
253+
254+
after_fullDomains:
255+
256+
$value = $payload['wildcard_domains'] ?? null;
257+
258+
if ($value === null) {
259+
$properties['wildcardDomains'] = null;
260+
goto after_wildcardDomains;
261+
}
262+
263+
$properties['wildcardDomains'] = $value;
264+
265+
after_wildcardDomains:
266+
} catch (Throwable $exception) {
267+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound', $exception, stack: $this->hydrationStack);
268+
}
269+
270+
if (count($missingFields) > 0) {
271+
throw UnableToHydrateObject::dueToMissingFields(ActionsInbound::class, $missingFields, stack: $this->hydrationStack);
272+
}
273+
274+
try {
275+
return new ActionsInbound(...$properties);
276+
} catch (Throwable $exception) {
277+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound', $exception, stack: $this->hydrationStack);
278+
}
279+
}
280+
218281
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ArtifactAttestations(array $payload): ArtifactAttestations
219282
{
220283
$properties = [];
@@ -289,6 +352,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
289352
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
290353
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview($object),
291354
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains($object),
355+
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ActionsInbound' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound($object),
292356
'ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains\ArtifactAttestations' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ArtifactAttestations($object),
293357
default => throw new LogicException("No serialization defined for $className"),
294358
};
@@ -475,6 +539,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
475539
$actions = $actionsSerializer0->serialize($actions, $this);
476540
after_actions: $result['actions'] = $actions;
477541

542+
$actionsInbound = $object->actionsInbound;
543+
544+
if ($actionsInbound === null) {
545+
goto after_actionsInbound;
546+
}
547+
548+
$actionsInbound = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound($actionsInbound);
549+
after_actionsInbound: $result['actions_inbound'] = $actionsInbound;
550+
478551
$artifactAttestations = $object->artifactAttestations;
479552

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

563+
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ActionsInbound(mixed $object): mixed
564+
{
565+
assert($object instanceof ActionsInbound);
566+
$result = [];
567+
568+
$fullDomains = $object->fullDomains;
569+
570+
if ($fullDomains === null) {
571+
goto after_fullDomains;
572+
}
573+
574+
static $fullDomainsSerializer0;
575+
576+
if ($fullDomainsSerializer0 === null) {
577+
$fullDomainsSerializer0 = new SerializeArrayItems(...[]);
578+
}
579+
580+
$fullDomains = $fullDomainsSerializer0->serialize($fullDomains, $this);
581+
after_fullDomains: $result['full_domains'] = $fullDomains;
582+
583+
$wildcardDomains = $object->wildcardDomains;
584+
585+
if ($wildcardDomains === null) {
586+
goto after_wildcardDomains;
587+
}
588+
589+
static $wildcardDomainsSerializer0;
590+
591+
if ($wildcardDomainsSerializer0 === null) {
592+
$wildcardDomainsSerializer0 = new SerializeArrayItems(...[]);
593+
}
594+
595+
$wildcardDomains = $wildcardDomainsSerializer0->serialize($wildcardDomains, $this);
596+
after_wildcardDomains: $result['wildcard_domains'] = $wildcardDomains;
597+
598+
return $result;
599+
}
600+
490601
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️ApiOverview⚡️Domains⚡️ArtifactAttestations(mixed $object): mixed
491602
{
492603
assert($object instanceof ArtifactAttestations);

0 commit comments

Comments
 (0)