Skip to content

Commit 9fe9892

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHubEnterpriseCloud] Update to 1.1.4-4224ec4c86b44609f234caeba5343480 from 1.1.4-b0eff1601830e8d5ba61c38811faf765
Detected Schema changes: starting work. Building original model for commit 309939 2024-03-08 17:23:55 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-03-08 17:23:55 ERROR unable to open the rolodex file, check specification references and base path ├ error: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory └ file: /__w/github-root/github-root/server-statistics-packages.yaml 2024-03-08 17:23:58 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-03-08 17:23:58 ERROR unable to open the rolodex file, check specification references and base path ├ error: open /__w/github-root/github-root/server-statistics-packages.yaml: no such file or directory └ file: /__w/github-root/github-root/server-statistics-packages.yaml SPEC: extracted 1 commits from history DONE: completed WARNING: warnings reported during processing ⚠️ Error thrown when comparing: component 'server-statistics-actions.yaml' does not exist in the specification
1 parent 5054cb6 commit 9fe9892

File tree

28 files changed

+499
-42
lines changed

28 files changed

+499
-42
lines changed

clients/GitHubEnterpriseCloud/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20807,6 +20807,28 @@ $client->operations()->repos()->getPagesHealthCheck( owner: 'generated',
2080720807
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/pages/pages#get-a-dns-health-check-for-github-pages).
2080820808

2080920809

20810+
### repos/check-private-vulnerability-reporting
20811+
20812+
Check if private vulnerability reporting is enabled for a repository
20813+
20814+
Using the `call` method:
20815+
```php
20816+
$client->call('GET /repos/{owner}/{repo}/private-vulnerability-reporting', [
20817+
'owner' => 'generated',
20818+
'repo' => 'generated',
20819+
]);
20820+
```
20821+
20822+
Operations method:
20823+
```php
20824+
$client->operations()->repos()->checkPrivateVulnerabilityReporting( owner: 'generated',
20825+
repo: 'generated',
20826+
);
20827+
```
20828+
20829+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/repos/repos#check-if-private-vulnerability-reporting-is-enabled-for-a-repository).
20830+
20831+
2081020832
### repos/enable-private-vulnerability-reporting
2081120833

2081220834
Enable private vulnerability reporting for a repository

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

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "b0eff1601830e8d5ba61c38811faf765",
2+
"specHash": "4224ec4c86b44609f234caeba5343480",
33
"generatedFiles": {
44
"files": [
55
{
@@ -6056,11 +6056,11 @@
60566056
},
60576057
{
60586058
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/ClientInterface.php",
6059-
"hash": "334077f41e0c159341074a174ac707a2"
6059+
"hash": "2876b55a7e9742ee87991e25ee2a8ca7"
60606060
},
60616061
{
60626062
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Client.php",
6063-
"hash": "2e63591f65193997ae5a53ea9820c1d0"
6063+
"hash": "b68b513f7884bca9dffdd40220bc03e8"
60646064
},
60656065
{
60666066
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/OperationsInterface.php",
@@ -6088,7 +6088,7 @@
60886088
},
60896089
{
60906090
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Actions.php",
6091-
"hash": "d4efc8cd69a53ac3a0dce9537430599a"
6091+
"hash": "1a8b3a499a1d8181b6d80fd6a019cf1e"
60926092
},
60936093
{
60946094
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/AnnouncementBanners.php",
@@ -6168,7 +6168,7 @@
61686168
},
61696169
{
61706170
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
6171-
"hash": "22159e12b2050c976d15328c9a8c8a0d"
6171+
"hash": "9057652896374d30ae16a6e3febace3f"
61726172
},
61736173
{
61746174
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -6188,7 +6188,7 @@
61886188
},
61896189
{
61906190
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Git.php",
6191-
"hash": "cb867ca56f695bec282ca7daced70163"
6191+
"hash": "1970a643c7c584392562fbec7be62a18"
61926192
},
61936193
{
61946194
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Pulls.php",
@@ -22288,7 +22288,7 @@
2228822288
},
2228922289
{
2229022290
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Git\/ListMatchingRefs.php",
22291-
"hash": "96c9ee97dc9e6c6d72f73c3cfb6e4083"
22291+
"hash": "e01dc6435ac595bedc5f722ac8642541"
2229222292
},
2229322293
{
2229422294
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Git\/ListMatchingRefsTest.php",
@@ -22300,7 +22300,7 @@
2230022300
},
2230122301
{
2230222302
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Git\/GetRef.php",
22303-
"hash": "d50a7a99a85706ed2f5782f20b54204a"
22303+
"hash": "932bb5c07d5b3e691e0c13c328e8e0af"
2230422304
},
2230522305
{
2230622306
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Git\/GetRefTest.php",
@@ -22324,7 +22324,7 @@
2232422324
},
2232522325
{
2232622326
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Git\/DeleteRef.php",
22327-
"hash": "fdcfa7e13f59a4427c9305841a3f4db7"
22327+
"hash": "f624119ca02ae3eddd61f102210afd96"
2232822328
},
2232922329
{
2233022330
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Git\/DeleteRefTest.php",
@@ -22336,7 +22336,7 @@
2233622336
},
2233722337
{
2233822338
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Git\/UpdateRef.php",
22339-
"hash": "a4d4b2ec2550b4383bc5bad0d061bd02"
22339+
"hash": "af7ec138d1002437a1c919d590336207"
2234022340
},
2234122341
{
2234222342
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Git\/UpdateRefTest.php",
@@ -27988,7 +27988,7 @@
2798827988
},
2798927989
{
2799027990
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php",
27991-
"hash": "0042f53b470938033bb8d793152eb66b"
27991+
"hash": "b114ffaa41c62ec841e8976197e490bb"
2799227992
},
2799327993
{
2799427994
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php",
@@ -28084,7 +28084,7 @@
2808428084
},
2808528085
{
2808628086
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Git.php",
28087-
"hash": "c89cebb5fcc3fc74c1e9e5a56c8e927c"
28087+
"hash": "9f0c69481fe97587544a1adc90774ab3"
2808828088
},
2808928089
{
2809028090
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Apps.php",
@@ -28264,7 +28264,7 @@
2826428264
},
2826528265
{
2826628266
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Git.php",
28267-
"hash": "eef565287fe024eca0c0905d4188db33"
28267+
"hash": "1585fe244ad15d8b317cbfa5bf21fe09"
2826828268
},
2826928269
{
2827028270
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Scim.php",
@@ -28416,7 +28416,7 @@
2841628416
},
2841728417
{
2841828418
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Git.php",
28419-
"hash": "0f5ad197191514b2d0bb24745212158e"
28419+
"hash": "05ba7ca50b093ee53062180af560d8fd"
2842028420
},
2842128421
{
2842228422
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Issues.php",
@@ -28540,15 +28540,15 @@
2854028540
},
2854128541
{
2854228542
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
28543-
"hash": "da8afc25858bf9ab936a233e4966b47d"
28543+
"hash": "a4dfc06a1df3716451c26592c8e9a526"
2854428544
},
2854528545
{
2854628546
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
2854728547
"hash": "235315888f2b2ae8172ed4c70bb5f824"
2854828548
},
2854928549
{
2855028550
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
28551-
"hash": "9d44a9058774a66a9d9654d2c40a51e9"
28551+
"hash": "dca3bb3d796e7dbd21f8efbc58997fed"
2855228552
},
2855328553
{
2855428554
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php",
@@ -28616,7 +28616,7 @@
2861628616
},
2861728617
{
2861828618
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Seven.php",
28619-
"hash": "840162c65502ab8ebba388145971495c"
28619+
"hash": "1841a5e0cff0779dd790aede04069e0d"
2862028620
},
2862128621
{
2862228622
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Nine.php",
@@ -28676,7 +28676,7 @@
2867628676
},
2867728677
{
2867828678
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Seven.php",
28679-
"hash": "ae3f68ce0585ff83cfb522e8a038dfe3"
28679+
"hash": "ae054b6c93d15524d866a48e63ceef4b"
2868028680
},
2868128681
{
2868228682
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php",
@@ -28748,7 +28748,7 @@
2874828748
},
2874928749
{
2875028750
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operators.php",
28751-
"hash": "e6a685d92df2cc278668a20de9a7a413"
28751+
"hash": "6509f0d5e5b6213ad217af16569b29f8"
2875228752
},
2875328753
{
2875428754
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php",
@@ -30308,7 +30308,7 @@
3030830308
},
3030930309
{
3031030310
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/PrivateVulnerabilityReporting.php",
30311-
"hash": "1d391ce33b5c013d9fdd790a86b6912a"
30311+
"hash": "c05f2094b3e27e5dd0e63164699b19ab"
3031230312
},
3031330313
{
3031430314
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Projects.php",
@@ -30920,7 +30920,7 @@
3092030920
},
3092130921
{
3092230922
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php",
30923-
"hash": "3a728e5e883238c8fc5538dcdd42ac15"
30923+
"hash": "b2c998cc1d81dd2f812da34ed8888b82"
3092430924
},
3092530925
{
3092630926
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php",
@@ -31788,11 +31788,11 @@
3178831788
},
3178931789
{
3179031790
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
31791-
"hash": "95e00fc10384ba39689d84b2d8e816f7"
31791+
"hash": "9631adf22e499adbbf44bee9414173f8"
3179231792
},
3179331793
{
3179431794
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
31795-
"hash": "324bf7f286bdee3825ce4e2c2793029a"
31795+
"hash": "4d7e5b21de8d8d916b67232101677a6c"
3179631796
},
3179731797
{
3179831798
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -32805,6 +32805,22 @@
3280532805
{
3280632806
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookMemberAdded\/Changes\/RoleName.php",
3280732807
"hash": "a2edadd4d61db8fa7aaadecc60d68a33"
32808+
},
32809+
{
32810+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Repos\/CheckPrivateVulnerabilityReporting.php",
32811+
"hash": "4c7219bc75b06897dd841f6aa34d30ac"
32812+
},
32813+
{
32814+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/CheckPrivateVulnerabilityReporting.php",
32815+
"hash": "c0aa7e88e8d8fd1ecc891a93cece61d7"
32816+
},
32817+
{
32818+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/CheckPrivateVulnerabilityReportingTest.php",
32819+
"hash": "bdec31e22f1c55eed2d00eac65b7bd0c"
32820+
},
32821+
{
32822+
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/CheckPrivateVulnerabilityReporting\/Response\/ApplicationJson\/Ok.php",
32823+
"hash": "d096047cbff36da9e4079a08003f22d6"
3280832824
}
3280932825
]
3281032826
},

clients/GitHubEnterpriseCloud/src/Client.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHubEnterpriseCloud/src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/PrivateVulnerabilityReporting.php

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Repos\Owner\Repo;
66

77
use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError;
8+
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok;
89
use ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError;
910
use EventSauce\ObjectHydrator\IterableList;
1011
use EventSauce\ObjectHydrator\ObjectMapper;
@@ -39,12 +40,43 @@ public function __construct()
3940
public function hydrateObject(string $className, array $payload): object
4041
{
4142
return match ($className) {
42-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload),
43+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Repos⚡️CheckPrivateVulnerabilityReporting⚡️Response⚡️ApplicationJson⚡️Ok($payload),
44+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload),
4345
'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($payload),
4446
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
4547
};
4648
}
4749

