Skip to content

Commit bde9669

Browse files
authored
Merge pull request #1483 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-6e57e5a946cc639968a53e5f4602f4f7-from-1.1.4-6e57e5a946cc639968a53e5f4602f4f7
2 parents f08b406 + 7119757 commit bde9669

File tree

55 files changed

+691
-192
lines changed

Some content is hidden

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

55 files changed

+691
-192
lines changed

clients/GitHubEnterpriseCloud/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -11911,7 +11911,7 @@ $client->operations()->hostedCompute()->listNetworkConfigurationsForOrg(
1191111911
);
1191211912
```
1191311913

11914-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#list-hosted-compute-network-configurations-for-an-organization).
11914+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization).
1191511915

1191611916

1191711917
### hosted-compute/create-network-configuration-for-org
@@ -11931,7 +11931,7 @@ $client->operations()->hostedCompute()->createNetworkConfigurationForOrg(
1193111931
);
1193211932
```
1193311933

11934-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization).
11934+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization).
1193511935

1193611936

1193711937
### hosted-compute/get-network-configuration-for-org
@@ -11953,7 +11953,7 @@ $client->operations()->hostedCompute()->getNetworkConfigurationForOrg( or
1195311953
);
1195411954
```
1195511955

11956-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization).
11956+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization).
1195711957

1195811958

1195911959
### hosted-compute/delete-network-configuration-from-org
@@ -11975,7 +11975,7 @@ $client->operations()->hostedCompute()->deleteNetworkConfigurationFromOrg(
1197511975
);
1197611976
```
1197711977

11978-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization).
11978+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization).
1197911979

1198011980

1198111981
### hosted-compute/update-network-configuration-for-org
@@ -11997,7 +11997,7 @@ $client->operations()->hostedCompute()->updateNetworkConfigurationForOrg(
1199711997
);
1199811998
```
1199911999

12000-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization).
12000+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization).
1200112001

1200212002

1200312003
### hosted-compute/get-network-settings-for-org
@@ -12019,7 +12019,7 @@ $client->operations()->hostedCompute()->getNetworkSettingsForOrg( org: 'g
1201912019
);
1202012020
```
1202112021

12022-
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/settings/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization).
12022+
You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization).
1202312023

1202412024

1202512025
### teams/list-idp-groups-for-org

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

+57-57
Large diffs are not rendered by default.

clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Advisories/GhsaId.php

+31-31
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree;
1111
use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory;
1212
use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Cvss;
13-
use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss;
13+
use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss;
1414
use EventSauce\ObjectHydrator\IterableList;
1515
use EventSauce\ObjectHydrator\ObjectMapper;
1616
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
@@ -51,7 +51,7 @@ public function hydrateObject(string $className, array $payload): object
5151
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($payload),
5252
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload),
5353
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload),
54-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($payload),
54+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($payload),
5555
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload),
5656
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
5757
};
@@ -300,17 +300,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
300300

301301
after_cvssSeverities:
302302

303-
$value = $payload['cwes'] ?? null;
304-
305-
if ($value === null) {
306-
$properties['cwes'] = null;
307-
goto after_cwes;
308-
}
309-
310-
$properties['cwes'] = $value;
311-
312-
after_cwes:
313-
314303
$value = $payload['epss'] ?? null;
315304

316305
if ($value === null) {
@@ -321,7 +310,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
321310
if (is_array($value)) {
322311
try {
323312
$this->hydrationStack[] = 'epss';
324-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($value);
313+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($value);
325314
} finally {
326315
array_pop($this->hydrationStack);
327316
}
@@ -331,6 +320,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
331320

332321
after_epss:
333322

323+
$value = $payload['cwes'] ?? null;
324+
325+
if ($value === null) {
326+
$properties['cwes'] = null;
327+
goto after_cwes;
328+
}
329+
330+
$properties['cwes'] = $value;
331+
332+
after_cwes:
333+
334334
$value = $payload['credits'] ?? null;
335335

336336
if ($value === null) {
@@ -538,7 +538,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
538538
}
539539
}
540540

541-
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss(array $payload): Epss
541+
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss
542542
{
543543
$properties = [];
544544
$missingFields = [];
@@ -565,17 +565,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
565565

566566
after_percentile:
567567
} catch (Throwable $exception) {
568-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack);
568+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
569569
}
570570

571571
if (count($missingFields) > 0) {
572-
throw UnableToHydrateObject::dueToMissingFields(Epss::class, $missingFields, stack: $this->hydrationStack);
572+
throw UnableToHydrateObject::dueToMissingFields(SecurityAdvisoryEpss::class, $missingFields, stack: $this->hydrationStack);
573573
}
574574

575575
try {
576-
return new Epss(...$properties);
576+
return new SecurityAdvisoryEpss(...$properties);
577577
} catch (Throwable $exception) {
578-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack);
578+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
579579
}
580580
}
581581

@@ -678,7 +678,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
678678
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($object),
679679
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object),
680680
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object),
681-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($object),
681+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($object),
682682
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object),
683683
default => throw new LogicException("No serialization defined for $className"),
684684
};
@@ -890,6 +890,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
890890
$cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($cvssSeverities);
891891
after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities;
892892

893+
$epss = $object->epss;
894+
895+
if ($epss === null) {
896+
goto after_epss;
897+
}
898+
899+
$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($epss);
900+
after_epss: $result['epss'] = $epss;
901+
893902
$cwes = $object->cwes;
894903

895904
if ($cwes === null) {
@@ -905,15 +914,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
905914
$cwes = $cwesSerializer0->serialize($cwes, $this);
906915
after_cwes: $result['cwes'] = $cwes;
907916

908-
$epss = $object->epss;
909-
910-
if ($epss === null) {
911-
goto after_epss;
912-
}
913-
914-
$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($epss);
915-
after_epss: $result['epss'] = $epss;
916-
917917
$credits = $object->credits;
918918

919919
if ($credits === null) {
@@ -1030,9 +1030,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
10301030
return $result;
10311031
}
10321032

1033-
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss(mixed $object): mixed
1033+
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed
10341034
{
1035-
assert($object instanceof Epss);
1035+
assert($object instanceof SecurityAdvisoryEpss);
10361036
$result = [];
10371037

10381038
$percentage = $object->percentage;

0 commit comments

Comments
 (0)