Skip to content

Commit a13dad8

Browse files
authored
Merge pull request #1230 from php-api-clients/GitHub/from-1.1.4-c956dacd1ed3014e8efb91f1eb6a337d-from-1.1.4-c956dacd1ed3014e8efb91f1eb6a337d
2 parents 62a7973 + 2f767db commit a13dad8

File tree

30 files changed

+1275
-107
lines changed

30 files changed

+1275
-107
lines changed

clients/GitHub/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,6 +3730,26 @@ $client->operations()->codeSecurity()->getDefaultConfigurations( org: 'ge
37303730
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#get-default-code-security-configurations).
37313731

37323732

3733+
### code-security/detach-configuration
3734+
3735+
Detach configurations from repositories
3736+
3737+
Using the `call` method:
3738+
```php
3739+
$client->call('DELETE /orgs/{org}/code-security/configurations/detach', [
3740+
'org' => 'generated',
3741+
]);
3742+
```
3743+
3744+
Operations method:
3745+
```php
3746+
$client->operations()->codeSecurity()->detachConfiguration( org: 'generated',
3747+
);
3748+
```
3749+
3750+
You can find more about this operation over at the [API method documentation](https://docs.github.com/rest/code-security/configurations#detach-configurations-from-repositories).
3751+
3752+
37333753
### code-security/get-configuration
37343754

37353755
Get a code security configuration

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

Lines changed: 43 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "12b8dbc76c459480c3e846bc22d32615",
2+
"specHash": "c956dacd1ed3014e8efb91f1eb6a337d",
33
"generatedFiles": {
44
"files": [
55
{
@@ -288,7 +288,7 @@
288288
},
289289
{
290290
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationFull.php",
291-
"hash": "fd40f8505e02daedbc846d0406c9eb96"
291+
"hash": "3a018ac7ea2387bbc8405cb2b90dfd3f"
292292
},
293293
{
294294
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/ActionsCacheUsageOrgEnterprise.php",
@@ -4468,7 +4468,7 @@
44684468
},
44694469
{
44704470
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Orgs\/Update\/Request\/ApplicationJson.php",
4471-
"hash": "c0422933c5557db861e6207a78b73542"
4471+
"hash": "f6f7aad784e525decd37a79916b6a09d"
44724472
},
44734473
{
44744474
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/Update\/Response\/ApplicationJson\/UnprocessableEntity.php",
@@ -5612,7 +5612,7 @@
56125612
},
56135613
{
56145614
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Repos.php",
5615-
"hash": "a0291fcee4301d2224ce2487ce42e878"
5615+
"hash": "b05be33ef97b8b7d3366d6e585dcd44a"
56165616
},
56175617
{
56185618
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -17040,11 +17040,11 @@
1704017040
},
1704117041
{
1704217042
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/CheckAutomatedSecurityFixes.php",
17043-
"hash": "8c5af271c27f39436ecca2b44c4ee10e"
17043+
"hash": "d111ff8130aefccc96d5cfbc13ecab4b"
1704417044
},
1704517045
{
1704617046
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/CheckAutomatedSecurityFixes.php",
17047-
"hash": "661435f046f86ba7d65213887f17c7f1"
17047+
"hash": "80f967cdb9cdd63cbcd64a69372c81e9"
1704817048
},
1704917049
{
1705017050
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/CheckAutomatedSecurityFixesTest.php",
@@ -24476,7 +24476,7 @@
2447624476
},
2447724477
{
2447824478
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
24479-
"hash": "7f939a283bd4c652ec2384e186010197"
24479+
"hash": "99af889ce5ea9d2586ba5898f4edc7b3"
2448024480
},
2448124481
{
2448224482
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -24968,7 +24968,7 @@
2496824968
},
2496924969
{
2497024970
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
24971-
"hash": "d99d9cc5cb5c29690e0b91c96416f739"
24971+
"hash": "f7000d6c43a48afcf7602d52940ffd2a"
2497224972
},
2497324973
{
2497424974
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
@@ -25112,7 +25112,7 @@
2511225112
},
2511325113
{
2511425114
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php",
25115-
"hash": "741f8353ae766d2cdbd56c0c5a43b801"
25115+
"hash": "08ccaed3cd1c6bf14a3562ee889d0655"
2511625116
},
2511725117
{
2511825118
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php",
@@ -25176,7 +25176,7 @@
2517625176
},
2517725177
{
2517825178
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operators.php",
25179-
"hash": "6dbff33fe8e4f51ca2329a661168cf0c"
25179+
"hash": "6a427f682377fe3c4636b772e67b5bf4"
2518025180
},
2518125181
{
2518225182
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php",
@@ -27168,7 +27168,7 @@
2716827168
},
2716927169
{
2717027170
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
27171-
"hash": "c4d66f4e9938472ee0098a2e3cd70430"
27171+
"hash": "5acd7ef5acdf5f96cee2384a7f5c9bb9"
2717227172
},
2717327173
{
2717427174
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/OrganizationSimpleWebhooks.php",
@@ -27788,11 +27788,11 @@
2778827788
},
2778927789
{
2779027790
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27791-
"hash": "34097be811968901ed3316c689e3d3eb"
27791+
"hash": "c4f8b4e0d0daaf6de6571573822d30a7"
2779227792
},
2779327793
{
2779427794
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27795-
"hash": "b24dfb45ef8936c0dcfc11f99fb51c47"
27795+
"hash": "ff978093ecf334a8785c1f3add0fabe3"
2779627796
},
2779727797
{
2779827798
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -29816,11 +29816,11 @@
2981629816
},
2981729817
{
2981829818
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfiguration.php",
29819-
"hash": "b8a95e4449711ae850dcd4a7e1380c6b"
29819+
"hash": "3079c2fbeb9341d5128ad0d86124c8a5"
2982029820
},
2982129821
{
2982229822
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityDefaultConfigurations.php",
29823-
"hash": "30594d8562f33fb560d2de7512b01029"
29823+
"hash": "80a90378337a30e5cb817beb5bb56f4f"
2982429824
},
2982529825
{
2982629826
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationRepositories.php",
@@ -29852,11 +29852,11 @@
2985229852
},
2985329853
{
2985429854
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/CreateConfiguration\/Request\/ApplicationJson.php",
29855-
"hash": "a8a7a883076d166c4f26d1d27ee1a52c"
29855+
"hash": "dde9c21271d743e986c64b6b1c1e6039"
2985629856
},
2985729857
{
2985829858
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/UpdateConfiguration\/Request\/ApplicationJson.php",
29859-
"hash": "c2a989ef2179f49a9e7d74142d281468"
29859+
"hash": "f2e0674220f301a4860e99d1e2d407c5"
2986029860
},
2986129861
{
2986229862
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachConfiguration\/Request\/ApplicationJson.php",
@@ -29868,7 +29868,7 @@
2986829868
},
2986929869
{
2987029870
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/Operations\/CodeSecurity\/SetConfigurationAsDefault\/Response\/ApplicationJson\/Ok.php",
29871-
"hash": "f0088d18c282cdae90d6c87195bb4d5d"
29871+
"hash": "e9b8b4a9300ca7d9535d546f1a9b80f6"
2987229872
},
2987329873
{
2987429874
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php",
@@ -29884,35 +29884,35 @@
2988429884
},
2988529885
{
2988629886
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/CodeSecurity.php",
29887-
"hash": "a692bc85c60dc4f6bcab53efd490a715"
29887+
"hash": "fb93ff0e33eac9591443590799764b01"
2988829888
},
2988929889
{
2989029890
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Router\/Put\/CodeSecurity.php",
2989129891
"hash": "4786c278e8c30964a6826613d1f0c820"
2989229892
},
2989329893
{
2989429894
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
29895-
"hash": "3be55afa7a9f4ffce735a60d8aeba814"
29895+
"hash": "b4c7c93d9dbb2fd7c7f460a2962ab710"
2989629896
},
2989729897
{
2989829898
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php",
29899-
"hash": "6094cba68ed0dfb76e28d8a5dff5f067"
29899+
"hash": "0b53c9f45bd4aae9493fd73813bf88da"
2990029900
},
2990129901
{
2990229902
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/Defaults.php",
2990329903
"hash": "e7a908f9798974e568b6dfb00e7c0b91"
2990429904
},
2990529905
{
2990629906
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId.php",
29907-
"hash": "bd7df38d46045fecb136fe6256407f8a"
29907+
"hash": "870c6ee31d40d795fa4e3ee2027a4fd0"
2990829908
},
2990929909
{
2991029910
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Attach.php",
2991129911
"hash": "e650fdbe9e34b7f8e602b8060941c059"
2991229912
},
2991329913
{
2991429914
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Defaults.php",
29915-
"hash": "cf56ca7c6cbccfef97767e36022ac7fa"
29915+
"hash": "c2b302e68f2bfae240995c434f49c4c0"
2991629916
},
2991729917
{
2991829918
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Repositories.php",
@@ -30301,6 +30301,26 @@
3030130301
{
3030230302
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA5593530\/TietD4C63CAD\/Tiet95D73CC3\/TietF1B17EC4.php",
3030330303
"hash": "d3532c34c3e68099213cce4009785394"
30304+
},
30305+
{
30306+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operation\/CodeSecurity\/DetachConfiguration.php",
30307+
"hash": "e73f415e19fd297e7cff67ce040bfa7e"
30308+
},
30309+
{
30310+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/DetachConfiguration.php",
30311+
"hash": "2ca4499f84bbfaa55ef332d199c03945"
30312+
},
30313+
{
30314+
"name": ".\/clients\/GitHub\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/DetachConfigurationTest.php",
30315+
"hash": "db4e24ba6dc75672ab80bbba15b3b07a"
30316+
},
30317+
{
30318+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/DetachConfiguration\/Request\/ApplicationJson.php",
30319+
"hash": "fa12f56c092f423a8bb62eec4443235b"
30320+
},
30321+
{
30322+
"name": ".\/clients\/GitHub\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/Detach.php",
30323+
"hash": "561cacd15f68beda2496e4381907de94"
3030430324
}
3030530325
]
3030630326
},

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
256256

257257
after_privateVulnerabilityReporting:
258258

259+
$value = $payload['enforcement'] ?? null;
260+
261+
if ($value === null) {
262+
$properties['enforcement'] = null;
263+
goto after_enforcement;
264+
}
265+
266+
$properties['enforcement'] = $value;
267+
268+
after_enforcement:
269+
259270
$value = $payload['url'] ?? null;
260271

261272
if ($value === null) {
@@ -558,6 +569,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
558569

559570
after_privateVulnerabilityReporting: $result['private_vulnerability_reporting'] = $privateVulnerabilityReporting;
560571

572+
$enforcement = $object->enforcement;
573+
574+
if ($enforcement === null) {
575+
goto after_enforcement;
576+
}
577+
578+
after_enforcement: $result['enforcement'] = $enforcement;
579+
561580
$url = $object->url;
562581

563582
if ($url === null) {

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
195195

196196
after_privateVulnerabilityReporting:
197197

198+
$value = $payload['enforcement'] ?? null;
199+
200+
if ($value === null) {
201+
$properties['enforcement'] = null;
202+
goto after_enforcement;
203+
}
204+
205+
$properties['enforcement'] = $value;
206+
207+
after_enforcement:
208+
198209
$value = $payload['url'] ?? null;
199210

200211
if ($value === null) {
@@ -606,6 +617,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
606617

607618
after_privateVulnerabilityReporting: $result['private_vulnerability_reporting'] = $privateVulnerabilityReporting;
608619

620+
$enforcement = $object->enforcement;
621+
622+
if ($enforcement === null) {
623+
goto after_enforcement;
624+
}
625+
626+
after_enforcement: $result['enforcement'] = $enforcement;
627+
609628
$url = $object->url;
610629

611630
if ($url === null) {

clients/GitHub/src/Internal/Hydrator/Operation/Orgs/Org/CodeSecurity/Configurations/ConfigurationId/Defaults.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Code
247247

248248
after_privateVulnerabilityReporting:
249249

250+
$value = $payload['enforcement'] ?? null;
251+
252+
if ($value === null) {
253+
$properties['enforcement'] = null;
254+
goto after_enforcement;
255+
}
256+
257+
$properties['enforcement'] = $value;
258+
259+
after_enforcement:
260+
250261
$value = $payload['url'] ?? null;
251262

252263
if ($value === null) {
@@ -598,6 +609,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
598609

599610
after_privateVulnerabilityReporting: $result['private_vulnerability_reporting'] = $privateVulnerabilityReporting;
600611

612+
$enforcement = $object->enforcement;
613+
614+
if ($enforcement === null) {
615+
goto after_enforcement;
616+
}
617+
618+
after_enforcement: $result['enforcement'] = $enforcement;
619+
601620
$url = $object->url;
602621

603622
if ($url === null) {

0 commit comments

Comments
 (0)