Skip to content

Commit d9e60cf

Browse files
authored
Merge pull request #1416 from php-api-clients/GitHubEnterprise-3.13/from-1.1.4-8089ef8f95a445cc86353674bade2e6e-from-1.1.4-8089ef8f95a445cc86353674bade2e6e
2 parents 2696a4c + d17fc1c commit d9e60cf

File tree

7 files changed

+291
-42
lines changed

7 files changed

+291
-42
lines changed

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

+43-39
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "f3dffe22057364fad31701a91b023bcb",
2+
"specHash": "8089ef8f95a445cc86353674bade2e6e",
33
"generatedFiles": {
44
"files": [
55
{
@@ -13880,7 +13880,7 @@
1388013880
},
1388113881
{
1388213882
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview.php",
13883-
"hash": "39b01bd044e345fb920a0dde73e9ee94"
13883+
"hash": "629b1dbd324bc6ad4a31068bb98c35a3"
1388413884
},
1388513885
{
1388613886
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php",
@@ -17796,7 +17796,7 @@
1779617796
},
1779717797
{
1779817798
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains.php",
17799-
"hash": "e80832dfdb5bb0ea24353975f86a1e39"
17799+
"hash": "5f2716a4d3a7e9e8cd0e1a63cbcd2bbd"
1780017800
},
1780117801
{
1780217802
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ArtifactAttestations.php",
@@ -27196,139 +27196,139 @@
2719627196
},
2719727197
{
2719827198
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Meta.php",
27199-
"hash": "46865277211c9e1e0aee41a7033da759"
27199+
"hash": "41cc72ff89d01e5b48be965d9a5b63fd"
2720027200
},
2720127201
{
2720227202
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/EnterpriseAdmin.php",
27203-
"hash": "c31d519e960a48d0963b5721915ee6c2"
27203+
"hash": "3969d0c96e854589ccfd64812d38dcba"
2720427204
},
2720527205
{
2720627206
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/SecurityAdvisories.php",
27207-
"hash": "baee00bcde23b37041946c51783834c6"
27207+
"hash": "9ccc31a254636a6ee913ed3bc7c5a313"
2720827208
},
2720927209
{
2721027210
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Apps.php",
27211-
"hash": "89df2a9309368a2a16c7c3ca253ab7cd"
27211+
"hash": "bc9fcf94230dddacd81ac52504f0ce1b"
2721227212
},
2721327213
{
2721427214
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/OauthAuthorizations.php",
27215-
"hash": "071614fde2e362bc24c3ea33d03a48cc"
27215+
"hash": "10b3d7ab0928f1394efcf73f21ff3a07"
2721627216
},
2721727217
{
2721827218
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/CodesOfConduct.php",
27219-
"hash": "b07ead9603e87bce6ef65ab70c9bc368"
27219+
"hash": "cad298917ac35e117ba2e8822654d2f2"
2722027220
},
2722127221
{
2722227222
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Emojis.php",
27223-
"hash": "9b67d2c2827a05fdc730eeffef117f78"
27223+
"hash": "4f904c269bc906fbc5fd4ed4d5c04484"
2722427224
},
2722527225
{
2722627226
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Actions.php",
27227-
"hash": "77da88d55d2659c997bb459c5061c762"
27227+
"hash": "896b1f5c6516371d759abf61887a73b8"
2722827228
},
2722927229
{
2723027230
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/CodeScanning.php",
27231-
"hash": "9368f0078c830ed23510fb75e6ef076e"
27231+
"hash": "035196723d9518e17e7f016fa71af9c8"
2723227232
},
2723327233
{
2723427234
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/SecretScanning.php",
27235-
"hash": "d434ebc4738ad4b129d4cb64d1301a04"
27235+
"hash": "6039919e101b08cc4e90675c500cbff9"
2723627236
},
2723727237
{
2723827238
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Dependabot.php",
27239-
"hash": "1bdfedc45b60a6ef0bc3e32243b01ada"
27239+
"hash": "6512e1520f8d0d54c26b8b494834c097"
2724027240
},
2724127241
{
2724227242
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Billing.php",
27243-
"hash": "dbf0e15fddcc14841352c1c6fcf17c9a"
27243+
"hash": "a9b8e085d4498873d43af940caa6f27b"
2724427244
},
2724527245
{
2724627246
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Activity.php",
27247-
"hash": "c5c9ac51ac843432e6b74f2e62a3711b"
27247+
"hash": "8002e58689b586d3299f62cbee4c8051"
2724827248
},
2724927249
{
2725027250
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Gists.php",
27251-
"hash": "22c87ec8f6a04dd74cbcc815284e894e"
27251+
"hash": "dcbd654fd08e7f5e6ef821110847b33a"
2725227252
},
2725327253
{
2725427254
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Gitignore.php",
27255-
"hash": "3dfecb30b6aca9cc664307fd2dc913e2"
27255+
"hash": "51207c9cb09351bdb671405d598e7e36"
2725627256
},
2725727257
{
2725827258
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Issues.php",
27259-
"hash": "afe68411a1040d20c38f4383fc9c5c1d"
27259+
"hash": "35c64af07212fd2867cedbad7f520cbc"
2726027260
},
2726127261
{
2726227262
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Licenses.php",
27263-
"hash": "846f74a5a6018e3a3ac9419ef90370a6"
27263+
"hash": "0dc45e08d5019a8c671f44217ec39605"
2726427264
},
2726527265
{
2726627266
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Markdown.php",
27267-
"hash": "1f6b3aa228f6a2ad4d316599aad6c97f"
27267+
"hash": "1fc478dbc6bf1d600e3723e4d56acf87"
2726827268
},
2726927269
{
2727027270
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Orgs.php",
27271-
"hash": "23d3ac9358ae28e7ecc72b0418bdacf9"
27271+
"hash": "89bc5151a6f54646a603d68e7543e300"
2727227272
},
2727327273
{
2727427274
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Oidc.php",
27275-
"hash": "8b866439473c956e4b828d1e5f547db1"
27275+
"hash": "a30a62a2fc13921312cee49a6c771816"
2727627276
},
2727727277
{
2727827278
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/AnnouncementBanners.php",
27279-
"hash": "507661bccd3b474178a112af7f7a44da"
27279+
"hash": "6745d13871b53ebb63ec0c9fb7899c97"
2728027280
},
2728127281
{
2728227282
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Packages.php",
27283-
"hash": "eb4d11edecd55f3cef29ec2653112f52"
27283+
"hash": "337c6101216c73dac1eccb57f9f2631a"
2728427284
},
2728527285
{
2728627286
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Teams.php",
27287-
"hash": "5006075565b377a5180a6e26579e2b4d"
27287+
"hash": "dd98e69260d21de08925655d6b23783c"
2728827288
},
2728927289
{
2729027290
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Migrations.php",
27291-
"hash": "e5867e26378c1b9c61245fb0274e7567"
27291+
"hash": "75a9dbc00a423613f7044841829c282f"
2729227292
},
2729327293
{
2729427294
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Projects.php",
27295-
"hash": "b723e82951da9e446bf946fdf277ae9c"
27295+
"hash": "3e90e269db0fc92da9a346cd31875516"
2729627296
},
2729727297
{
2729827298
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Repos.php",
27299-
"hash": "6d1ad2abe1538a08231307966a9746c0"
27299+
"hash": "fa31729c0d7493ebd8f3c4f8d386e51b"
2730027300
},
2730127301
{
2730227302
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Reactions.php",
27303-
"hash": "120235c3d73c33758ea7bd67bb722ca6"
27303+
"hash": "61228303c2b949e0b77147ce8af75cdd"
2730427304
},
2730527305
{
2730627306
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/RateLimit.php",
27307-
"hash": "0d5e64b4bfd41075eb64e48fb8b68b2b"
27307+
"hash": "c8267af41635f3f2fa1288a40252a085"
2730827308
},
2730927309
{
2731027310
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Checks.php",
27311-
"hash": "5e6e85e8876b3bc0b4a5bc6411a3b989"
27311+
"hash": "2a98475dae061d86e6f9a9df81f151f2"
2731227312
},
2731327313
{
2731427314
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/DependencyGraph.php",
27315-
"hash": "b0c5a91de59ea1f5367354dfd659ef57"
27315+
"hash": "a638452f9411a0fc738141835c32327d"
2731627316
},
2731727317
{
2731827318
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Git.php",
27319-
"hash": "3ceae1707b9acbb9b0c7008067fabf13"
27319+
"hash": "5a443aa23db0a8a7c61bc7e8989408f2"
2732027320
},
2732127321
{
2732227322
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Pulls.php",
27323-
"hash": "745ecf71dd604c48a85a491c15aec872"
27323+
"hash": "32674ccd8390448362aa20c4836e7d52"
2732427324
},
2732527325
{
2732627326
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Search.php",
27327-
"hash": "f104c650e8fb9d12812d39bd7c300db5"
27327+
"hash": "f575d503a83922ab6cd69e189613b87d"
2732827328
},
2732927329
{
2733027330
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Operation\/Users.php",
27331-
"hash": "b88b65fed7be6c123f00e6a373f1dd14"
27331+
"hash": "455cf91f4c82dccfc1a89c557ec31af3"
2733227332
},
2733327333
{
2733427334
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Operators.php",
@@ -28028,7 +28028,7 @@
2802828028
},
2802928029
{
2803028030
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Meta.php",
28031-
"hash": "314f4fc0d60e4ddf045b9d2e56231ed3"
28031+
"hash": "b6be5926b354e7d0337ff22e6a1a3f0b"
2803228032
},
2803328033
{
2803428034
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Networks\/Owner\/Repo\/Events.php",
@@ -29964,7 +29964,11 @@
2996429964
},
2996529965
{
2996629966
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
29967-
"hash": "99e19adce3c5a1a1d8498fc3165a425e"
29967+
"hash": "a80554fdc52f4357f7577e6a10c8b69d"
29968+
},
29969+
{
29970+
"name": ".\/clients\/GitHubEnterprise-3.13\/etc\/..\/\/src\/\/Schema\/ApiOverview\/Domains\/ActionsInbound.php",
29971+
"hash": "9961e5081556c929c54d6f03962dba7f"
2996829972
}
2996929973
]
2997029974
},

clients/GitHubEnterprise-3.13/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)