Skip to content

Commit 02a9a6b

Browse files
authored
Merge pull request #1497 from php-api-clients/GitHub/from-1.1.4-f7468d269476e7c0c11c8b67322a69a1-from-1.1.4-f7468d269476e7c0c11c8b67322a69a1
2 parents fccebf1 + abdf24a commit 02a9a6b

File tree

29 files changed

+243
-58
lines changed

29 files changed

+243
-58
lines changed

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

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "5111760c5ff914fc4c83cde28d085440",
2+
"specHash": "f7468d269476e7c0c11c8b67322a69a1",
33
"generatedFiles": {
44
"files": [
55
{
@@ -348,7 +348,7 @@
348348
},
349349
{
350350
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Runner.php",
351-
"hash": "3788279a58cf0444b5e8ac4bac2c96e3"
351+
"hash": "9eb473fcd7876dc8e66410cf824facc8"
352352
},
353353
{
354354
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RunnerApplication.php",
@@ -4480,7 +4480,7 @@
44804480
},
44814481
{
44824482
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelfHostedRunnersForOrg\/Response\/ApplicationJson\/Ok.php",
4483-
"hash": "c5d16e5ba1a96f8beca934ed85fbe67b"
4483+
"hash": "c0ef6521ea75f8ff323af6219e897ea4"
44844484
},
44854485
{
44864486
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListLabelsForSelfHostedRunnerForOrg\/Response\/ApplicationJson\/Ok.php",
@@ -5564,7 +5564,7 @@
55645564
},
55655565
{
55665566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Actions.php",
5567-
"hash": "6cfc2e1d06fc380bf66cb736ffc55125"
5567+
"hash": "ee82d3b058b82ee9d387cfbe1d78d52e"
55685568
},
55695569
{
55705570
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Oidc.php",
@@ -5600,7 +5600,7 @@
56005600
},
56015601
{
56025602
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
5603-
"hash": "a017d588c5b04a9f637de041dd114a34"
5603+
"hash": "109c702326dc8aca867d2bb5df05cd70"
56045604
},
56055605
{
56065606
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Teams.php",
@@ -11010,17 +11010,13 @@
1101011010
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Projects\/CreateCard\/Response\/ApplicationJson\/UnprocessableEntity.php",
1101111011
"hash": "7733a616bba537ad14269c392c95ce1a"
1101211012
},
11013-
{
11014-
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet2329E85F\/Tiet2404E7BA\/TietF6C81F1C\/Tiet1EE267CF.php",
11015-
"hash": "aa2b30cb40a5655fd074c80f59fa6ca1"
11016-
},
1101711013
{
1101811014
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelfHostedRunnersForRepo\/Response\/ApplicationJson\/Ok.php",
11019-
"hash": "50a4938b787a019765aa829d8413a864"
11015+
"hash": "fbacde22337ecd5b80d95f3de843cfdf"
1102011016
},
1102111017
{
1102211018
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelfHostedRunnersForRepo\/Response\/ApplicationJson\/Ok\/Application\/Json.php",
11023-
"hash": "d33dbea130ae1d25f1e26c11ca24e6d0"
11019+
"hash": "ebbc85529a4d2d72e9ef25f34fb9f8b9"
1102411020
},
1102511021
{
1102611022
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet465FFE22\/Tiet83692C35\/TietB7E35CD3\/TietF31B8C6B.php",
@@ -11568,7 +11564,7 @@
1156811564
},
1156911565
{
1157011566
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/GenerateRunnerJitconfigForOrg\/Response\/ApplicationJson\/Created.php",
11571-
"hash": "a0631e6fa2bc4c654e232fbbe75da832"
11567+
"hash": "e43662482f4f302739630a118db2a954"
1157211568
},
1157311569
{
1157411570
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/RepositoryRuleRulesetInfo.php",
@@ -13304,15 +13300,15 @@
1330413300
},
1330513301
{
1330613302
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForOrg.php",
13307-
"hash": "cf0de69007f289beec8dcf4278b8c973"
13303+
"hash": "afddb9725e6befd38adc33f97e2b846c"
1330813304
},
1330913305
{
1331013306
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GenerateRunnerJitconfigForOrg.php",
13311-
"hash": "dda35c1df25aa178dd350dd32c8bc725"
13307+
"hash": "e882e339f1a4e5dbbd5e3a2186bbf27f"
1331213308
},
1331313309
{
1331413310
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForOrgTest.php",
13315-
"hash": "b5a4c546ea934c2c6056758a89c0b74c"
13311+
"hash": "8d38e86616453487b5af59cd77fc3dcb"
1331613312
},
1331713313
{
1331813314
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/CreateRegistrationTokenForOrg.php",
@@ -16304,15 +16300,15 @@
1630416300
},
1630516301
{
1630616302
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForRepo.php",
16307-
"hash": "94191ae61f4834c50a1dfc0244b2b733"
16303+
"hash": "a374295e98378dfa62bbddbccef4c785"
1630816304
},
1630916305
{
1631016306
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Actions\/GenerateRunnerJitconfigForRepo.php",
16311-
"hash": "dd32db3e9844f32fe7138e0844417409"
16307+
"hash": "51f95c068dfc5397d0caad39ad9c69c2"
1631216308
},
1631316309
{
1631416310
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Actions\/GenerateRunnerJitconfigForRepoTest.php",
16315-
"hash": "58ce464d154ed0cf569493ca81482ce9"
16311+
"hash": "d77a03a14b0bd7721ee90b0a8282fd9a"
1631616312
},
1631716313
{
1631816314
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Actions\/CreateRegistrationTokenForRepo.php",
@@ -24424,7 +24420,7 @@
2442424420
},
2442524421
{
2442624422
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Billing.php",
24427-
"hash": "b5af76cf9b440520b40680246dfd76a0"
24423+
"hash": "e9e63e54539847856b0b389cc89aba31"
2442824424
},
2442924425
{
2443024426
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php",
@@ -24476,7 +24472,7 @@
2447624472
},
2447724473
{
2447824474
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Actions.php",
24479-
"hash": "c29bf069848970b6bf2aa7a3bad4ea13"
24475+
"hash": "600053290882abe489d86c6c74f32291"
2448024476
},
2448124477
{
2448224478
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Codespaces.php",
@@ -24856,7 +24852,7 @@
2485624852
},
2485724853
{
2485824854
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
24859-
"hash": "d5e6cb0b5c43bcb0926a401ff8b31c45"
24855+
"hash": "c4a7e9ba89e7cad14e37d8076a8a4817"
2486024856
},
2486124857
{
2486224858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -24880,7 +24876,7 @@
2488024876
},
2488124877
{
2488224878
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Six.php",
24883-
"hash": "9d52e88c5af6aa5a666a418c7149880a"
24879+
"hash": "c1a0b296bfca651a7e4126fed2d81307"
2488424880
},
2488524881
{
2488624882
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Five.php",
@@ -24896,7 +24892,7 @@
2489624892
},
2489724893
{
2489824894
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php",
24899-
"hash": "8dd6cfc374d16ab64138cebccf8d4d15"
24895+
"hash": "6e130578b6660dbe7434e3885b56b507"
2490024896
},
2490124897
{
2490224898
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Eight.php",
@@ -25292,7 +25288,7 @@
2529225288
},
2529325289
{
2529425290
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/Runners\/GenerateJitconfig.php",
25295-
"hash": "606056a60a74f0bd5830673e1ceaac84"
25291+
"hash": "eef5a008e59fc6a5a75ab1cd38360359"
2529625292
},
2529725293
{
2529825294
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/Runners\/RegistrationToken.php",
@@ -25304,7 +25300,7 @@
2530425300
},
2530525301
{
2530625302
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/Runners\/RunnerId.php",
25307-
"hash": "119e1dd66d0043ee8a32deb7097613af"
25303+
"hash": "364e52d1453f713034ad4846e0a27199"
2530825304
},
2530925305
{
2531025306
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Actions\/Runners\/RunnerId\/Labels.php",
@@ -25776,7 +25772,7 @@
2577625772
},
2577725773
{
2577825774
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runners\/GenerateJitconfig.php",
25779-
"hash": "29f9ca85c2e04f05de536a7a8ef4e3a3"
25775+
"hash": "fe23bef0427ff3f9337089f07979f04a"
2578025776
},
2578125777
{
2578225778
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runners\/RegistrationToken.php",
@@ -25788,7 +25784,7 @@
2578825784
},
2578925785
{
2579025786
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runners\/RunnerId.php",
25791-
"hash": "e9b54c876ed8cc2e224048b7fb7667e2"
25787+
"hash": "b6dee146c8939b090f2565a19cda3d44"
2579225788
},
2579325789
{
2579425790
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runners\/RunnerId\/Labels.php",
@@ -27632,11 +27628,11 @@
2763227628
},
2763327629
{
2763427630
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27635-
"hash": "cb4f797dc05020132ffc3619950c39e6"
27631+
"hash": "9a0ea71bba7f5f28a38d3c96fccb89b3"
2763627632
},
2763727633
{
2763827634
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27639-
"hash": "0b533e50490546f5b357153d457ee8f5"
27635+
"hash": "12e8aab39fe3efb63af28af4572cf1ff"
2764027636
},
2764127637
{
2764227638
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -30316,7 +30312,7 @@
3031630312
},
3031730313
{
3031830314
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelfHostedRunnersInGroupForOrg\/Response\/ApplicationJson\/Ok.php",
30319-
"hash": "aa49bb2534c543391541d143b08e6597"
30315+
"hash": "dd2cfd6ca711f208768c6edca9e7fad6"
3032030316
},
3032130317
{
3032230318
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Actions\/SetSelfHostedRunnersInGroupForOrg\/Request\/ApplicationJson.php",
@@ -30844,7 +30840,7 @@
3084430840
},
3084530841
{
3084630842
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Billing\/GetGithubBillingUsageReportOrg.php",
30847-
"hash": "4787686505d8e5946b3fdf813b8a5ec5"
30843+
"hash": "7624d94358737de3424ffb2dc614ce55"
3084830844
},
3084930845
{
3085030846
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Billing\/GetGithubBillingUsageReportOrgTest.php",
@@ -31841,6 +31837,10 @@
3184131837
{
3184231838
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietADA0376A\/TietE291E6D1\/Tiet2A83A4E8\/TietFA266CAF.php",
3184331839
"hash": "36e946b712654adbe28f4840593a93f1"
31840+
},
31841+
{
31842+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEAB1E353\/TietA691FF98\/TietCADB7922\/TietA4382CA1.php",
31843+
"hash": "436ec94751c59383bcf6e3bd4edfcda9"
3184431844
}
3184531845
]
3184631846
},

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/Runners/GenerateJitconfig.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Runn
182182
$properties['labels'] = $value;
183183

184184
after_labels:
185+
186+
$value = $payload['ephemeral'] ?? null;
187+
188+
if ($value === null) {
189+
$properties['ephemeral'] = null;
190+
goto after_ephemeral;
191+
}
192+
193+
$properties['ephemeral'] = $value;
194+
195+
after_ephemeral:
185196
} catch (Throwable $exception) {
186197
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Runner', $exception, stack: $this->hydrationStack);
187198
}
@@ -462,6 +473,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
462473
$labels = $labelsSerializer0->serialize($labels, $this);
463474
after_labels: $result['labels'] = $labels;
464475

