Skip to content

Commit 2a943f7

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHubEnterpriseCloud] Update to 1.1.4-7adb0053077410f1b1c872d9cf17b27d from 1.1.4-6eb9e9cef1b918146f63de575281583f
Detected Schema changes: 2025-03-07 20:30:02 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 2025-03-07 20:30:02 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 2025-03-07 20:30:02 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-advisory-db.yaml └ error: open /__w/github-root/github-root/server-statistics-advisory-db.yaml: no such file or directory 2025-03-07 20:30:03 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 2025-03-07 20:30:03 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 2025-03-07 20:30:03 ERROR unable to open the rolodex file, check specification references and base path ├ file: /__w/github-root/github-root/server-statistics-advisory-db.yaml └ error: open /__w/github-root/github-root/server-statistics-advisory-db.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: component `server-statistics-advisory-db.yaml` does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: $.['server-statistics-actions.yaml'] [216424:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: $.['server-statistics-packages.yaml'] [216426:11] ERROR: cannot resolve reference `server-statistics-advisory-db.yaml`, it's missing: $.['server-statistics-advisory-db.yaml'] [216428: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: component `server-statistics-advisory-db.yaml` does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: $.['server-statistics-actions.yaml'] [216449:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: $.['server-statistics-packages.yaml'] [216451:11] ERROR: cannot resolve reference `server-statistics-advisory-db.yaml`, it's missing: $.['server-statistics-advisory-db.yaml'] [216453:11]
1 parent 09f556a commit 2a943f7

File tree

59 files changed

+932
-810
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+932
-810
lines changed

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

Lines changed: 81 additions & 77 deletions
Large diffs are not rendered by default.

clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/ExemptionRequestData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
4141

4242
if ($signature === 'data|type' && $value['type'] === 'secret_scanning_closure') {
4343
try {
44-
return $hydrator->hydrateObject(Schema\ExemptionRequestSecretScanningClosure::class, $value);
44+
return $hydrator->hydrateObject(Schema\DismissalRequestSecretScanning::class, $value);
4545
} catch (Throwable) {
4646
}
4747
}

clients/GitHubEnterpriseCloud/src/Internal/Attribute/CastUnionToType/Schema/ExemptionRequest/Metadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
3434

3535
if ($signature === 'alert_title|reason' && ($value['reason'] === 'fixed_later' || $value['reason'] === 'false_positive' || $value['reason'] === 'tests' || $value['reason'] === 'revoked')) {
3636
try {
37-
return $hydrator->hydrateObject(Schema\ExemptionRequestSecretScanningClosureMetadata::class, $value);
37+
return $hydrator->hydrateObject(Schema\DismissalRequestSecretScanningMetadata::class, $value);
3838
} catch (Throwable) {
3939
}
4040
}

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -298,17 +298,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
298298
$properties['source'] = $value;
299299

300300
after_source:
301-
302-
$value = $payload['version'] ?? null;
303-
304-
if ($value === null) {
305-
$missingFields[] = 'version';
306-
goto after_version;
307-
}
308-
309-
$properties['version'] = $value;
310-
311-
after_version:
312301
} catch (Throwable $exception) {
313302
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack);
314303
}
@@ -597,9 +586,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
597586
$source = $object->source;
598587
after_source: $result['source'] = $source;
599588

600-
$version = $object->version;
601-
after_version: $result['version'] = $version;
602-
603589
return $result;
604590
}
605591

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Actions/HostedRunners/HostedRunnerId.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
255255
$properties['source'] = $value;
256256

257257
after_source:
258-
259-
$value = $payload['version'] ?? null;
260-
261-
if ($value === null) {
262-
$missingFields[] = 'version';
263-
goto after_version;
264-
}
265-
266-
$properties['version'] = $value;
267-
268-
after_version:
269258
} catch (Throwable $exception) {
270259
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack);
271260
}
@@ -532,9 +521,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
532521
$source = $object->source;
533522
after_source: $result['source'] = $source;
534523

535-
$version = $object->version;
536-
after_version: $result['version'] = $version;
537-
538524
return $result;
539525
}
540526

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -298,17 +298,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
298298
$properties['source'] = $value;
299299

300300
after_source:
301-
302-
$value = $payload['version'] ?? null;
303-
304-
if ($value === null) {
305-
$missingFields[] = 'version';
306-
goto after_version;
307-
}
308-
309-
$properties['version'] = $value;
310-
311-
after_version:
312301
} catch (Throwable $exception) {
313302
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack);
314303
}
@@ -597,9 +586,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
597586
$source = $object->source;
598587
after_source: $result['source'] = $source;
599588

600-
$version = $object->version;
601-
after_version: $result['version'] = $version;
602-
603589
return $result;
604590
}
605591

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Actions/HostedRunners/HostedRunnerId.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
255255
$properties['source'] = $value;
256256

