Skip to content

Commit 59f5ee8

Browse files
authored
Merge pull request #913 from php-api-clients/GitHubEnterprise-3.8/from-1.1.4-c50f484fd22ccbf793050b10a1a6ddb1-from-1.1.4-c50f484fd22ccbf793050b10a1a6ddb1
2 parents e70f951 + b3cbc56 commit 59f5ee8

File tree

299 files changed

+1211
-6804
lines changed

Some content is hidden

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

299 files changed

+1211
-6804
lines changed

clients/GitHubEnterprise-3.8/etc/openapi-client-generator.state

Lines changed: 290 additions & 334 deletions
Large diffs are not rendered by default.

clients/GitHubEnterprise-3.8/src/Internal/Hydrator/WebHook/BranchProtectionRule.php

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple;
99
use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks;
1010
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks;
11-
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties;
1211
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\Permissions;
1312
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository;
1413
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner;
@@ -87,7 +86,6 @@ public function hydrateObject(string $className, array $payload): object
8786
'ApiClients\Client\GitHubEnterprise\Schema\WebhookBranchProtectionRuleEdited\Changes\RequiredStatusChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️RequiredStatusChecks($payload),
8887
'ApiClients\Client\GitHubEnterprise\Schema\WebhookBranchProtectionRuleEdited\Changes\RequiredStatusChecksEnforcementLevel' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Changes⚡️RequiredStatusChecksEnforcementLevel($payload),
8988
'ApiClients\Client\GitHubEnterprise\Schema\WebhookBranchProtectionRuleEdited\Rule' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookBranchProtectionRuleEdited⚡️Rule($payload),
90-
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
9189
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
9290
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
9391
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -1321,26 +1319,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
13211319

13221320
after_topics:
13231321

1324-
$value = $payload['custom_properties'] ?? null;
1325-
1326-
if ($value === null) {
1327-
$properties['customProperties'] = null;
1328-
goto after_customProperties;
1329-
}
1330-
1331-
if (is_array($value)) {
1332-
try {
1333-
$this->hydrationStack[] = 'customProperties';
1334-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
1335-
} finally {
1336-
array_pop($this->hydrationStack);
1337-
}
1338-
}
1339-
1340-
$properties['customProperties'] = $value;
1341-
1342-
after_customProperties:
1343-
13441322
$value = $payload['has_issues'] ?? null;
13451323

13461324
if ($value === null) {
@@ -5253,26 +5231,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
52535231
}
52545232
}
52555233

5256-
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
5257-
{
5258-
$properties = [];
5259-
$missingFields = [];
5260-
try {
5261-
} catch (Throwable $exception) {
5262-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
5263-
}
5264-
5265-
if (count($missingFields) > 0) {
5266-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
5267-
}
5268-
5269-
try {
5270-
return new CustomProperties(...$properties);
5271-
} catch (Throwable $exception) {
5272-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
5273-
}
5274-
}
5275-
52765234
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
52775235
{
52785236
$properties = [];
@@ -6109,15 +6067,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
61096067
$topics = $topicsSerializer0->serialize($topics, $this);
61106068
after_topics: $result['topics'] = $topics;
61116069

6112-
$customProperties = $object->customProperties;
6113-
6114-
if ($customProperties === null) {
6115-
goto after_customProperties;
6116-
}
6117-
6118-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
6119-
after_customProperties: $result['custom_properties'] = $customProperties;
6120-
61216070
$hasIssues = $object->hasIssues;
61226071
after_hasIssues: $result['has_issues'] = $hasIssues;
61236072

clients/GitHubEnterprise-3.8/src/Internal/Hydrator/WebHook/CacheSync.php

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use ApiClients\Client\GitHubEnterprise\Schema\LicenseSimple;
99
use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks;
1010
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks;
11-
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties;
1211
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\Permissions;
1312
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository;
1413
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner;
@@ -63,7 +62,6 @@ public function hydrateObject(string $className, array $payload): object
6362
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Owner($payload),
6463
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload),
6564
'ApiClients\Client\GitHubEnterprise\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUserWebhooks($payload),
66-
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
6765
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
6866
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
6967
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -1310,26 +1308,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
13101308

13111309
after_topics:
13121310