476+
$ephemeral = $object->ephemeral;
477+
478+
if ($ephemeral === null) {
479+
goto after_ephemeral;
480+
}
481+
482+
after_ephemeral: $result['ephemeral'] = $ephemeral;
483+
465484
return $result;
466485
}
467486

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/Actions/Runners/RunnerId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Runn
124124
$properties['labels'] = $value;
125125

126126
after_labels:
127+
128+
$value = $payload['ephemeral'] ?? null;
129+
130+
if ($value === null) {
131+
$properties['ephemeral'] = null;
132+
goto after_ephemeral;
133+
}
134+
135+
$properties['ephemeral'] = $value;
136+
137+
after_ephemeral:
127138
} catch (Throwable $exception) {
128139
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Runner', $exception, stack: $this->hydrationStack);
129140
}
@@ -271,6 +282,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
271282
$labels = $labelsSerializer0->serialize($labels, $this);
272283
after_labels: $result['labels'] = $labels;
273284

285+
$ephemeral = $object->ephemeral;
286+
287+
if ($ephemeral === null) {
288+
goto after_ephemeral;
289+
}
290+
291+
after_ephemeral: $result['ephemeral'] = $ephemeral;
292+
274293
return $result;
275294
}
276295

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runners/GenerateJitconfig.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Runn
182182
$properties['labels'] = $value;
183183

