Skip to content

Commit cf1f165

Browse files
authored
Merge pull request #914 from php-api-clients/GitHubEnterprise-3.9/from-1.1.4-a75cad5f793fe1b279bd4691d9c9ce58-from-1.1.4-a75cad5f793fe1b279bd4691d9c9ce58
2 parents 59f5ee8 + 1242417 commit cf1f165

File tree

301 files changed

+1213
-6818
lines changed

Some content is hidden

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

301 files changed

+1213
-6818
lines changed

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

Lines changed: 292 additions & 336 deletions
Large diffs are not rendered by default.

clients/GitHubEnterprise-3.9/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.9/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.9/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\SecurityAndAnalysis;
@@ -103,7 +102,6 @@ public function hydrateObject(string $className, array $payload): object
103102
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRequestedActionFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRequestedActionFormEncoded($payload),
104103
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRerequested' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRerequested($payload),
105104
'ApiClients\Client\GitHubEnterprise\Schema\WebhookCheckRunRerequestedFormEncoded' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookCheckRunRerequestedFormEncoded($payload),
106-
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
107105
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
108106
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
109107
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -3837,26 +3835,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
38373835

38383836
after_topics:
38393837

3840-
$value = $payload['custom_properties'] ?? null;
3841-
3842-
if ($value === null) {
3843-
$properties['customProperties'] = null;
3844-
goto after_customProperties;
3845-
}
3846-
3847-
if (is_array($value)) {
3848-
try {
3849-
$this->hydrationStack[] = 'customProperties';
3850-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
3851-
} finally {
3852-
array_pop($this->hydrationStack);
3853-
}
3854-
}
3855-
3856-
$properties['customProperties'] = $value;
3857-
3858-
after_customProperties:
3859-
38603838
$value = $payload['has_issues'] ?? null;
38613839

38623840
if ($value === null) {
@@ -6508,26 +6486,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
65086486
}
65096487
}
65106488

6511-
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
6512-
{
6513-
$properties = [];
6514-
$missingFields = [];
6515-
try {
6516-
} catch (Throwable $exception) {
6517-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
6518-
}
6519-
6520-
if (count($missingFields) > 0) {
6521-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
6522-
}
6523-
6524-
try {
6525-
return new CustomProperties(...$properties);
6526-
} catch (Throwable $exception) {
6527-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
6528-
}
6529-
}
6530-
65316489
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
65326490
{
65336491
$properties = [];
@@ -8593,15 +8551,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
85938551
$topics = $topicsSerializer0->serialize($topics, $this);
85948552
after_topics: $result['topics'] = $topics;
85958553

8596-
$customProperties = $object->customProperties;
8597-
8598-
if ($customProperties === null) {
8599-
goto after_customProperties;
8600-
}
8601-
8602-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
8603-
after_customProperties: $result['custom_properties'] = $customProperties;
8604-
86058554
$hasIssues = $object->hasIssues;
86068555
after_hasIssues: $result['has_issues'] = $hasIssues;
86078556

0 commit comments

Comments
 (0)