Skip to content

Commit 10e35f2

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHubEnterpriseCloud] Update to 1.1.4-a9a79e364b853c47d43f74efabc55fe4 from 1.1.4-354bdd6e24f33acc7638d9ddbf2fce07
Detected Schema changes: starting work. Building original model for commit ad6ffa 2024-07-15 17:27:16 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-actions.yaml └ error: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory 2024-07-15 17:27:16 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-packages.yaml └ error: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory 2024-07-15 17:27:18 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-actions.yaml └ error: open /__w/github-root/github-root/server-statistics-actions.yaml: no such file or directory 2024-07-15 17:27:18 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-packages.yaml └ error: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [206779:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [206781:11] ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [206689:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [206691:11]
1 parent a13dad8 commit 10e35f2

File tree

30 files changed

+1295
-116
lines changed

30 files changed

+1295
-116
lines changed

clients/GitHubEnterpriseCloud/README.md

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

54765476

5477+
### code-security/detach-configuration
5478+
5479+
Detach configurations from repositories
5480+
5481+
Using the `call` method:
5482+
```php
5483+
$client->call('DELETE /orgs/{org}/code-security/configurations/detach', [
5484+
'org' => 'generated',
5485+
]);
5486+
```
5487+
5488+
Operations method:
5489+
```php
5490+
$client->operations()->codeSecurity()->detachConfiguration( org: 'generated',
5491+
);
5492+
```
5493+
5494+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/code-security/configurations#detach-configurations-from-repositories).
5495+
5496+
54775497
### code-security/get-configuration
54785498

54795499
Get a code security configuration

clients/GitHubEnterpriseCloud/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": "354bdd6e24f33acc7638d9ddbf2fce07",
2+
"specHash": "a9a79e364b853c47d43f74efabc55fe4",
33
"generatedFiles": {
44
"files": [
55
{
@@ -488,7 +488,7 @@
488488
},
489489
{
490490
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrganizationFull.php",
491-
"hash": "393b1b706221dfdc4d8958f9b4422d80"
491+
"hash": "49c8f7f273407b67bf2e23bb320e8a77"
492492
},
493493
{
494494
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ActionsCacheUsageByRepository.php",
@@ -4760,7 +4760,7 @@
47604760
},
47614761
{
47624762
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Orgs\/Update\/Request\/ApplicationJson.php",
4763-
"hash": "2d99e149ed02d324552e6d8060da9dc7"
4763+
"hash": "5342bfe9dcade6d06b09538f70991a60"
47644764
},
47654765
{
47664766
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Orgs\/Update\/Response\/ApplicationJson\/UnprocessableEntity.php",
@@ -5980,7 +5980,7 @@
59805980
},
59815981
{
59825982
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
5983-
"hash": "4928f7947f08584be259d20dffc14b24"
5983+
"hash": "5b5f19b3c039398b0a5622bd76a37f7f"
59845984
},
59855985
{
59865986
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -18536,11 +18536,11 @@
1853618536
},
1853718537
{
1853818538
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/CheckAutomatedSecurityFixes.php",
18539-
"hash": "7fb452214ccc18edd1bf870be4446c17"
18539+
"hash": "416d0ef5080ac4c3b75981b8b2861c89"
1854018540
},
1854118541
{
1854218542
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/CheckAutomatedSecurityFixes.php",
18543-
"hash": "fc0bb88c9ed5537e68c448e23541ae85"
18543+
"hash": "860fb6312909e0a99434b82421262ca6"
1854418544
},
1854518545
{
1854618546
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/CheckAutomatedSecurityFixesTest.php",
@@ -26104,7 +26104,7 @@
2610426104
},
2610526105
{
2610626106
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
26107-
"hash": "0c373aa912b020d5fcbb54c060aff63b"
26107+
"hash": "71c3f0d7eb9950e64ba78b7dea9c28bd"
2610826108
},
2610926109
{
2611026110
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -26656,7 +26656,7 @@
2665626656
},
2665726657
{
2665826658
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
26659-
"hash": "e4ece915c3acb049dcaeb3656b2fcd3c"
26659+
"hash": "dbaa988cd9f5e2e6c27c250b8a97abea"
2666026660
},
2666126661
{
2666226662
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
@@ -26796,7 +26796,7 @@
2679626796
},
2679726797
{
2679826798
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php",
26799-
"hash": "9831d4679df3e77b9d2fa3e3a736c68d"
26799+
"hash": "b4412ecd1e12199e999030fd32b8cadb"
2680026800
},
2680126801
{
2680226802
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Eight.php",
@@ -26864,7 +26864,7 @@
2686426864
},
2686526865
{
2686626866
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operators.php",
26867-
"hash": "1e5cd2f1a2c221d8404de1eeefed65b2"
26867+
"hash": "7c08588cc01a40c3500fe88b4765dd22"
2686826868
},
2686926869
{
2687026870
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php",
@@ -29036,7 +29036,7 @@
2903629036
},
2903729037
{
2903829038
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
29039-
"hash": "71e9bc2a9195436ddaec42c7f2a4715c"
29039+
"hash": "852f01f0f34d552cbfcffd7818e16c49"
2904029040
},
2904129041
{
2904229042
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
@@ -29872,11 +29872,11 @@
2987229872
},
2987329873
{
2987429874
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29875-
"hash": "8c7f8e1a0105b2d7f1b6584917827fe6"
29875+
"hash": "c3ffa66ddb514fb2471b37b74c438116"
2987629876
},
2987729877
{
2987829878
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29879-
"hash": "99a2844d0f28bf7cd062b18aee15340a"
29879+
"hash": "e7d4d37a03cc854e085980121cd43a4d"
2988029880
},
2988129881
{
2988229882
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -32108,11 +32108,11 @@
3210832108
},
3210932109
{
3211032110
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfiguration.php",
32111-
"hash": "3341187a209a90f2b10cb79bd47f9d59"
32111+
"hash": "bf9eff31f52d39e4dcde09b1d5bf3dff"
3211232112
},
3211332113
{
3211432114
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityDefaultConfigurations.php",
32115-
"hash": "1a269812625a5b0d90423a9e60a7fd32"
32115+
"hash": "476f525b3f0e3cf4f0383a7095048d80"
3211632116
},
3211732117
{
3211832118
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationRepositories.php",
@@ -32128,11 +32128,11 @@
3212832128
},
3212932129
{
3213032130
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/CreateConfiguration\/Request\/ApplicationJson.php",
32131-
"hash": "70ca3565c47243a84c60f426587fc68f"
32131+
"hash": "caf98e84c01b2bda75c9f8fb234c3e48"
3213232132
},
3213332133
{
3213432134
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/UpdateConfiguration\/Request\/ApplicationJson.php",
32135-
"hash": "7c88017552b07c528b58691e0391cc63"
32135+
"hash": "0cc618e1c15b644a90cea0a82c5d8619"
3213632136
},
3213732137
{
3213832138
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/AttachConfiguration\/Request\/ApplicationJson.php",
@@ -32144,7 +32144,7 @@
3214432144
},
3214532145
{
3214632146
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/CodeSecurity\/SetConfigurationAsDefault\/Response\/ApplicationJson\/Ok.php",
32147-
"hash": "d2a6d33fc09781cb2087e118cb78a71f"
32147+
"hash": "2a82a65cdcb5818d5dc0a318141d0097"
3214832148
},
3214932149
{
3215032150
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php",
@@ -32160,35 +32160,35 @@
3216032160
},
3216132161
{
3216232162
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/CodeSecurity.php",
32163-
"hash": "7e3852818ad63e7ef30f876edac9fd17"
32163+
"hash": "5ecabdbfe502463d6759ef56c4ca3b6f"
3216432164
},
3216532165
{
3216632166
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Put\/CodeSecurity.php",
3216732167
"hash": "8afdb5651e457b79c7559ac05efb1a3a"
3216832168
},
3216932169
{
3217032170
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
32171-
"hash": "8373b91ddf815fa9b96b239e1e29919a"
32171+
"hash": "505f359429cf9e06b99e23994acf0466"
3217232172
},
3217332173
{
3217432174
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php",
32175-
"hash": "f827cf3e0d3cb158bab412b7a68ef62f"
32175+
"hash": "06e6d467b07e71313569626cdf07cf98"
3217632176
},
3217732177
{
3217832178
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/Defaults.php",
3217932179
"hash": "d8d8bb200f5309bf496eedcd1cdcb4b3"
3218032180
},
3218132181
{
3218232182
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId.php",
32183-
"hash": "0e244032a9f0ee5120674e09727affda"
32183+
"hash": "df348538f69a80a86386c95f8609abf9"
3218432184
},
3218532185
{
3218632186
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Attach.php",
3218732187
"hash": "f9bb312af95b88375484439d2674a9c1"
3218832188
},
3218932189
{
3219032190
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Defaults.php",
32191-
"hash": "cf193f99054a5a4a3d9788c92f17967e"
32191+
"hash": "44ded355443c1513af4369e180120b5c"
3219232192
},
3219332193
{
3219432194
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/ConfigurationId\/Repositories.php",
@@ -32597,6 +32597,26 @@
3259732597
{
3259832598
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet84990AD5\/Tiet4DC2FD40\/TietC1C8F365\/Tiet342E1A6B.php",
3259932599
"hash": "a72a637a71a20cd7c526a9389260bff3"
32600+
},
32601+
{
32602+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeSecurity\/DetachConfiguration.php",
32603+
"hash": "f8ef811d75ccdaea8a8f99cd4ae01c8a"
32604+
},
32605+
{
32606+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/DetachConfiguration.php",
32607+
"hash": "29d92ebee0d04a8fdeff42aec5f48d44"
32608+
},
32609+
{
32610+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/DetachConfigurationTest.php",
32611+
"hash": "179fabd75f98e4a9f34c051a90c865b5"
32612+
},
32613+
{
32614+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurity\/DetachConfiguration\/Request\/ApplicationJson.php",
32615+
"hash": "9901a5f3be3a9a6683dffbef64d19027"
32616+
},
32617+
{
32618+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations\/Detach.php",
32619+
"hash": "7eb7c0c3321e7e5c5cba5ae089b01d58"
3260032620
}
3260132621
]
3260232622
},

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