Skip to content

Commit e9ee0b2

Browse files
authored
Merge pull request #1355 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-a1982b6682052852c1dfe87d8de1f4ed-from-1.1.4-a1982b6682052852c1dfe87d8de1f4ed
2 parents d11d399 + 8245533 commit e9ee0b2

26 files changed

+2865
-38
lines changed

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

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "09a2c0e8c9ee8840c63e9f1e2f55d269",
2+
"specHash": "a1982b6682052852c1dfe87d8de1f4ed",
33
"generatedFiles": {
44
"files": [
55
{
@@ -352,7 +352,7 @@
352352
},
353353
{
354354
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrganizationSecretScanningAlert.php",
355-
"hash": "8202d94bbfefc9c18ef97da5a5478f0e"
355+
"hash": "83c272f042c76998476a229a5d5726b2"
356356
},
357357
{
358358
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsBillingUsage.php",
@@ -1432,7 +1432,7 @@
14321432
},
14331433
{
14341434
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningAlert.php",
1435-
"hash": "a84ca3b4cc923adaa955c28a2431ed0b"
1435+
"hash": "33f91036f740e3473fc1797b6222654e"
14361436
},
14371437
{
14381438
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertResolutionComment.php",
@@ -2500,23 +2500,23 @@
25002500
},
25012501
{
25022502
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertCreated.php",
2503-
"hash": "b0e06188db1d2940ba1de91fe7881369"
2503+
"hash": "2f11ff526bffa2f69de3c7691517ddf6"
25042504
},
25052505
{
25062506
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreated.php",
2507-
"hash": "e7d22537dad59f0966e53e5e355153e9"
2507+
"hash": "6d7e44537368ac8f6f42c9d0b6974e1e"
25082508
},
25092509
{
25102510
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertLocationCreatedFormEncoded.php",
25112511
"hash": "c9164854c98a14195e2135d8d7bfa721"
25122512
},
25132513
{
25142514
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertReopened.php",
2515-
"hash": "cbc14dc8b01a8a0f84edd307d3ab603e"
2515+
"hash": "f060305c4b3c18a6ca782f4d22133328"
25162516
},
25172517
{
25182518
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertResolved.php",
2519-
"hash": "8365aa5c3f9354ce899ce91f41ff7eb4"
2519+
"hash": "8bf89990f3a50f4323dd5b67d1ca70fb"
25202520
},
25212521
{
25222522
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAdvisoryPublished.php",
@@ -12112,7 +12112,7 @@
1211212112
},
1211312113
{
1211412114
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningAlertWebhook.php",
12115-
"hash": "44671e40fa3afa459828d09c42d8e598"
12115+
"hash": "3dcecdfccd4088bd399dccd67647a313"
1211612116
},
1211712117
{
1211812118
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet649F32EB\/TietC13659D6\/Tiet0B408A31\/TietF85C8E0E.php",
@@ -28436,7 +28436,7 @@
2843628436
},
2843728437
{
2843828438
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber.php",
28439-
"hash": "7ae422378e5702f064d3bc4b0d41453c"
28439+
"hash": "c5f6505b97baf954f07f65e95961fe55"
2844028440
},
2844128441
{
2844228442
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/Alerts\/AlertNumber\/Locations.php",
@@ -29604,7 +29604,7 @@
2960429604
},
2960529605
{
2960629606
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperties\/Request\/ApplicationJson.php",
29607-
"hash": "b492ff51f377928499af9b9142c672b2"
29607+
"hash": "0e7ad91dd9f4e39e63c9875bebca868b"
2960829608
},
2960929609
{
2961029610
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Orgs\/CreateOrUpdateCustomProperty\/Request\/ApplicationJson.php",
@@ -29620,7 +29620,7 @@
2962029620
},
2962129621
{
2962229622
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Properties\/Schema\/CustomPropertyName.php",
29623-
"hash": "9d2e06aa77da3f54183731c66abf5e37"
29623+
"hash": "26cb5f0b2afe1b9917a931bc40339d21"
2962429624
},
2962529625
{
2962629626
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Properties\/Values.php",
@@ -29632,15 +29632,15 @@
2963229632
},
2963329633
{
2963429634
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyCreated.php",
29635-
"hash": "14ea959908f0bda04951465f88b7fae9"
29635+
"hash": "4a5e4a84decac9b70e767d6c5316468d"
2963629636
},
2963729637
{
2963829638
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyDeleted.php",
2963929639
"hash": "a0d5c119506cfd990422cdc5903de0bc"
2964029640
},
2964129641
{
2964229642
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyUpdated.php",
29643-
"hash": "e42aec665325158dd76ecedc5cbc0f9e"
29643+
"hash": "56024a8932cd012bbe6e8f0c2a7c53ce"
2964429644
},
2964529645
{
2964629646
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyValuesUpdated.php",
@@ -30048,7 +30048,7 @@
3004830048
},
3004930049
{
3005030050
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomProperty.php",
30051-
"hash": "9b661f0a19769c72017bdb3d285156b0"
30051+
"hash": "77e806aec78d773003407624f12959a4"
3005230052
},
3005330053
{
3005430054
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CustomPropertyValues.php",
@@ -30252,11 +30252,11 @@
3025230252
},
3025330253
{
3025430254
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlert.php",
30255-
"hash": "d5ec0e004bb673140b49b3cd0521a17c"
30255+
"hash": "075827350dbe5e299f4211d4c1b9911f"
3025630256
},
3025730257
{
3025830258
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecretScanningAlertLocation.php",
30259-
"hash": "1e3da909291cadce2ae64ccd7d5dd1bd"
30259+
"hash": "217df6b90f9de085c2f67652f0a2c6db"
3026030260
},
3026130261
{
3026230262
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAdvisory.php",
@@ -30476,23 +30476,23 @@
3047630476
},
3047730477
{
3047830478
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrganizationRole.php",
30479-
"hash": "006a5c3659470b957dd0ace9203701ca"
30479+
"hash": "ee5a3b5a8862181dba0bcb099fd16ae0"
3048030480
},
3048130481
{
3048230482
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/ListOrgRoles\/Response\/ApplicationJson\/Ok.php",
30483-
"hash": "fd4b94b5d90fa75f52b03ed384b83f2a"
30483+
"hash": "5acd8f65ac50afecfd4077767f021251"
3048430484
},
3048530485
{
3048630486
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/OrganizationFineGrainedPermissions.php",
3048730487
"hash": "ee72decb1a5bd3d913b8e00c9df1c2fa"
3048830488
},
3048930489
{
3049030490
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/OrganizationRoles.php",
30491-
"hash": "99bb01aba4dd11cff2207622202d9f54"
30491+
"hash": "9d5fafd0f9a539480244495e0092c8d1"
3049230492
},
3049330493
{
3049430494
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/OrganizationRoles\/RoleId.php",
30495-
"hash": "22a6662fa22d1c8cfe10c2283a784c31"
30495+
"hash": "f84ed2fcc90a059b9ce0c04a569ec021"
3049630496
},
3049730497
{
3049830498
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecurityAdvisories\/CreateFork.php",
@@ -30608,7 +30608,7 @@
3060830608
},
3060930609
{
3061030610
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertValidated.php",
30611-
"hash": "60698916d1a575a042f56e8af1c98768"
30611+
"hash": "2ba9ac7c5d9a71f95b42b4267086b0e3"
3061230612
},
3061330613
{
3061430614
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pages\/Deployments.php",
@@ -31776,11 +31776,11 @@
3177631776
},
3177731777
{
3177831778
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TeamRoleAssignment.php",
31779-
"hash": "11a8c12e429bd8014f651f87e3b8a681"
31779+
"hash": "faf39856bc194eded2ebe75a0e6e9db3"
3178031780
},
3178131781
{
3178231782
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/UserRoleAssignment.php",
31783-
"hash": "5ddc84bbb2c1745f50740a1a81a92b6b"
31783+
"hash": "a9de87f167ca32031e99337083c67c98"
3178431784
},
3178531785
{
3178631786
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ProjectsV2SingleSelectOption.php",
@@ -32424,7 +32424,7 @@
3242432424
},
3242532425
{
3242632426
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CustomProperty.php",
32427-
"hash": "11ea4f780a1c13818c36b7b0b73026a9"
32427+
"hash": "bc510340278f5f676f350f839f0f32c0"
3242832428
},
3242932429
{
3243032430
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningPushProtectionBypassReason.php",
@@ -32636,7 +32636,7 @@
3263632636
},
3263732637
{
3263832638
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecretScanningAlertPubliclyLeaked.php",
32639-
"hash": "049e646d1987582dbbb6cb797734b6bc"
32639+
"hash": "04a2e9dff65952f9fb77b4b1b9b056c4"
3264032640
},
3264132641
{
3264232642
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet840A0FDF\/Tiet2788886F\/Tiet3E288C76\/Tiet836AAE9A.php",

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/OrganizationRoles.php

+38
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,28 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
247247

248248
after_description:
249249

250+
$value = $payload['base_role'] ?? null;
251+
252+
if ($value === null) {
253+
$properties['baseRole'] = null;
254+
goto after_baseRole;
255+
}
256+
257+
$properties['baseRole'] = $value;
258+
259+
after_baseRole:
260+
261+
$value = $payload['source'] ?? null;
262+
263+
if ($value === null) {
264+
$properties['source'] = null;
265+
goto after_source;
266+
}
267+
268+
$properties['source'] = $value;
269+
270+
after_source:
271+
250272
$value = $payload['permissions'] ?? null;
251273

252274
if ($value === null) {
@@ -792,6 +814,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
792814

793815
after_description: $result['description'] = $description;
794816

817+
$baseRole = $object->baseRole;
818+
819+
if ($baseRole === null) {
820+
goto after_baseRole;
821+
}
822+
823+
after_baseRole: $result['base_role'] = $baseRole;
824+
825+
$source = $object->source;
826+
827+
if ($source === null) {
828+
goto after_source;
829+
}
830+
831+
after_source: $result['source'] = $source;
832+
795833
$permissions = $object->permissions;
796834
static $permissionsSerializer0;
797835

clients/GitHubEnterpriseCloud/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⚡️GitHubEnterpriseCloud⚡️S
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⚡️GitHubEnterpriseClou
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/GitHubEnterpriseCloud/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⚡️GitHubEnterpriseCloud⚡️S
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⚡️GitHubEnterpriseClou
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

0 commit comments

Comments
 (0)