Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions clients/GitHubEnterpriseCloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11911,7 +11911,7 @@ $client->operations()->hostedCompute()->listNetworkConfigurationsForOrg(
);
```

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).
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).


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

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).
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).


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

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).
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).


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

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).
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).


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

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).
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).


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

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).
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).


### teams/list-idp-groups-for-org
Expand Down
114 changes: 57 additions & 57 deletions clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree;
use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory;
use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Cvss;
use ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss;
use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss;
use EventSauce\ObjectHydrator\IterableList;
use EventSauce\ObjectHydrator\ObjectMapper;
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
Expand Down Expand Up @@ -51,7 +51,7 @@ public function hydrateObject(string $className, array $payload): object
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities($payload),
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload),
'ApiClients\Client\GitHubEnterpriseCloud\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload),
'ApiClients\Client\GitHubEnterpriseCloud\Schema\GlobalAdvisory\Epss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($payload),
'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($payload),
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload),
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
};
Expand Down Expand Up @@ -300,17 +300,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S

after_cvssSeverities:

$value = $payload['cwes'] ?? null;

if ($value === null) {
$properties['cwes'] = null;
goto after_cwes;
}

$properties['cwes'] = $value;

after_cwes:

$value = $payload['epss'] ?? null;

if ($value === null) {
Expand All @@ -321,7 +310,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
if (is_array($value)) {
try {
$this->hydrationStack[] = 'epss';
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($value);
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($value);
} finally {
array_pop($this->hydrationStack);
}
Expand All @@ -331,6 +320,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S

after_epss:

$value = $payload['cwes'] ?? null;

if ($value === null) {
$properties['cwes'] = null;
goto after_cwes;
}

$properties['cwes'] = $value;

after_cwes:

$value = $payload['credits'] ?? null;

if ($value === null) {
Expand Down Expand Up @@ -538,7 +538,7 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
}
}

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

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

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

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

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

$epss = $object->epss;

if ($epss === null) {
goto after_epss;
}

$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss($epss);
after_epss: $result['epss'] = $epss;

$cwes = $object->cwes;

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

$epss = $object->epss;

if ($epss === null) {
goto after_epss;
}

$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss($epss);
after_epss: $result['epss'] = $epss;

$credits = $object->credits;

if ($credits === null) {
Expand Down Expand Up @@ -1030,9 +1030,9 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou
return $result;
}

private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️GlobalAdvisory⚡️Epss(mixed $object): mixed
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAdvisoryEpss(mixed $object): mixed
{
assert($object instanceof Epss);
assert($object instanceof SecurityAdvisoryEpss);
$result = [];

$percentage = $object->percentage;
Expand Down
Loading
Loading