Skip to content

[GitHubEnterprise-3.9] Update to 1.1.4-a75cad5f793fe1b279bd4691d9c9ce58 from 1.1.4-ac5f2a744766b192f47d36d4902a6550 #914

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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
628 changes: 292 additions & 336 deletions clients/GitHubEnterprise-3.9/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\SecurityAndAnalysis;
Expand Down Expand Up @@ -103,7 +102,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 @@ -3837,26 +3835,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 @@ -6508,26 +6486,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 @@ -8593,15 +8551,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