Skip to content

Commit d11d399

Browse files
authored
Merge pull request #1354 from php-api-clients/GitHub/from-1.1.4-7714c88ff6c09a4c649c225f5b2ccf5c-from-1.1.4-7714c88ff6c09a4c649c225f5b2ccf5c
2 parents f8592fa + d10d729 commit d11d399

25 files changed

+2826
-37
lines changed

clients/GitHub/etc/openapi-client-generator.state

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "736baa369515112b9bfb0e87033d2fcb",
2+
"specHash": "7714c88ff6c09a4c649c225f5b2ccf5c",
33
"generatedFiles": {
44
"files": [
55
{
@@ -176,7 +176,7 @@
176176
},
177177
{
178178
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSecretScanningAlert.php",
179-
"hash": "a1dcc0a44452ab6fad5737d43ba39842"
179+
"hash": "386b37888cd98a3d5b7c662a13f4791f"
180180
},
181181
{
182182
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actor.php",
@@ -1328,7 +1328,7 @@
13281328
},
13291329
{
13301330
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlert.php",
1331-
"hash": "899ec278f99c532b143ee96145f5c9b3"
1331+
"hash": "348589b94872ff7644e761e8f06af89f"
13321332
},
13331333
{
13341334
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertResolutionComment.php",
@@ -2380,23 +2380,23 @@
23802380
},
23812381
{
23822382
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertCreated.php",
2383-
"hash": "e770c61ba3cd2bae71c8de2303438007"
2383+
"hash": "43c26624427251630964c804be9e6f56"
23842384
},
23852385
{
23862386
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreated.php",
2387-
"hash": "1639af1d6203d150f0a35175568c3a1b"
2387+
"hash": "3b3dc9976f6194aa462e67637e8f0948"
23882388
},
23892389
{
23902390
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreatedFormEncoded.php",
23912391
"hash": "17d7507311a5c4dbf9b47815091b9d1a"
23922392
},
23932393
{
23942394
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertReopened.php",
2395-
"hash": "5d19dc504f0416e3995dfd8ef831e4f0"
2395+
"hash": "2997a7cef6ddb159c1ccf72ad8163295"
23962396
},
23972397
{
23982398
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertResolved.php",
2399-
"hash": "0375b023e27b047c1d78f8e6c2f20435"
2399+
"hash": "18e4a8365529d37aa687fdb7d77b4720"
24002400
},
24012401
{
24022402
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryPublished.php",
@@ -11640,7 +11640,7 @@
1164011640
},
1164111641
{
1164211642
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertWebhook.php",
11643-
"hash": "fe0d103a81a472983ff13d4cae420c93"
11643+
"hash": "f9f8eb773139be21112db032ab451a54"
1164411644
},
1164511645
{
1164611646
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet649F32EB\/TietC13659D6\/Tiet0B408A31\/TietF85C8E0E.php",
@@ -26580,7 +26580,7 @@
2658026580
},
2658126581
{
2658226582
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber.php",
26583-
"hash": "ac1c7ca4e1ae4a851dd800efea469f4a"
26583+
"hash": "cfe07a6012b5e29f1e93599e174a92ec"
2658426584
},
2658526585
{
2658626586
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber\/Locations.php",
@@ -27520,7 +27520,7 @@
2752027520
},
2752127521
{
2752227522
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperties\/Request\/ApplicationJson.php",
27523-
"hash": "fcb295de0733f13a315c82975d0ff0c2"
27523+
"hash": "a356ad5dc76d7a79fe57d9012328096c"
2752427524
},
2752527525
{
2752627526
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperty\/Request\/ApplicationJson.php",
@@ -27536,7 +27536,7 @@
2753627536
},
2753727537
{
2753827538
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Properties\/Schema\/CustomPropertyName.php",
27539-
"hash": "c94db273967ae7b315148f77805720d2"
27539+
"hash": "0558f430b582d0caa403c714b18a62ef"
2754027540
},
2754127541
{
2754227542
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Properties\/Values.php",
@@ -27548,15 +27548,15 @@
2754827548
},
2754927549
{
2755027550
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php",
27551-
"hash": "89e712c9fe306ac63ced73f498507fad"
27551+
"hash": "7554977360c7997c4d90ab091ca1200e"
2755227552
},
2755327553
{
2755427554
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php",
2755527555
"hash": "5444f59eaba83f0fbd8ec471a5db398e"
2755627556
},
2755727557
{
2755827558
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php",
27559-
"hash": "0b33151d738be949b5980fcf2110bd3c"
27559+
"hash": "c47f012f7e0eb0de2fc68cc18b2350d3"
2756027560
},
2756127561
{
2756227562
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php",
@@ -27964,7 +27964,7 @@
2796427964
},
2796527965
{
2796627966
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php",
27967-
"hash": "bc2cd6414bc89bd27e977edabb216bf0"
27967+
"hash": "3c29e7bb6806ab4516aa54f228c67c1e"
2796827968
},
2796927969
{
2797027970
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php",
@@ -28168,11 +28168,11 @@
2816828168
},
2816928169
{
2817028170
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlert.php",
28171-
"hash": "41031e90d7d3dd3dd46701768db730dc"
28171+
"hash": "c2568564ede71126cad1740b3f0bebc0"
2817228172
},
2817328173
{
2817428174
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlertLocation.php",
28175-
"hash": "c33a0cfe0907566dd9167c557efe208f"
28175+
"hash": "9e856f413319efb8355beee2a0904e16"
2817628176
},
2817728177
{
2817828178
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAdvisory.php",
@@ -28344,19 +28344,19 @@
2834428344
},
2834528345
{
2834628346
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationRole.php",
28347-
"hash": "40d87224b207990f3aa120bbec4598c0"
28347+
"hash": "16ab02bd02f8300f33e907a5f82fa658"
2834828348
},
2834928349
{
2835028350
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListOrgRoles\/Response\/ApplicationJson\/Ok.php",
28351-
"hash": "8b5a1dd95c1ea54ffba3a89f7bd6083f"
28351+
"hash": "fbda0b34354dfade04cf1d2c035abec6"
2835228352
},
2835328353
{
2835428354
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/OrganizationRoles.php",
2835528355
"hash": "72769e87f0e4fa9450ca93b3a8a00c80"
2835628356
},
2835728357
{
2835828358
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/OrganizationRoles\/RoleId.php",
28359-
"hash": "2bb0b95323a192616b1123eef3f13262"
28359+
"hash": "5c2414d05ee6a2f3cd31be268970e4d7"
2836028360
},
2836128361
{
2836228362
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/SecurityAdvisories\/CreateFork.php",
@@ -28464,7 +28464,7 @@
2846428464
},
2846528465
{
2846628466
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertValidated.php",
28467-
"hash": "b2b401a66cdb2f6ff46c524ac8d31f86"
28467+
"hash": "e8d1522701abf91943c343ff988121f3"
2846828468
},
2846928469
{
2847028470
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pages\/Deployments.php",
@@ -29432,11 +29432,11 @@
2943229432
},
2943329433
{
2943429434
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/TeamRoleAssignment.php",
29435-
"hash": "3894b060697253081cbcafe9e322e237"
29435+
"hash": "15b25bdaa95891a560087777f3c7c2d7"
2943629436
},
2943729437
{
2943829438
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/UserRoleAssignment.php",
29439-
"hash": "e416753340bfc0688094d55c8f8b225d"
29439+
"hash": "7c1c6eaaf6d880168e7978e794fb5682"
2944029440
},
2944129441
{
2944229442
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ProjectsV2SingleSelectOption.php",
@@ -30080,7 +30080,7 @@
3008030080
},
3008130081
{
3008230082
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CustomProperty.php",
30083-
"hash": "61c40f244c85c1f01567e8d0b7d6f8b0"
30083+
"hash": "12c68f4bc209122d4667d6560928f581"
3008430084
},
3008530085
{
3008630086
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/SecretScanningPushProtectionBypassReason.php",
@@ -30464,7 +30464,7 @@
3046430464
},
3046530465
{
3046630466
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertPubliclyLeaked.php",
30467-
"hash": "3fbcfa11f564b604e2da1cb764643614"
30467+
"hash": "3f71effbea1adf3ff8e5e0acdd960c0b"
3046830468
},
3046930469
{
3047030470
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet840A0FDF\/Tiet2788886F\/Tiet3E288C76\/Tiet836AAE9A.php",

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/OrganizationRoles/RoleId.php

+38
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,28 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Orga
8989

9090
after_description:
9191

92+
$value = $payload['base_role'] ?? null;
93+
94+
if ($value === null) {
95+
$properties['baseRole'] = null;
96+
goto after_baseRole;
97+
}
98+
99+
$properties['baseRole'] = $value;
100+
101+
after_baseRole:
102+
103+
$value = $payload['source'] ?? null;
104+
105+
if ($value === null) {
106+
$properties['source'] = null;
107+
goto after_source;
108+
}
109+
110+
$properties['source'] = $value;
111+
112+
after_source:
113+
92114
$value = $payload['permissions'] ?? null;
93115

94116
if ($value === null) {
@@ -648,6 +670,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
648670

649671
after_description: $result['description'] = $description;
650672

673+
$baseRole = $object->baseRole;
674+
675+
if ($baseRole === null) {
676+
goto after_baseRole;
677+
}
678+
679+
after_baseRole: $result['base_role'] = $baseRole;
680+
681+
$source = $object->source;
682+
683+
if ($source === null) {
684+
goto after_source;
685+
}
686+
687+
after_source: $result['source'] = $source;
688+
651689
$permissions = $object->permissions;
652690
static $permissionsSerializer0;
653691

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Properties/Schema/CustomPropertyName.php

+19
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cust
7272

7373
after_url:
7474

75+
$value = $payload['source_type'] ?? null;
76+
77+
if ($value === null) {
78+
$properties['sourceType'] = null;
79+
goto after_sourceType;
80+
}
81+
82+
$properties['sourceType'] = $value;
83+
84+
after_sourceType:
85+
7586
$value = $payload['value_type'] ?? null;
7687

7788
if ($value === null) {
@@ -326,6 +337,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
326337

327338
after_url: $result['url'] = $url;
328339

340+
$sourceType = $object->sourceType;
341+
342+
if ($sourceType === null) {
343+
goto after_sourceType;
344+
}
345+
346+
after_sourceType: $result['source_type'] = $sourceType;
347+
329348
$valueType = $object->valueType;
330349
after_valueType: $result['value_type'] = $valueType;
331350

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecretScanning/Alerts/AlertNumber.php

+67
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,48 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Secr
259259

260260
after_pushProtectionBypassedAt:
261261

262+
$value = $payload['push_protection_bypass_request_reviewer'] ?? null;
263+
264+
if ($value === null) {
265+
$properties['pushProtectionBypassRequestReviewer'] = null;
266+
goto after_pushProtectionBypassRequestReviewer;
267+
}
268+
269+
if (is_array($value)) {
270+
try {
271+
$this->hydrationStack[] = 'pushProtectionBypassRequestReviewer';
272+
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($value);
273+
} finally {
274+
array_pop($this->hydrationStack);
275+
}
276+
}
277+
278+
$properties['pushProtectionBypassRequestReviewer'] = $value;
279+
280+
after_pushProtectionBypassRequestReviewer:
281+
282+
$value = $payload['push_protection_bypass_request_comment'] ?? null;
283+
284+
if ($value === null) {
285+
$properties['pushProtectionBypassRequestComment'] = null;
286+
goto after_pushProtectionBypassRequestComment;
287+
}
288+
289+
$properties['pushProtectionBypassRequestComment'] = $value;
290+
291+
after_pushProtectionBypassRequestComment:
292+
293+
$value = $payload['push_protection_bypass_request_html_url'] ?? null;
294+
295+
if ($value === null) {
296+
$properties['pushProtectionBypassRequestHtmlUrl'] = null;
297+
goto after_pushProtectionBypassRequestHtmlUrl;
298+
}
299+
300+
$properties['pushProtectionBypassRequestHtmlUrl'] = $value;
301+
302+
after_pushProtectionBypassRequestHtmlUrl:
303+
262304
$value = $payload['validity'] ?? null;
263305

264306
if ($value === null) {
@@ -858,6 +900,31 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
858900

859901
after_pushProtectionBypassedAt: $result['push_protection_bypassed_at'] = $pushProtectionBypassedAt;
860902

903+
$pushProtectionBypassRequestReviewer = $object->pushProtectionBypassRequestReviewer;
904+
905+
if ($pushProtectionBypassRequestReviewer === null) {
906+
goto after_pushProtectionBypassRequestReviewer;
907+
}
908+
909+
$pushProtectionBypassRequestReviewer = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($pushProtectionBypassRequestReviewer);
910+
after_pushProtectionBypassRequestReviewer: $result['push_protection_bypass_request_reviewer'] = $pushProtectionBypassRequestReviewer;
911+
912+
$pushProtectionBypassRequestComment = $object->pushProtectionBypassRequestComment;
913+
914+
if ($pushProtectionBypassRequestComment === null) {
915+
goto after_pushProtectionBypassRequestComment;
916+
}
917+
918+
after_pushProtectionBypassRequestComment: $result['push_protection_bypass_request_comment'] = $pushProtectionBypassRequestComment;
919+
920+
$pushProtectionBypassRequestHtmlUrl = $object->pushProtectionBypassRequestHtmlUrl;
921+
922+
if ($pushProtectionBypassRequestHtmlUrl === null) {
923+
goto after_pushProtectionBypassRequestHtmlUrl;
924+
}
925+
926+
after_pushProtectionBypassRequestHtmlUrl: $result['push_protection_bypass_request_html_url'] = $pushProtectionBypassRequestHtmlUrl;
927+
861928
$validity = $object->validity;
862929

863930
if ($validity === null) {

clients/GitHub/src/Internal/Hydrator/WebHook/CustomProperty.php

+19
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cust
217217

218218
after_url:
219219

220+
$value = $payload['source_type'] ?? null;
221+
222+
if ($value === null) {
223+
$properties['sourceType'] = null;
224+
goto after_sourceType;
225+
}
226+
227+
$properties['sourceType'] = $value;
228+
229+
after_sourceType:
230+
220231
$value = $payload['value_type'] ?? null;
221232

222233
if ($value === null) {
@@ -1338,6 +1349,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
13381349

13391350
after_url: $result['url'] = $url;
13401351

1352+
$sourceType = $object->sourceType;
1353+
1354+
if ($sourceType === null) {
1355+
goto after_sourceType;
1356+
}
1357+
1358+
after_sourceType: $result['source_type'] = $sourceType;
1359+
13411360
$valueType = $object->valueType;
13421361
after_valueType: $result['value_type'] = $valueType;
13431362

0 commit comments

Comments
 (0)