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
622 changes: 289 additions & 333 deletions clients/GitHubEnterprise-3.7/etc/openapi-client-generator.state

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple;
use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\Permissions;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner;
Expand Down Expand Up @@ -87,7 +86,6 @@ public function hydrateObject(string $className, array $payload): object
'ApiClients\Client\GitHubEnterprise\Schema\WebhookBranchProtectionRuleEdited\Changes\RequiredStatusChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️RequiredStatusChecks($payload),
'ApiClients\Client\GitHubEnterprise\Schema\WebhookBranchProtectionRuleEdited\Changes\RequiredStatusChecksEnforcementLevel' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️RequiredStatusChecksEnforcementLevel($payload),
'ApiClients\Client\GitHubEnterprise\Schema\WebhookBranchProtectionRuleEdited\Rule' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Rule($payload),
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
Expand Down Expand Up @@ -1321,26 +1319,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema

after_topics:

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

if ($value === null) {
$properties['customProperties'] = null;
goto after_customProperties;
}

if (is_array($value)) {
try {
$this->hydrationStack[] = 'customProperties';
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
} finally {
array_pop($this->hydrationStack);
}
}

$properties['customProperties'] = $value;

after_customProperties:

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

if ($value === null) {
Expand Down Expand Up @@ -5253,26 +5231,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
}
}

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
{
$properties = [];
$missingFields = [];
try {
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
}

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

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

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
{
$properties = [];
Expand Down Expand Up @@ -6109,15 +6067,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
$topics = $topicsSerializer0->serialize($topics, $this);
after_topics: $result['topics'] = $topics;

$customProperties = $object->customProperties;

if ($customProperties === null) {
goto after_customProperties;
}

$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
after_customProperties: $result['custom_properties'] = $customProperties;

$hasIssues = $object->hasIssues;
after_hasIssues: $result['has_issues'] = $hasIssues;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple;
use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\Permissions;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner;
Expand Down Expand Up @@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload),
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload),
'ApiClients\Client\GitHubEnterprise\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUserWebhooks($payload),
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
Expand Down Expand Up @@ -1310,26 +1308,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema

after_topics:

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

if ($value === null) {
$properties['customProperties'] = null;
goto after_customProperties;
}

if (is_array($value)) {
try {
$this->hydrationStack[] = 'customProperties';
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
} finally {
array_pop($this->hydrationStack);
}
}

$properties['customProperties'] = $value;

after_customProperties:

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

if ($value === null) {
Expand Down Expand Up @@ -3671,26 +3649,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
}
}

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
{
$properties = [];
$missingFields = [];
try {
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
}

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

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

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
{
$properties = [];
Expand Down Expand Up @@ -4529,15 +4487,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
$topics = $topicsSerializer0->serialize($topics, $this);
after_topics: $result['topics'] = $topics;

$customProperties = $object->customProperties;

if ($customProperties === null) {
goto after_customProperties;
}

$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
after_customProperties: $result['custom_properties'] = $customProperties;

$hasIssues = $object->hasIssues;
after_hasIssues: $result['has_issues'] = $hasIssues;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\License;
use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository;
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner;
use ApiClients\Client\GitHubEnterprise\Schema\SimpleCheckSuite;
Expand Down Expand Up @@ -95,7 +94,6 @@ public function hydrateObject(string $className, array $payload): object
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRequestedActionFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRequestedActionFormEncoded($payload),
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRerequested' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRerequested($payload),
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRerequestedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRerequestedFormEncoded($payload),
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
Expand Down Expand Up @@ -3640,26 +3638,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema

after_topics:

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

if ($value === null) {
$properties['customProperties'] = null;
goto after_customProperties;
}

if (is_array($value)) {
try {
$this->hydrationStack[] = 'customProperties';
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
} finally {
array_pop($this->hydrationStack);
}
}

$properties['customProperties'] = $value;

after_customProperties:

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

if ($value === null) {
Expand Down Expand Up @@ -6311,26 +6289,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
}
}

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
{
$properties = [];
$missingFields = [];
try {
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
}

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

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

private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
{
$properties = [];
Expand Down Expand Up @@ -8300,15 +8258,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
$topics = $topicsSerializer0->serialize($topics, $this);
after_topics: $result['topics'] = $topics;

$customProperties = $object->customProperties;

if ($customProperties === null) {
goto after_customProperties;
}

$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
after_customProperties: $result['custom_properties'] = $customProperties;

$hasIssues = $object->hasIssues;
after_hasIssues: $result['has_issues'] = $hasIssues;

Expand Down
Loading