Skip to content

Commit d2620ac

Browse files
authored
Merge pull request #911 from php-api-clients/GitHubEnterprise-3.11/from-1.1.4-163186e7c02f9cd439623d84516cbf0f-from-1.1.4-163186e7c02f9cd439623d84516cbf0f
2 parents 3f703c7 + 0443488 commit d2620ac

File tree

310 files changed

+1222
-7016
lines changed

Some content is hidden

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

310 files changed

+1222
-7016
lines changed

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

Lines changed: 301 additions & 345 deletions
Large diffs are not rendered by default.

clients/GitHubEnterprise-3.11/src/Internal/Hydrator/WebHook/BranchProtectionConfiguration.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;
@@ -65,7 +64,6 @@ public function hydrateObject(string $className, array $payload): object
6564
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️TemplateRepository⚡️Permissions($payload),
6665
'ApiClients\Client\GitHubEnterprise\Schema\SimpleUserWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SimpleUserWebhooks($payload),
6766
'ApiClients\Client\GitHubEnterprise\Schema\WebhookBranchProtectionConfigurationEnabled' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️WebhookBranchProtectionConfigurationEnabled($payload),
68-
'ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload),
6967
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner($payload),
7068
'ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Permissions($payload),
7169
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -1279,26 +1277,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
12791277

12801278
after_topics:
12811279

1282-
$value = $payload['custom_properties'] ?? null;
1283-
1284-
if ($value === null) {
1285-
$properties['customProperties'] = null;
1286-
goto after_customProperties;
1287-
}
1288-
1289-
if (is_array($value)) {
1290-
try {
1291-
$this->hydrationStack[] = 'customProperties';
1292-
$value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($value);
1293-
} finally {
1294-
array_pop($this->hydrationStack);
1295-
}
1296-
}
1297-
1298-
$properties['customProperties'] = $value;
1299-
1300-
after_customProperties:
1301-
13021280
$value = $payload['has_issues'] ?? null;
13031281

13041282
if ($value === null) {
@@ -3770,26 +3748,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
37703748
}
37713749
}
37723750

3773-
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
3774-
{
3775-
$properties = [];
3776-
$missingFields = [];
3777-
try {
3778-
} catch (Throwable $exception) {
3779-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
3780-
}
3781-
3782-
if (count($missingFields) > 0) {
3783-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
3784-
}
3785-
3786-
try {
3787-
return new CustomProperties(...$properties);
3788-
} catch (Throwable $exception) {
3789-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
3790-
}
3791-
}
3792-
37933751
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
37943752
{
37953753
$properties = [];
@@ -4610,15 +4568,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
46104568
$topics = $topicsSerializer0->serialize($topics, $this);
46114569
after_topics: $result['topics'] = $topics;
46124570

4613-
$customProperties = $object->customProperties;
4614-
4615-
if ($customProperties === null) {
4616-
goto after_customProperties;
4617-
}
4618-
4619-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
4620-
after_customProperties: $result['custom_properties'] = $customProperties;
4621-
46224571
$hasIssues = $object->hasIssues;
46234572
after_hasIssues: $result['has_issues'] = $hasIssues;
46244573

clients/GitHubEnterprise-3.11/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) {
@@ -5286,26 +5264,6 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
52865264
}
52875265
}
52885266

5289-
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties
5290-
{
5291-
$properties = [];
5292-
$missingFields = [];
5293-
try {
5294-
} catch (Throwable $exception) {
5295-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
5296-
}
5297-
5298-
if (count($missingFields) > 0) {
5299-
throw UnableToHydrateObject::dueToMissingFields(CustomProperties::class, $missingFields, stack: $this->hydrationStack);
5300-
}
5301-
5302-
try {
5303-
return new CustomProperties(...$properties);
5304-
} catch (Throwable $exception) {
5305-
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\RepositoryWebhooks\CustomProperties', $exception, stack: $this->hydrationStack);
5306-
}
5307-
}
5308-
53095267
private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️Repository⚡️TemplateRepository⚡️Owner(array $payload): \ApiClients\Client\GitHubEnterprise\Schema\Repository\TemplateRepository\Owner
53105268
{
53115269
$properties = [];
@@ -6142,15 +6100,6 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
61426100
$topics = $topicsSerializer0->serialize($topics, $this);
61436101
after_topics: $result['topics'] = $topics;
61446102

6145-
$customProperties = $object->customProperties;
6146-
6147-
if ($customProperties === null) {
6148-
goto after_customProperties;
6149-
}
6150-
6151-
$customProperties = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($customProperties);
6152-
after_customProperties: $result['custom_properties'] = $customProperties;
6153-
61546103
$hasIssues = $object->hasIssues;
61556104
after_hasIssues: $result['has_issues'] = $hasIssues;
61566105

clients/GitHubEnterprise-3.11/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

0 commit comments

Comments
 (0)