184184
after_labels:
185+
186+
$value = $payload['ephemeral'] ?? null;
187+
188+
if ($value === null) {
189+
$properties['ephemeral'] = null;
190+
goto after_ephemeral;
191+
}
192+
193+
$properties['ephemeral'] = $value;
194+
195+
after_ephemeral:
185196
} catch (Throwable $exception) {
186197
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Runner', $exception, stack: $this->hydrationStack);
187198
}
@@ -462,6 +473,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
462473
$labels = $labelsSerializer0->serialize($labels, $this);
463474
after_labels: $result['labels'] = $labels;
464475

476+
$ephemeral = $object->ephemeral;
477+
478+
if ($ephemeral === null) {
479+
goto after_ephemeral;
480+
}
481+
482+
after_ephemeral: $result['ephemeral'] = $ephemeral;
483+
465484
return $result;
466485
}
467486

clients/GitHub/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runners/RunnerId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Runn
124124
$properties['labels'] = $value;
125125

126126
after_labels:
127+
128+
$value = $payload['ephemeral'] ?? null;
129+
130+
if ($value === null) {
131+
$properties['ephemeral'] = null;
132+
goto after_ephemeral;
133+
}
134+
135+
$properties['ephemeral'] = $value;
136+
137+
after_ephemeral:
127138
} catch (Throwable $exception) {
128139
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\Runner', $exception, stack: $this->hydrationStack);
129140
}
@@ -271,6 +282,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
271282
$labels = $labelsSerializer0->serialize($labels, $this);
272283
after_labels: $result['labels'] = $labels;
273284