257257
after_source:
258-
259-
$value = $payload['version'] ?? null;
260-
261-
if ($value === null) {
262-
$missingFields[] = 'version';
263-
goto after_version;
264-
}
265-
266-
$properties['version'] = $value;
267-
268-
after_version:
269258
} catch (Throwable $exception) {
270259
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ActionsHostedRunnerPoolImage', $exception, stack: $this->hydrationStack);
271260
}
@@ -532,9 +521,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
532521
$source = $object->source;
533522
after_source: $result['source'] = $source;
534523

535-
$version = $object->version;
536-
after_version: $result['version'] = $version;
537-
538524
return $result;
539525
}
540526

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CodeScanning/Alerts/AlertNumber.php

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlertRule;
1313
use ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAnalysisTool;
1414
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable;
15+
use ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError;
1516
use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser;
1617
use EventSauce\ObjectHydrator\IterableList;
1718
use EventSauce\ObjectHydrator\ObjectMapper;
@@ -57,6 +58,7 @@ public function hydrateObject(string $className, array $payload): object
5758
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlertLocation' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeScanningAlertLocation($payload),
5859
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload),
5960
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($payload),
61+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($payload),
6062
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
6163
};
6264
}
@@ -1098,6 +1100,91 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
10981100
}
10991101
}
11001102

1103+
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError(array $payload): ScimError
1104+
{
1105+
$properties = [];
1106+
$missingFields = [];
1107+
try {
1108+
$value = $payload['message'] ?? null;
1109+
1110+
if ($value === null) {
1111+
$properties['message'] = null;
1112+
goto after_message;
1113+
}
1114+
1115+
$properties['message'] = $value;
1116+
1117+
after_message:
1118+
1119+
$value = $payload['documentation_url'] ?? null;
1120+
1121+
if ($value === null) {
1122+
$properties['documentationUrl'] = null;
1123+
goto after_documentationUrl;
1124+
}
1125+
1126+
$properties['documentationUrl'] = $value;
1127+
1128+
after_documentationUrl:
1129+
1130+
$value = $payload['detail'] ?? null;
1131+
1132+
if ($value === null) {
1133+
$properties['detail'] = null;
1134+
goto after_detail;
1135+
}
1136+
1137+
$properties['detail'] = $value;
1138+
1139+
after_detail:
1140+
1141+
$value = $payload['status'] ?? null;
1142+
1143+
if ($value === null) {
1144+
$properties['status'] = null;
1145+
goto after_status;
1146+
}
1147+
1148+
$properties['status'] = $value;
1149+
1150+
after_status:
1151+
1152+
$value = $payload['scim_type'] ?? null;
1153+
1154+
if ($value === null) {
1155+
$properties['scimType'] = null;
1156+
goto after_scimType;
1157+
}
1158+
1159+
$properties['scimType'] = $value;
1160+
1161+
after_scimType:
1162+
1163+
$value = $payload['schemas'] ?? null;
1164+
1165+
if ($value === null) {
1166+
$properties['schemas'] = null;
1167+
goto after_schemas;
1168+
}
1169+
1170+
$properties['schemas'] = $value;
1171+
1172+
after_schemas:
1173+
} catch (Throwable $exception) {
1174+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError', $exception, stack: $this->hydrationStack);
1175+
}
1176+
1177+
if (count($missingFields) > 0) {
1178+
throw UnableToHydrateObject::dueToMissingFields(ScimError::class, $missingFields, stack: $this->hydrationStack);
1179+
}
1180+
1181+
try {
1182+
return new ScimError(...$properties);
1183+
} catch (Throwable $exception) {
1184+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError', $exception, stack: $this->hydrationStack);
1185+
}
1186+
}
1187+
11011188
private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array
11021189
{
11031190
foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) {
@@ -1138,6 +1225,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
11381225
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodeScanningAlertLocation' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodeScanningAlertLocation($object),
11391226
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object),
11401227
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($object),
1228+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($object),
11411229
default => throw new LogicException("No serialization defined for $className"),
11421230
};
11431231
} catch (Throwable $exception) {
@@ -1752,6 +1840,69 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
17521840
return $result;
17531841
}
17541842

