Skip to content

Commit 7d0b1b4

Browse files
authored
[GitHubAE] Update to 1.1.4-dabccf38624f2b1c7063062e59b13705 from 1.1.4-b608479036d46de5aa2816f4316224a9
Detected Schema changes: ├─┬Paths │ ├─┬/repos/{template_owner}/{template_repo}/generate │ │ └─┬POST │ │ └─┬Responses │ │ └─┬201 │ │ └─┬application/json │ │ ├─┬Schema │ │ │ └──[M] $ref (47560:14)❌ │ │ └─┬default │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[M] value (196898:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ └──[-] value (186036:9) │ ├─┬/orgs/{org} │ │ ├─┬GET │ │ │ └─┬Responses │ │ │ └─┬200 │ │ │ └─┬application/json │ │ │ └─┬default-response │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ └──[-] value (184600:9) │ │ └─┬PATCH │ │ ├─┬Responses │ │ │ └─┬200 │ │ │ └─┬application/json │ │ │ └─┬default │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ ├──[M] value (184564:9) │ │ │ └──[-] value (184600:9) │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └──[-] properties (5161:17)❌ │ ├─┬/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo} │ │ └─┬GET │ │ └──[M] description (9881:20) │ ├─┬/app/installations/{installation_id}/access_tokens │ │ └─┬POST │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬default │ │ └──[M] value (1482:19) │ ├─┬/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies │ │ ├─┬GET │ │ │ └─┬Parameters │ │ │ └──[M] description (201087:20) │ │ └─┬POST │ │ └─┬Parameters │ │ └──[M] description (201087:20) │ ├─┬/repos/{owner}/{repo} │ │ ├─┬GET │ │ │ └─┬Responses │ │ │ └─┬200 │ │ │ └─┬application/json │ │ │ └─┬default-response │ │ │ └──[M] value (186939:9) │ │ └─┬PATCH │ │ └─┬Requestbody │ │ └─┬application/json │ │ └─┬Schema │ │ └─┬security_and_analysis │ │ └──[-] properties (11247:21)❌ │ ├─┬/repos/{owner}/{repo}/environments/{environment_name} │ │ ├─┬GET │ │ │ └─┬Parameters │ │ │ └──[M] description (201087:20) │ │ ├─┬PUT │ │ │ └─┬Parameters │ │ │ └──[M] description (201087:20) │ │ └─┬DELETE │ │ └─┬Parameters │ │ └──[M] description (201087:20) │ ├─┬/repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id} │ │ ├─┬GET │ │ │ └─┬Parameters │ │ │ └──[M] description (201087:20) │ │ ├─┬PUT │ │ │ └─┬Parameters │ │ │ └──[M] description (201087:20) │ │ └─┬DELETE │ │ └─┬Parameters │ │ └──[M] description (201087:20) │ ├─┬/user/repos │ │ └─┬POST │ │ └─┬Responses │ │ └─┬201 │ │ └─┬application/json │ │ ├─┬Schema │ │ │ └──[M] $ref (47560:14)❌ │ │ └─┬default │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ └──[-] value (186036:9) │ ├─┬/repos/{owner}/{repo}/issues/{issue_number} │ │ └─┬GET │ │ └──[M] description (21732:20) │ ├─┬/orgs/{org}/repos │ │ └─┬POST │ │ └─┬Responses │ │ └─┬201 │ │ └─┬application/json │ │ ├─┬Schema │ │ │ └──[M] $ref (47560:14)❌ │ │ └─┬default │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[M] value (185999:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ ├──[-] value (186036:9) │ │ └──[-] value (186036:9) │ └──/markdown/raw └─┬Components ├──[+] examples (185998:7) ├──[+] examples (196897:7) ├─┬app-permissions │ └──[-] properties (46650:9)❌ ├─┬organization-full │ └──[-] properties (51527:9)❌ └─┬security-and-analysis └──[-] properties (50743:9)❌ Date: 11/29/23 | Commit: New: etc/specs/GitHubAE/previous.spec.yaml, Original: etc/specs/GitHubAE/current.spec.yaml Document Element | Total Changes | Breaking Changes paths | 303 | 5 components | 5 | 3 ❌ 8 Breaking changes out of 308 INFO: Modifications: 279 INFO: Removals: 27 INFO: Additions: 2 INFO: Breaking Removals: 5 INFO: Breaking Modifications: 3 ERROR: breaking changes discovered
1 parent c786775 commit 7d0b1b4

File tree

126 files changed

+12121
-3694
lines changed

Some content is hidden

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

126 files changed

+12121
-3694
lines changed

clients/GitHubAE/etc/openapi-client-generator.state

Lines changed: 135 additions & 127 deletions
Large diffs are not rendered by default.

clients/GitHubAE/src/Client.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHubAE/src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

clients/GitHubAE/src/Internal/Hydrator/Operation/Admin/Users/Username/Authorizations.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
927927

928928
after_organizationAdministration:
929929

930+
$value = $payload['organization_copilot_seat_management'] ?? null;
931+
932+
if ($value === null) {
933+
$properties['organizationCopilotSeatManagement'] = null;
934+
goto after_organizationCopilotSeatManagement;
935+
}
936+
937+
$properties['organizationCopilotSeatManagement'] = $value;
938+
939+
after_organizationCopilotSeatManagement:
940+
930941
$value = $payload['organization_hooks'] ?? null;
931942

932943
if ($value === null) {
@@ -1599,6 +1610,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
15991610

16001611
after_organizationAdministration: $result['organization_administration'] = $organizationAdministration;
16011612

1613+
$organizationCopilotSeatManagement = $object->organizationCopilotSeatManagement;
1614+
1615+
if ($organizationCopilotSeatManagement === null) {
1616+
goto after_organizationCopilotSeatManagement;
1617+
}
1618+
1619+
after_organizationCopilotSeatManagement: $result['organization_copilot_seat_management'] = $organizationCopilotSeatManagement;
1620+
16021621
$organizationHooks = $object->organizationHooks;
16031622

16041623
if ($organizationHooks === null) {

clients/GitHubAE/src/Internal/Hydrator/Operation/App/Installations/InstallationId.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
569569

570570
after_organizationAdministration:
571571

572+
$value = $payload['organization_copilot_seat_management'] ?? null;
573+
574+
if ($value === null) {
575+
$properties['organizationCopilotSeatManagement'] = null;
576+
goto after_organizationCopilotSeatManagement;
577+
}
578+
579+
$properties['organizationCopilotSeatManagement'] = $value;
580+
581+
after_organizationCopilotSeatManagement:
582+
572583
$value = $payload['organization_hooks'] ?? null;
573584

574585
if ($value === null) {
@@ -1402,6 +1413,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
14021413

14031414
after_organizationAdministration: $result['organization_administration'] = $organizationAdministration;
14041415

1416+
$organizationCopilotSeatManagement = $object->organizationCopilotSeatManagement;
1417+
1418+
if ($organizationCopilotSeatManagement === null) {
1419+
goto after_organizationCopilotSeatManagement;
1420+
}
1421+
1422+
after_organizationCopilotSeatManagement: $result['organization_copilot_seat_management'] = $organizationCopilotSeatManagement;
1423+
14051424
$organizationHooks = $object->organizationHooks;
14061425

14071426
if ($organizationHooks === null) {

clients/GitHubAE/src/Internal/Hydrator/Operation/App/Installations/InstallationId/AccessTokens.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
414414

415415
after_organizationAdministration:
416416

417+
$value = $payload['organization_copilot_seat_management'] ?? null;
418+
419+
if ($value === null) {
420+
$properties['organizationCopilotSeatManagement'] = null;
421+
goto after_organizationCopilotSeatManagement;
422+
}
423+
424+
$properties['organizationCopilotSeatManagement'] = $value;
425+
426+
after_organizationCopilotSeatManagement:
427+
417428
$value = $payload['organization_hooks'] ?? null;
418429

419430
if ($value === null) {
@@ -1008,6 +1019,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
10081019

10091020
after_organizationAdministration: $result['organization_administration'] = $organizationAdministration;
10101021

1022+
$organizationCopilotSeatManagement = $object->organizationCopilotSeatManagement;
1023+
1024+
if ($organizationCopilotSeatManagement === null) {
1025+
goto after_organizationCopilotSeatManagement;
1026+
}
1027+
1028+
after_organizationCopilotSeatManagement: $result['organization_copilot_seat_management'] = $organizationCopilotSeatManagement;
1029+
10111030
$organizationHooks = $object->organizationHooks;
10121031

10131032
if ($organizationHooks === null) {

clients/GitHubAE/src/Internal/Hydrator/Operation/Applications/ClientId/Token.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
931931

932932
after_organizationAdministration:
933933

934+
$value = $payload['organization_copilot_seat_management'] ?? null;
935+
936+
if ($value === null) {
937+
$properties['organizationCopilotSeatManagement'] = null;
938+
goto after_organizationCopilotSeatManagement;
939+
}
940+
941+
$properties['organizationCopilotSeatManagement'] = $value;
942+
943+
after_organizationCopilotSeatManagement:
944+
934945
$value = $payload['organization_hooks'] ?? null;
935946

936947
if ($value === null) {
@@ -1720,6 +1731,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
17201731

17211732
after_organizationAdministration: $result['organization_administration'] = $organizationAdministration;
17221733

1734+
$organizationCopilotSeatManagement = $object->organizationCopilotSeatManagement;
1735+
1736+
if ($organizationCopilotSeatManagement === null) {
1737+
goto after_organizationCopilotSeatManagement;
1738+
}
1739+
1740+
after_organizationCopilotSeatManagement: $result['organization_copilot_seat_management'] = $organizationCopilotSeatManagement;
1741+
17231742
$organizationHooks = $object->organizationHooks;
17241743

17251744
if ($organizationHooks === null) {

clients/GitHubAE/src/Internal/Hydrator/Operation/Applications/ClientId/Tokens/AccessToken.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Ap
927927

928928
after_organizationAdministration:
929929

930+
$value = $payload['organization_copilot_seat_management'] ?? null;
931+
932+
if ($value === null) {
933+
$properties['organizationCopilotSeatManagement'] = null;
934+
goto after_organizationCopilotSeatManagement;
935+
}
936+
937+
$properties['organizationCopilotSeatManagement'] = $value;
938+
939+
after_organizationCopilotSeatManagement:
940+
930941
$value = $payload['organization_hooks'] ?? null;
931942

932943
if ($value === null) {
@@ -1599,6 +1610,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
15991610

16001611
after_organizationAdministration: $result['organization_administration'] = $organizationAdministration;
16011612

1613+
$organizationCopilotSeatManagement = $object->organizationCopilotSeatManagement;
1614+
1615+
if ($organizationCopilotSeatManagement === null) {
1616+
goto after_organizationCopilotSeatManagement;
1617+
}
1618+
1619+
after_organizationCopilotSeatManagement: $result['organization_copilot_seat_management'] = $organizationCopilotSeatManagement;
1620+
16021621
$organizationHooks = $object->organizationHooks;
16031622

16041623
if ($organizationHooks === null) {

clients/GitHubAE/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\DependabotSecurityUpdates;
1515
use ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanning;
1616
use ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanningPushProtection;
17+
use ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanningValidityChecks;
1718
use ApiClients\Client\GitHubAE\Schema\SimpleUser;
1819
use ApiClients\Client\GitHubAE\Schema\Thread;
1920
use ApiClients\Client\GitHubAE\Schema\Thread\Subject;
@@ -63,6 +64,7 @@ public function hydrateObject(string $className, array $payload): object
6364
'ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\DependabotSecurityUpdates' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️DependabotSecurityUpdates($payload),
6465
'ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload),
6566
'ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload),
67+
'ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload),
6668
'ApiClients\Client\GitHubAE\Schema\Thread\Subject' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Thread⚡️Subject($payload),
6769
'ApiClients\Client\GitHubAE\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️BasicError($payload),
6870
default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack),
@@ -1782,6 +1784,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Se
17821784
$properties['secretScanningPushProtection'] = $value;
17831785

17841786
after_secretScanningPushProtection:
1787+
1788+
$value = $payload['secret_scanning_validity_checks'] ?? null;
1789+
1790+
if ($value === null) {
1791+
$properties['secretScanningValidityChecks'] = null;
1792+
goto after_secretScanningValidityChecks;
1793+
}
1794+
1795+
if (is_array($value)) {
1796+
try {
1797+
$this->hydrationStack[] = 'secretScanningValidityChecks';
1798+
$value = $this->hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($value);
1799+
} finally {
1800+
array_pop($this->hydrationStack);
1801+
}
1802+
}
1803+
1804+
$properties['secretScanningValidityChecks'] = $value;
1805+
1806+
after_secretScanningValidityChecks:
17851807
} catch (Throwable $exception) {
17861808
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis', $exception, stack: $this->hydrationStack);
17871809
}
@@ -1917,6 +1939,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Se
19171939
}
19181940
}
19191941

1942+
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks
1943+
{
1944+
$properties = [];
1945+
$missingFields = [];
1946+
try {
1947+
$value = $payload['status'] ?? null;
1948+
1949+
if ($value === null) {
1950+
$properties['status'] = null;
1951+
goto after_status;
1952+
}
1953+
1954+
$properties['status'] = $value;
1955+
1956+
after_status:
1957+
} catch (Throwable $exception) {
1958+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanningValidityChecks', $exception, stack: $this->hydrationStack);
1959+
}
1960+
1961+
if (count($missingFields) > 0) {
1962+
throw UnableToHydrateObject::dueToMissingFields(SecretScanningValidityChecks::class, $missingFields, stack: $this->hydrationStack);
1963+
}
1964+
1965+
try {
1966+
return new SecretScanningValidityChecks(...$properties);
1967+
} catch (Throwable $exception) {
1968+
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanningValidityChecks', $exception, stack: $this->hydrationStack);
1969+
}
1970+
}
1971+
19201972
private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Thread⚡️Subject(array $payload): Subject
19211973
{
19221974
$properties = [];
@@ -2085,6 +2137,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
20852137
'ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\DependabotSecurityUpdates' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️DependabotSecurityUpdates($object),
20862138
'ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object),
20872139
'ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object),
2140+
'ApiClients\Client\GitHubAE\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object),
20882141
'ApiClients\Client\GitHubAE\Schema\Thread\Subject' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Thread⚡️Subject($object),
20892142
'ApiClients\Client\GitHubAE\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️BasicError($object),
20902143
default => throw new LogicException('No serialization defined for $className'),
@@ -2943,6 +2996,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
29432996
$secretScanningPushProtection = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($secretScanningPushProtection);
29442997
after_secretScanningPushProtection: $result['secret_scanning_push_protection'] = $secretScanningPushProtection;
29452998

2999+
$secretScanningValidityChecks = $object->secretScanningValidityChecks;
3000+
3001+
if ($secretScanningValidityChecks === null) {
3002+
goto after_secretScanningValidityChecks;
3003+
}
3004+
3005+
$secretScanningValidityChecks = $this->serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($secretScanningValidityChecks);
3006+
after_secretScanningValidityChecks: $result['secret_scanning_validity_checks'] = $secretScanningValidityChecks;
3007+
29463008
return $result;
29473009
}
29483010

@@ -3010,6 +3072,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
30103072
return $result;
30113073
}
30123074

3075+
private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed
3076+
{
3077+
assert($object instanceof SecretScanningValidityChecks);
3078+
$result = [];
3079+
3080+
$status = $object->status;
3081+
3082+
if ($status === null) {
3083+
goto after_status;
3084+
}
3085+
3086+
after_status: $result['status'] = $status;
3087+
3088+
return $result;
3089+
}
3090+
30133091
private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Thread⚡️Subject(mixed $object): mixed
30143092
{
30153093
assert($object instanceof Subject);

clients/GitHubAE/src/Internal/Hydrator/Operation/Orgs/Org.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubAE⚡️Schema⚡️Or
657657

658658
after_secretScanningPushProtectionCustomLink:
659659

660+
$value = $payload['secret_scanning_validity_checks_enabled'] ?? null;
661+
662+
if ($value === null) {
663+
$properties['secretScanningValidityChecksEnabled'] = null;
664+
goto after_secretScanningValidityChecksEnabled;
665+
}
666+
667+
$properties['secretScanningValidityChecksEnabled'] = $value;
668+
669+
after_secretScanningValidityChecksEnabled:
670+
660671
$value = $payload['created_at'] ?? null;
661672

662673
if ($value === null) {
@@ -1280,6 +1291,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubAE⚡️Schema
12801291

12811292
after_secretScanningPushProtectionCustomLink: $result['secret_scanning_push_protection_custom_link'] = $secretScanningPushProtectionCustomLink;
12821293

1294+
$secretScanningValidityChecksEnabled = $object->secretScanningValidityChecksEnabled;
1295+
1296+
if ($secretScanningValidityChecksEnabled === null) {
1297+
goto after_secretScanningValidityChecksEnabled;
1298+
}
1299+
1300+
after_secretScanningValidityChecksEnabled: $result['secret_scanning_validity_checks_enabled'] = $secretScanningValidityChecksEnabled;
1301+
12831302
$createdAt = $object->createdAt;
12841303
after_createdAt: $result['created_at'] = $createdAt;
12851304

0 commit comments

Comments
 (0)