Skip to content

[GitHub] Update to 1.1.4-7fb0426f383ed9712cce3fdba9572d5a from 1.1.4-b1df7aeeba72bb96f2ca61a7edd34136 #1487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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/GitHub/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9021,7 +9021,7 @@ $client->operations()->hostedCompute()->listNetworkConfigurationsForOrg(
);
```

You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#list-hosted-compute-network-configurations-for-an-organization).


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

You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#create-a-hosted-compute-network-configuration-for-an-organization).


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

You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#get-a-hosted-compute-network-configuration-for-an-organization).


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

You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#delete-a-hosted-compute-network-configuration-from-an-organization).


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

You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#update-a-hosted-compute-network-configuration-for-an-organization).


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

You can find more about this operation over at the [API method documentation](https://docs.github.com/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/rest/orgs/network-configurations#get-a-hosted-compute-network-settings-resource-for-an-organization).


### copilot/copilot-metrics-for-team
Expand Down
94 changes: 47 additions & 47 deletions clients/GitHub/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\GitHub\Schema\CvssSeverities\CvssVThree;
use ApiClients\Client\GitHub\Schema\GlobalAdvisory;
use ApiClients\Client\GitHub\Schema\GlobalAdvisory\Cvss;
use ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss;
use ApiClients\Client\GitHub\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\GitHub\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($payload),
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload),
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload),
'ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($payload),
'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($payload),
'ApiClients\Client\GitHub\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️BasicError($payload),
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
};
Expand Down Expand Up @@ -300,17 +300,6 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob

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⚡️GitHub⚡️Schema⚡️Glob
if (is_array($value)) {
try {
$this->hydrationStack[] = 'epss';
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️GlobalAdvisory⚡️Epss($value);
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($value);
} finally {
array_pop($this->hydrationStack);
}
Expand All @@ -331,6 +320,17 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Glob

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⚡️GitHub⚡️Schema⚡️Cvss
}
}

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

after_percentile:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack);
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\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\GitHub\Schema\GlobalAdvisory\Epss', $exception, stack: $this->hydrationStack);
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss', $exception, stack: $this->hydrationStack);
}
}

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

$epss = $object->epss;

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

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

$cwes = $object->cwes;

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

$epss = $object->epss;

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

$epss = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️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⚡️GitHub⚡️Schema
return $result;
}

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

$percentage = $object->percentage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability;
use ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion;
use ApiClients\Client\GitHub\Schema\ScimError;
use ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss;
use ApiClients\Client\GitHub\Schema\SimpleUser;
use ApiClients\Client\GitHub\Schema\ValidationErrorSimple;
use EventSauce\ObjectHydrator\IterableList;
Expand Down Expand Up @@ -61,6 +62,7 @@ public function hydrateObject(string $className, array $payload): object
'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($payload),
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($payload),
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($payload),
'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($payload),
'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability($payload),
'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($payload),
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($payload),
Expand Down Expand Up @@ -504,6 +506,26 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Depe

after_cvssSeverities:

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

if ($value === null) {
$properties['epss'] = null;
goto after_epss;
}

if (is_array($value)) {
try {
$this->hydrationStack[] = 'epss';
$value = $this->hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($value);
} finally {
array_pop($this->hydrationStack);
}
}

$properties['epss'] = $value;

after_epss:

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

if ($value === null) {
Expand Down Expand Up @@ -766,6 +788,47 @@ private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️Cvss
}
}

private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss(array $payload): SecurityAdvisoryEpss
{
$properties = [];
$missingFields = [];
try {
$value = $payload['percentage'] ?? null;

if ($value === null) {
$properties['percentage'] = null;
goto after_percentage;
}

$properties['percentage'] = $value;

after_percentage:

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

if ($value === null) {
$properties['percentile'] = null;
goto after_percentile;
}

$properties['percentile'] = $value;

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

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

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

private function hydrateApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability(array $payload): DependabotAlertSecurityVulnerability
{
$properties = [];
Expand Down Expand Up @@ -1377,6 +1440,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
'ApiClients\Client\GitHub\Schema\CvssSeverities' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($object),
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVThree' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVThree($object),
'ApiClients\Client\GitHub\Schema\CvssSeverities\CvssVFour' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities⚡️CvssVFour($object),
'ApiClients\Client\GitHub\Schema\SecurityAdvisoryEpss' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SecurityAdvisoryEpss($object),
'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability($object),
'ApiClients\Client\GitHub\Schema\DependabotAlertSecurityVulnerability\FirstPatchedVersion' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability⚡️FirstPatchedVersion($object),
'ApiClients\Client\GitHub\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️SimpleUser($object),
Expand Down Expand Up @@ -1627,6 +1691,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
$cvssSeverities = $this->serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️CvssSeverities($cvssSeverities);
after_cvssSeverities: $result['cvss_severities'] = $cvssSeverities;

$epss = $object->epss;

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

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

$cwes = $object->cwes;
static $cwesSerializer0;

Expand Down Expand Up @@ -1767,6 +1840,30 @@ private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema
return $result;
}

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

$percentage = $object->percentage;

if ($percentage === null) {
goto after_percentage;
}

after_percentage: $result['percentage'] = $percentage;

$percentile = $object->percentile;

if ($percentile === null) {
goto after_percentile;
}

after_percentile: $result['percentile'] = $percentile;

return $result;
}

private function serializeObjectApiClients⚡️Client⚡️GitHub⚡️Schema⚡️DependabotAlertSecurityVulnerability(mixed $object): mixed
{
assert($object instanceof DependabotAlertSecurityVulnerability);
Expand Down
Loading
Loading