1843+
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError(mixed $object): mixed
1844+
{
1845+
assert($object instanceof ScimError);
1846+
$result = [];
1847+
1848+
$message = $object->message;
1849+
1850+
if ($message === null) {
1851+
goto after_message;
1852+
}
1853+
1854+
after_message: $result['message'] = $message;
1855+
1856+
$documentationUrl = $object->documentationUrl;
1857+
1858+
if ($documentationUrl === null) {
1859+
goto after_documentationUrl;
1860+
}
1861+
1862+
after_documentationUrl: $result['documentation_url'] = $documentationUrl;
1863+
1864+
$detail = $object->detail;
1865+
1866+
if ($detail === null) {
1867+
goto after_detail;
1868+
}
1869+
1870+
after_detail: $result['detail'] = $detail;
1871+
1872+
$status = $object->status;
1873+
1874+
if ($status === null) {
1875+
goto after_status;
1876+
}
1877+
1878+
after_status: $result['status'] = $status;
1879+
1880+
$scimType = $object->scimType;
1881+
1882+
if ($scimType === null) {
1883+
goto after_scimType;
1884+
}
1885+
1886+
after_scimType: $result['scim_type'] = $scimType;
1887+
1888+
$schemas = $object->schemas;
1889+
1890+
if ($schemas === null) {
1891+
goto after_schemas;
1892+
}
1893+
1894+
static $schemasSerializer0;
1895+
1896+
if ($schemasSerializer0 === null) {
1897+
$schemasSerializer0 = new SerializeArrayItems(...[]);
1898+
}
1899+
1900+
$schemas = $schemasSerializer0->serialize($schemas, $this);
1901+
after_schemas: $result['schemas'] = $schemas;
1902+
1903+
return $result;
1904+
}
1905+
17551906
/**
17561907
* @param class-string<T> $className
17571908
* @param iterable<array> $payloads;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
use function is_array;
4242
use function is_object;
4343

44-
class ExemptionRequestSecretScanningClosure implements ObjectMapper
44+
class DismissalRequestSecretScanning implements ObjectMapper
4545
{
4646
private array $hydrationStack = [];
4747

clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,6 @@ final class Hydrators implements ObjectMapper
789789
private Internal\Hydrator\WebHook\ExemptionRequestSecretScanning|null $webHook🪝ExemptionRequestSecretScanning = null;
790790
private Internal\Hydrator\WebHook\CheckRun|null $webHook🪝CheckRun = null;
791791
private Internal\Hydrator\WebHook\CheckSuite|null $webHook🪝CheckSuite = null;
792-
private Internal\Hydrator\WebHook\ExemptionRequestSecretScanningClosure|null $webHook🪝ExemptionRequestSecretScanningClosure = null;
793792
private Internal\Hydrator\WebHook\CodeScanningAlert|null $webHook🪝CodeScanningAlert = null;
794793
private Internal\Hydrator\WebHook\CommitComment|null $webHook🪝CommitComment = null;
795794
private Internal\Hydrator\WebHook\Create|null $webHook🪝Create = null;
@@ -804,6 +803,7 @@ final class Hydrators implements ObjectMapper
804803
private Internal\Hydrator\WebHook\DeploymentStatus|null $webHook🪝DeploymentStatus = null;
805804
private Internal\Hydrator\WebHook\Discussion|null $webHook🪝Discussion = null;
806805
private Internal\Hydrator\WebHook\DiscussionComment|null $webHook🪝DiscussionComment = null;
806+
private Internal\Hydrator\WebHook\DismissalRequestSecretScanning|null $webHook🪝DismissalRequestSecretScanning = null;
807807
private Internal\Hydrator\WebHook\Fork|null $webHook🪝Fork = null;
808808
private Internal\Hydrator\WebHook\GithubAppAuthorization|null $webHook🪝GithubAppAuthorization = null;
809809
private Internal\Hydrator\WebHook\Gollum|null $webHook🪝Gollum = null;
@@ -8680,15 +8680,6 @@ public function getObjectMapperWebHook🪝CheckSuite(): Internal\Hydrator\WebHoo
86808680
return $this->webHook🪝CheckSuite;
86818681
}
86828682

8683-
public function getObjectMapperWebHook🪝ExemptionRequestSecretScanningClosure(): Internal\Hydrator\WebHook\ExemptionRequestSecretScanningClosure
8684-
{
8685-
if ($this->webHook🪝ExemptionRequestSecretScanningClosure instanceof Internal\Hydrator\WebHook\ExemptionRequestSecretScanningClosure === false) {
8686-
$this->webHook🪝ExemptionRequestSecretScanningClosure = new Internal\Hydrator\WebHook\ExemptionRequestSecretScanningClosure();
8687-
}
8688-
8689-
return $this->webHook🪝ExemptionRequestSecretScanningClosure;
8690-
}
8691-
86928683
public function getObjectMapperWebHook🪝CodeScanningAlert(): Internal\Hydrator\WebHook\CodeScanningAlert
86938684
{
86948685
if ($this->webHook🪝CodeScanningAlert instanceof Internal\Hydrator\WebHook\CodeScanningAlert === false) {
@@ -8815,6 +8806,15 @@ public function getObjectMapperWebHook🪝DiscussionComment(): Internal\Hydrator
88158806
return $this->webHook🪝DiscussionComment;
88168807
}
88178808

8809+
public function getObjectMapperWebHook🪝DismissalRequestSecretScanning(): Internal\Hydrator\WebHook\DismissalRequestSecretScanning
8810+
{
8811+
if ($this->webHook🪝DismissalRequestSecretScanning instanceof Internal\Hydrator\WebHook\DismissalRequestSecretScanning === false) {
8812+
$this->webHook🪝DismissalRequestSecretScanning = new Internal\Hydrator\WebHook\DismissalRequestSecretScanning();
8813+
}
8814+
8815+
return $this->webHook🪝DismissalRequestSecretScanning;
8816+
}
8817+
88188818
public function getObjectMapperWebHook🪝Fork(): Internal\Hydrator\WebHook\Fork
88198819
{
88208820
if ($this->webHook🪝Fork instanceof Internal\Hydrator\WebHook\Fork === false) {

0 commit comments

Comments
 (0)