Skip to content

Commit 3378c7a

Browse files
WyriHaximusgithub-actions[bot]
authored andcommitted
[GitHubEnterpriseCloud] Update to 1.1.4-8aa51203644293fefbacb3175de170f9 from 1.1.4-75e34aeeed8a99a2532a8a0eee1f6ea6
Detected Schema changes: starting work. Building original model for commit 88047c 2024-06-21 17:29:07 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-06-21 17:29:07 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 2024-06-21 17:29:09 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-06-21 17:29:09 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 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: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [205663:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [205665: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: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [205611:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [205613:11]
1 parent eff2ed6 commit 3378c7a

File tree

51 files changed

+2881
-1210
lines changed

Some content is hidden

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

51 files changed

+2881
-1210
lines changed

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

Lines changed: 60 additions & 52 deletions
Large diffs are not rendered by default.

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/Orgs/Org/Copilot/Billing/Seats.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Hydrator\Operation\Orgs\Org\Copilot\Billing;
66

77
use ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError;
8-
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json;
8+
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok;
99
use EventSauce\ObjectHydrator\IterableList;
1010
use EventSauce\ObjectHydrator\ObjectMapper;
1111
use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems;
@@ -39,13 +39,13 @@ public function __construct()
3939
public function hydrateObject(string $className, array $payload): object
4040
{
4141
return match ($className) {
42-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($payload),
42+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok($payload),
4343
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload),
4444
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
4545
};
4646
}
4747

48-
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(array $payload): Json
48+
private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok(array $payload): Ok
4949
{
5050
$properties = [];
5151
$missingFields = [];
@@ -72,17 +72,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
7272

7373
after_seats:
7474
} catch (Throwable $exception) {
75-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack);
75+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack);
7676
}
7777

7878
if (count($missingFields) > 0) {
79-
throw UnableToHydrateObject::dueToMissingFields(Json::class, $missingFields, stack: $this->hydrationStack);
79+
throw UnableToHydrateObject::dueToMissingFields(Ok::class, $missingFields, stack: $this->hydrationStack);
8080
}
8181

8282
try {
83-
return new Json(...$properties);
83+
return new Ok(...$properties);
8484
} catch (Throwable $exception) {
85-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json', $exception, stack: $this->hydrationStack);
85+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok', $exception, stack: $this->hydrationStack);
8686
}
8787
}
8888

@@ -180,7 +180,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
180180
'DateTime' => $this->serializeValueDateTime($object),
181181
'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object),
182182
'DateTimeInterface' => $this->serializeValueDateTimeInterface($object),
183-
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json($object),
183+
'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok($object),
184184
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object),
185185
default => throw new LogicException('No serialization defined for $className'),
186186
};
@@ -244,9 +244,9 @@ private function serializeValueDateTimeInterface(mixed $value): mixed
244244
return $serializer->serialize($value, $this);
245245
}
246246

247-
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json(mixed $object): mixed
247+
private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok(mixed $object): mixed
248248
{
249-
assert($object instanceof Json);
249+
assert($object instanceof Ok);
250250
$result = [];
251251

252252
$totalSeats = $object->totalSeats;

0 commit comments

Comments
 (0)