1313-
$value = $payload['custom_properties'] ?? null;
1314-
1315-
if ($value === null) {
1316-
$properties['customProperties'] = null;
1317-
goto after_customProperties;
1318-
}
1319-
1320-
if (is_array($value)) {
1321-
try {
1322-
$this->hydrationStack[] = 'customProperties';
1323-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
1324-
} finally {
1325-
array_pop($this->hydrationStack);
1326-
}
1327-
}
1328-
1329-
$properties['customProperties'] = $value;
1330-
1331-
after_customProperties:
1332-
13331311
$value = $payload['has_issues'] ?? null;
13341312

13351313
if ($value === null) {
@@ -3671,26 +3649,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
36713649
}
36723650
}
36733651

3674-
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
3675-
{
3676-
$properties = [];
3677-
$missingFields = [];
3678-
try {
3679-
} catch (Throwable $exception) {
3680-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
3681-
}
3682-
3683-
if (count($missingFields) > 0) {
3684-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
3685-
}
3686-
3687-
try {
3688-
return new CustomProperties(...$properties);
3689-
} catch (Throwable $exception) {
3690-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
3691-
}
3692-
}
3693-
36943652
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
36953653
{
36963654
$properties = [];
@@ -4529,15 +4487,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
45294487
$topics = $topicsSerializer0->serialize($topics, $this);
45304488
after_topics: $result['topics'] = $topics;
45314489

4532-
$customProperties = $object->customProperties;
4533-
4534-
if ($customProperties === null) {
4535-
goto after_customProperties;
4536-
}
4537-
4538-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
4539-
after_customProperties: $result['custom_properties'] = $customProperties;
4540-
45414490
$hasIssues = $object->hasIssues;
45424491
after_hasIssues: $result['has_issues'] = $hasIssues;
45434492

clients/GitHubEnterprise-3.8/src/Internal/Hydrator/WebHook/CheckRun.php

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use ApiClients\Client\GitHubEnterprise\Schema\MinimalRepository\License;
1616
use ApiClients\Client\GitHubEnterprise\Schema\OrganizationSimpleWebhooks;
1717
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks;
18-
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties;
1918
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository;
2019
use ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Owner;
2120
use ApiClients\Client\GitHubEnterprise\Schema\SimpleCheckSuite;
@@ -95,7 +94,6 @@ public function hydrateObject(string $className, array $payload): object
9594
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRequestedActionFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRequestedActionFormEncoded($payload),
9695
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRerequested' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRerequested($payload),
9796
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRerequestedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRerequestedFormEncoded($payload),
98-
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
9997
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
10098
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
10199
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -3640,26 +3638,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
36403638

36413639
after_topics:
36423640

3643-
$value = $payload['custom_properties'] ?? null;
3644-
3645-
if ($value === null) {
3646-
$properties['customProperties'] = null;
3647-
goto after_customProperties;
3648-
}
3649-
3650-
if (is_array($value)) {
3651-
try {
3652-
$this->hydrationStack[] = 'customProperties';
3653-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
3654-
} finally {
3655-
array_pop($this->hydrationStack);
3656-
}
3657-
}
3658-
3659-
$properties['customProperties'] = $value;
3660-
3661-
after_customProperties:
3662-
36633641
$value = $payload['has_issues'] ?? null;
36643642

36653643
if ($value === null) {
@@ -6311,26 +6289,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
63116289
}
63126290
}
63136291

6314-
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
6315-
{
6316-
$properties = [];
6317-
$missingFields = [];
6318-
try {
6319-
} catch (Throwable $exception) {
6320-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
6321-
}
6322-
6323-
if (count($missingFields) > 0) {
6324-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
6325-
}
6326-
6327-
try {
6328-
return new CustomProperties(...$properties);
6329-
} catch (Throwable $exception) {
6330-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
6331-
}
6332-
}
6333-
63346292
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
63356293
{
63366294
$properties = [];
@@ -8300,15 +8258,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
83008258
$topics = $topicsSerializer0->serialize($topics, $this);
83018259
after_topics: $result['topics'] = $topics;
83028260

8303-
$customProperties = $object->customProperties;
8304-
8305-
if ($customProperties === null) {
8306-
goto after_customProperties;
8307-
}
8308-
8309-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
8310-
after_customProperties: $result['custom_properties'] = $customProperties;
8311-
83128261
$hasIssues = $object->hasIssues;
83138262
after_hasIssues: $result['has_issues'] = $hasIssues;
83148263

0 commit comments

Comments
 (0)