50+
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Repos⚡️CheckPrivateVulnerabilityReporting⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok
51+
{
52+
$properties = [];
53+
$missingFields = [];
54+
try {
55+
$value = $payload['enabled'] ?? null;
56+
57+
if ($value === null) {
58+
$missingFields[] = 'enabled';
59+
goto after_enabled;
60+
}
61+
62+
$properties['enabled'] = $value;
63+
64+
after_enabled:
65+
} catch (Throwable $exception) {
66+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack);
67+
}
68+
69+
if (count($missingFields) > 0) {
70+
throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack);
71+
}
72+
73+
try {
74+
return new Ok(...$properties);
75+
} catch (Throwable $exception) {
76+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack);
77+
}
78+
}
79+
4880
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError
4981
{
5082
$properties = [];
@@ -224,6 +256,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
224256
'DateTime' => $this->serializeValueDateTime($object),
225257
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
226258
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
259+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Repos⚡️CheckPrivateVulnerabilityReporting⚡️Response⚡️ApplicationJson⚡️Ok($object),
227260
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object),
228261
'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($object),
229262
default => throw new LogicException('No serialization defined for $className'),
@@ -288,6 +321,17 @@ private function serializeValueDateTimeInterface(mixed $value): mixed
288321
return $serializer->serialize($value, $this);
289322
}
290323

324+
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Repos⚡️CheckPrivateVulnerabilityReporting⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed
325+
{
326+
assert($object instanceof Ok);
327+
$result = [];
328+
329+
$enabled = $object->enabled;
330+
after_enabled: $result['enabled'] = $enabled;
331+
332+
return $result;
333+
}
334+
291335
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed
292336
{
293337
assert($object instanceof BasicError);

0 commit comments

Comments
 (0)