Skip to content

Commit 081b5dd

Browse files
authored
Merge pull request #896 from php-api-clients/GitHubEnterprise-3.11/from-1.1.4-c130f6d882ed81d2bb9f0a52fabb02d9-from-1.1.4-c130f6d882ed81d2bb9f0a52fabb02d9
2 parents b370097 + 1d99a2f commit 081b5dd

File tree

44 files changed

+4263
-157
lines changed

Some content is hidden

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

44 files changed

+4263
-157
lines changed

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

+48-48
Large diffs are not rendered by default.

clients/GitHubEnterprise-3.11/src/Internal/Hydrator/Operation/Admin/Users/Username/Authorizations.php

+190
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
718718

719719
after_checks:
720720

721+
$value = $payload['codespaces'] ?? null;
722+
723+
if ($value === null) {
724+
$properties['codespaces'] = null;
725+
goto after_codespaces;
726+
}
727+
728+
$properties['codespaces'] = $value;
729+
730+
after_codespaces:
731+
721732
$value = $payload['contents'] ?? null;
722733

723734
if ($value === null) {
@@ -729,6 +740,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
729740

730741
after_contents:
731742

743+
$value = $payload['dependabot_secrets'] ?? null;
744+
745+
if ($value === null) {
746+
$properties['dependabotSecrets'] = null;
747+
goto after_dependabotSecrets;
748+
}
749+
750+
$properties['dependabotSecrets'] = $value;
751+
752+
after_dependabotSecrets:
753+
732754
$value = $payload['deployments'] ?? null;
733755

734756
if ($value === null) {
@@ -960,6 +982,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
960982

961983
after_organizationAnnouncementBanners:
962984

985+
$value = $payload['organization_events'] ?? null;
986+
987+
if ($value === null) {
988+
$properties['organizationEvents'] = null;
989+
goto after_organizationEvents;
990+
}
991+
992+
$properties['organizationEvents'] = $value;
993+
994+
after_organizationEvents:
995+
963996
$value = $payload['organization_hooks'] ?? null;
964997

965998
if ($value === null) {
@@ -1069,6 +1102,83 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
10691102
$properties['teamDiscussions'] = $value;
10701103

10711104
after_teamDiscussions:
1105+
1106+
$value = $payload['email_addresses'] ?? null;
1107+
1108+
if ($value === null) {
1109+
$properties['emailAddresses'] = null;
1110+
goto after_emailAddresses;
1111+
}
1112+
1113+
$properties['emailAddresses'] = $value;
1114+
1115+
after_emailAddresses:
1116+
1117+
$value = $payload['followers'] ?? null;
1118+
1119+
if ($value === null) {
1120+
$properties['followers'] = null;
1121+
goto after_followers;
1122+
}
1123+
1124+
$properties['followers'] = $value;
1125+
1126+
after_followers:
1127+
1128+
$value = $payload['git_ssh_keys'] ?? null;
1129+
1130+
if ($value === null) {
1131+
$properties['gitSshKeys'] = null;
1132+
goto after_gitSshKeys;
1133+
}
1134+
1135+
$properties['gitSshKeys'] = $value;
1136+
1137+
after_gitSshKeys:
1138+
1139+
$value = $payload['gpg_keys'] ?? null;
1140+
1141+
if ($value === null) {
1142+
$properties['gpgKeys'] = null;
1143+
goto after_gpgKeys;
1144+
}
1145+
1146+
$properties['gpgKeys'] = $value;
1147+
1148+
after_gpgKeys:
1149+
1150+
$value = $payload['interaction_limits'] ?? null;
1151+
1152+
if ($value === null) {
1153+
$properties['interactionLimits'] = null;
1154+
goto after_interactionLimits;
1155+
}
1156+
1157+
$properties['interactionLimits'] = $value;
1158+
1159+
after_interactionLimits:
1160+
1161+
$value = $payload['profile'] ?? null;
1162+
1163+
if ($value === null) {
1164+
$properties['profile'] = null;
1165+
goto after_profile;
1166+
}
1167+
1168+
$properties['profile'] = $value;
1169+
1170+
after_profile:
1171+
1172+
$value = $payload['starring'] ?? null;
1173+
1174+
if ($value === null) {
1175+
$properties['starring'] = null;
1176+
goto after_starring;
1177+
}
1178+
1179+
$properties['starring'] = $value;
1180+
1181+
after_starring:
10721182
} catch (Throwable $exception) {
10731183
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\AppPermissions', $exception, stack: $this->hydrationStack);
10741184
}
@@ -1480,6 +1590,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
14801590

14811591
after_checks: $result['checks'] = $checks;
14821592

1593+
$codespaces = $object->codespaces;
1594+
1595+
if ($codespaces === null) {
1596+
goto after_codespaces;
1597+
}
1598+
1599+
after_codespaces: $result['codespaces'] = $codespaces;
1600+
14831601
$contents = $object->contents;
14841602

14851603
if ($contents === null) {
@@ -1488,6 +1606,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
14881606

14891607
after_contents: $result['contents'] = $contents;
14901608

1609+
$dependabotSecrets = $object->dependabotSecrets;
1610+
1611+
if ($dependabotSecrets === null) {
1612+
goto after_dependabotSecrets;
1613+
}
1614+
1615+
after_dependabotSecrets: $result['dependabot_secrets'] = $dependabotSecrets;
1616+
14911617
$deployments = $object->deployments;
14921618

14931619
if ($deployments === null) {
@@ -1656,6 +1782,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
16561782

16571783
after_organizationAnnouncementBanners: $result['organization_announcement_banners'] = $organizationAnnouncementBanners;
16581784

1785+
$organizationEvents = $object->organizationEvents;
1786+
1787+
if ($organizationEvents === null) {
1788+
goto after_organizationEvents;
1789+
}
1790+
1791+
after_organizationEvents: $result['organization_events'] = $organizationEvents;
1792+
16591793
$organizationHooks = $object->organizationHooks;
16601794

16611795
if ($organizationHooks === null) {
@@ -1736,6 +1870,62 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
17361870

17371871
after_teamDiscussions: $result['team_discussions'] = $teamDiscussions;
17381872

1873+
$emailAddresses = $object->emailAddresses;
1874+
1875+
if ($emailAddresses === null) {
1876+
goto after_emailAddresses;
1877+
}
1878+
1879+
after_emailAddresses: $result['email_addresses'] = $emailAddresses;
1880+
1881+
$followers = $object->followers;
1882+
1883+
if ($followers === null) {
1884+
goto after_followers;
1885+
}
1886+
1887+
after_followers: $result['followers'] = $followers;
1888+
1889+
$gitSshKeys = $object->gitSshKeys;
1890+
1891+
if ($gitSshKeys === null) {
1892+
goto after_gitSshKeys;
1893+
}
1894+
1895+
after_gitSshKeys: $result['git_ssh_keys'] = $gitSshKeys;
1896+
1897+
$gpgKeys = $object->gpgKeys;
1898+
1899+
if ($gpgKeys === null) {
1900+
goto after_gpgKeys;
1901+
}
1902+
1903+
after_gpgKeys: $result['gpg_keys'] = $gpgKeys;
1904+
1905+
$interactionLimits = $object->interactionLimits;
1906+
1907+
if ($interactionLimits === null) {
1908+
goto after_interactionLimits;
1909+
}
1910+
1911+
after_interactionLimits: $result['interaction_limits'] = $interactionLimits;
1912+
1913+
$profile = $object->profile;
1914+
1915+
if ($profile === null) {
1916+
goto after_profile;
1917+
}
1918+
1919+
after_profile: $result['profile'] = $profile;
1920+
1921+
$starring = $object->starring;
1922+
1923+
if ($starring === null) {
1924+
goto after_starring;
1925+
}
1926+
1927+
after_starring: $result['starring'] = $starring;
1928+
17391929
return $result;
17401930
}
17411931

0 commit comments

Comments
 (0)