285+
$ephemeral = $object->ephemeral;
286+
287+
if ($ephemeral === null) {
288+
goto after_ephemeral;
289+
}
290+
291+
after_ephemeral: $result['ephemeral'] = $ephemeral;
292+
274293
return $result;
275294
}
276295

clients/GitHub/src/Internal/Operation/Actions/GenerateRunnerJitconfigForOrg.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ public function createResponse(ResponseInterface $response): Schema\Operations\A
6969
$this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationErrorSimple::SCHEMA_JSON, \cebe\openapi\spec\Schema::class));
7070

7171
throw new ErrorSchemas\ValidationErrorSimple(422, $this->hydrator->hydrateObject(Schema\ValidationErrorSimple::class, $body));
72+
/**
73+
* Conflict
74+
**/
75+
76+
case 409:
77+
$this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class));
78+
79+
throw new ErrorSchemas\BasicError(409, $this->hydrator->hydrateObject(Schema\BasicError::class, $body));
7280
}
7381

7482
break;

clients/GitHub/src/Internal/Operation/Actions/GenerateRunnerJitconfigForRepo.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ public function createResponse(ResponseInterface $response): Schema\Operations\A
7272
$this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationErrorSimple::SCHEMA_JSON, \cebe\openapi\spec\Schema::class));
7373

7474
throw new ErrorSchemas\ValidationErrorSimple(422, $this->hydrator->hydrateObject(Schema\ValidationErrorSimple::class, $body));
75+
/**
76+
* Conflict
77+
**/
78+
79+
case 409:
80+
$this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class));
81+
82+
throw new ErrorSchemas\BasicError(409, $this->hydrator->hydrateObject(Schema\BasicError::class, $body));
7583
}
7684

7785
break;

0 commit comments

Comments
 (0)