diff --git a/clients/GitHubEnterpriseCloud/README.md b/clients/GitHubEnterpriseCloud/README.md index 1494536969c..86ea7041a85 100644 --- a/clients/GitHubEnterpriseCloud/README.md +++ b/clients/GitHubEnterpriseCloud/README.md @@ -21317,6 +21317,134 @@ $client->operations()->reactions()->deleteForIssue( owner: 'generated', You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/reactions/reactions#delete-an-issue-reaction). +### issues/remove-sub-issue + +Remove sub-issue + +Using the `call` method: +```php +$client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, +]); +``` + +Operations method: +```php +$client->operations()->issues()->removeSubIssue( owner: 'generated', + repo: 'generated', + issue_number: 12, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#remove-sub-issue). + + +### issues/list-sub-issues + +List sub-issues + +Using the `call` method: +```php +$client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listSubIssues( owner: 'generated', + repo: 'generated', + issue_number: 12, + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#list-sub-issues). + + +### issues/list-sub-issues + +List sub-issues + +Using the `call` method: +```php +$client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, + 'per_page' => 8, + 'page' => 1, +]); +``` + +Operations method: +```php +$client->operations()->issues()->listSubIssuesListing( owner: 'generated', + repo: 'generated', + issue_number: 12, + per_page: 8, + page: 1, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#list-sub-issues). + + +### issues/add-sub-issue + +Add sub-issue + +Using the `call` method: +```php +$client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, +]); +``` + +Operations method: +```php +$client->operations()->issues()->addSubIssue( owner: 'generated', + repo: 'generated', + issue_number: 12, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#add-sub-issue). + + +### issues/reprioritize-sub-issue + +Reprioritize sub-issue + +Using the `call` method: +```php +$client->call('PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority', [ + 'owner' => 'generated', + 'repo' => 'generated', + 'issue_number' => 12, +]); +``` + +Operations method: +```php +$client->operations()->issues()->reprioritizeSubIssue( owner: 'generated', + repo: 'generated', + issue_number: 12, +); +``` + +You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#reprioritize-sub-issue). + + ### issues/list-events-for-timeline List timeline events for an issue diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index ff1f0d8fe0f..485ca0ef00f 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "bb37eb0db0849b2ff829f8eaf9b136f3", + "specHash": "6031e990fa8be80fce1e724bbabe2ab5", "generatedFiles": { "files": [ { @@ -396,7 +396,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Issue.php", - "hash": "699a52dd7c9a0f768c3a1c5cd2efdabd" + "hash": "bebcdbad5bdab08b94892449e30674c1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueComment.php", @@ -404,7 +404,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Event.php", - "hash": "fa2e9f865f9d3c683b24c72f722cd49f" + "hash": "ed1aa38c990363ec1a80d694879c0752" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/LinkWithType.php", @@ -1240,7 +1240,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueEvent.php", - "hash": "fc214c81570d6177f8b02a4f04262cbf" + "hash": "ff4b4a21bd4dba81720568111643fef6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/LabeledIssueEvent.php", @@ -1316,7 +1316,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent.php", - "hash": "b4eab537baa9b727c179f74a43b8d0c9" + "hash": "add1c7956eaf22792f6e35774c022320" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineCommittedEvent.php", @@ -1352,7 +1352,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineIssueEvents.php", - "hash": "e597881db79d414d44a9e49c767f603e" + "hash": "4f345ac9974a15cdb4a2efe425bcdcb5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/DeployKey.php", @@ -1568,7 +1568,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", - "hash": "e369cc80e332b3eeab31d22c2234e0eb" + "hash": "4b29abc839a5ae9d8da72dd16f7811d1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/LabelSearchResultItem.php", @@ -1940,79 +1940,79 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated.php", - "hash": "e890a082b25175cfe2b196d46f23160b" + "hash": "dc996d79f56c2f4cfc8657435d263cbf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted.php", - "hash": "ce8610d0db25326c4af7e3fda6baf266" + "hash": "58cf9086a9ce3c142ef7d728950d8b65" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited.php", - "hash": "fec53a4386cb7f261dfb6c23e91993b6" + "hash": "5f97a59712b98cc6f350f34cff8415ac" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesAssigned.php", - "hash": "670cce042820698c344d89168a799424" + "hash": "c4110ee0efe42c24478724e3e2e422dc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed.php", - "hash": "740d49b8d3ba4b2c80115304c88fbb52" + "hash": "6b3f60ef9197501abc1c4c6ec9f11f66" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted.php", - "hash": "5dad19d4be7b5f5459bc7036b083a823" + "hash": "a1460dcec01b8e03944fe1bfdf005c39" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned.php", - "hash": "808908a0044be65fd5da0674cd731f46" + "hash": "e68aa957cd829e566cc657d9f3b4febd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited.php", - "hash": "45f3d0e85d8c1db8d4e6c19854ac3a1d" + "hash": "a09fd2ea8aac4b438921425dfe3b6b06" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled.php", - "hash": "35aa1883cd0eb2c68765b96017b5df16" + "hash": "09130193ec462e013999016a79a416a7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked.php", - "hash": "f5cf779cb77282ada0a05bc14c4fad2d" + "hash": "b81d594113bee3544336aa5db634bdc8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned.php", - "hash": "41fb8cebffab292e5dcf50593617e211" + "hash": "908ff4ed390fb254af9f33d87497bc66" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened.php", - "hash": "02f944d6f1791041cc0ddc6ff092bf74" + "hash": "0317bf18f28c471dcc911996cf22757f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesPinned.php", - "hash": "f9bdef753db898f097fb9a4afdf2c681" + "hash": "528c6595990d2c2c508b8b12350081d4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened.php", - "hash": "a764f59d82f1d0a119cc5a2e18bc3647" + "hash": "db7c38585ee1122a3cf3e6d610b29eae" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred.php", - "hash": "e0d625e53c535109940f1c0ad5cc96b5" + "hash": "b9bd54289df5cbb070174d6cc2571fc0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnassigned.php", - "hash": "ceb17efce153c86aee9ea19a33082145" + "hash": "7cc0048314fc776d0e15f9b987846bbd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlabeled.php", - "hash": "90e0146c199b000b5af339b5de1a6c5e" + "hash": "74ed7e8e68da4c5f04e3493a830ddf47" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked.php", - "hash": "e3b485e65d9d531c36fa7b82b41d4916" + "hash": "a7607a204112511201bcfcb69893cfac" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnpinned.php", - "hash": "c9c2e4552db46ef2bdebe944cb94c75a" + "hash": "fc682f24a9dd2e9744bb4fa4cbf49a1a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookLabelCreated.php", @@ -2792,7 +2792,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Event\/Payload.php", - "hash": "384280faf24e574131269ae66ccb1639" + "hash": "02fcde99f5b1fe54f4eceaf0ab0a67b7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Event\/Payload\/Pages.php", @@ -3312,7 +3312,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineCrossReferencedEvent\/Source.php", - "hash": "0dd2c644dc73e36225955c91dc748c76" + "hash": "125846d35487a88193090918ee121817" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/TimelineReviewedEvent\/Links.php", @@ -3732,7 +3732,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue.php", - "hash": "42143dbc86cb86347379da3126e7863f" + "hash": "64b90ba5e3d6a575a7b8061c8667b44f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue\/Assignee.php", @@ -3752,7 +3752,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue.php", - "hash": "b300be1b108b5d96de117634702a687f" + "hash": "5bb598a16e5784b844ced7ada0102843" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue\/PerformedViaGithubApp.php", @@ -3760,7 +3760,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue.php", - "hash": "51f3003e12c563cf532286b8be44a5ec" + "hash": "ac0b6608ea6e5e42203b27a4a1f988db" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue\/PerformedViaGithubApp.php", @@ -3772,7 +3772,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue.php", - "hash": "68c2fa83a70a7bd73aa2b0a41bc6927f" + "hash": "796628b1e7219c126b3d808286bd1249" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue\/PerformedViaGithubApp.php", @@ -3780,7 +3780,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue.php", - "hash": "492ca9d35f40c008173f88ad9abd0313" + "hash": "95cea3f650f6d01714e5a0129a09d9e4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue\/Milestone.php", @@ -3792,7 +3792,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue.php", - "hash": "c98979d7af29710e9a509e5343eaff0a" + "hash": "d00a788fe0fc0ef9bda58839434fcd44" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue\/PerformedViaGithubApp.php", @@ -3808,7 +3808,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue.php", - "hash": "6c08b366f592d58d76af01a6363cde69" + "hash": "72d053347bb3668188b333e386b3b424" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue\/PerformedViaGithubApp.php", @@ -3816,7 +3816,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue.php", - "hash": "4010e14cf8f55cb44c2acc8460a9f6a5" + "hash": "9d4ea7653f4f7c6a30a09b6ce85659d8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue\/PerformedViaGithubApp.php", @@ -3824,7 +3824,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue.php", - "hash": "9f5f60c3dc5998f42538f2bec4349285" + "hash": "6663d9ae9119b2b7218b3a3f4774ea75" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue\/PerformedViaGithubApp.php", @@ -3832,7 +3832,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue.php", - "hash": "628a37ff02e899679786183f518f5279" + "hash": "51f3c6c19304fd0888d0dfe9c6829dc8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue\/PerformedViaGithubApp.php", @@ -3840,11 +3840,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes.php", - "hash": "65da2b7581ad3fae40fa7527a09d28bd" + "hash": "6481a4d5c690c5b902cf08b8b7cf5bce" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes\/OldIssue.php", - "hash": "f2977fa7db556df8568c954fb4068779" + "hash": "0ba3ddf989424dcfab8b7e26bb4954a8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes\/OldRepository.php", @@ -3852,11 +3852,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Issue.php", - "hash": "10d4061d8095d5da000282bcc5426255" + "hash": "e057136b5c9811805bb6c9c1f77a2d74" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue.php", - "hash": "c741e6055859e76581e845eb2d1e3cc1" + "hash": "7b3250fc3af8762bc1a6b8180b9da064" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue\/PerformedViaGithubApp.php", @@ -3864,7 +3864,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes.php", - "hash": "814e41ec00eecb775aeb287eb4c1a7dd" + "hash": "6681dca6b245a2093ddb027f15d7d965" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewRepository.php", @@ -5720,7 +5720,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", - "hash": "1fac8875dbc0d6b2bddc442ac38e71bf" + "hash": "766817019620537b543cdaebb88515ea" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Labels\/Response\/ApplicationJson\/Ok.php", @@ -5896,7 +5896,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", - "hash": "416fba6564cac37505f41ff60552e09b" + "hash": "b1ebb8de16c9b5b4a5abe071cdef7be7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Dependabot.php", @@ -5904,7 +5904,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Billing.php", - "hash": "2cb0ad6afa4a6ba1e9480cffdd371b61" + "hash": "19c24b508018b7205de85bf2b224f92a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Activity.php", @@ -5920,7 +5920,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Issues.php", - "hash": "07c5b07e5ee5aff7d38cfdcbfe8976a0" + "hash": "0547627668b7231ac2fd3ee0562e4a17" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Licenses.php", @@ -5964,7 +5964,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "59334837d9cf78777765c1b54d7079d4" + "hash": "41c7fbdc7b57bf3c0feacee1739db937" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -9644,11 +9644,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewIssue.php", - "hash": "dcbdc466cc0a3b336464c94bd0c6441d" + "hash": "368574e177d0fc2b450ba5a5eb38fbfb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked\/Issue.php", - "hash": "cd443802c416bdac3d8e61ea06d8c891" + "hash": "51ede87aef3c7a164062d303f7b56624" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookPullRequestReviewThreadResolved\/PullRequest\/Base\/Repo.php", @@ -25972,7 +25972,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Issues.php", - "hash": "bee1b4e897498710e82b2bee5c2fedcd" + "hash": "b8c50300981a529c89532cce39036207" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Licenses.php", @@ -25988,7 +25988,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Repos.php", - "hash": "a92363315317c76628560b87163b5335" + "hash": "6c2d74312543836723d44a94fec8737a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Users.php", @@ -26036,7 +26036,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/SecretScanning.php", - "hash": "28bccc7b09ba5a21a4ec1ef48a24b67d" + "hash": "615f39c0e3b2fa9baabfed35ed5cd4d4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeScanning.php", @@ -26168,7 +26168,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Issues.php", - "hash": "186b0c7223e52d64dee06d83fc76301c" + "hash": "92b8ba01c8a6e08184904699052bea6e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Pulls.php", @@ -26244,7 +26244,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Issues.php", - "hash": "ed5f47fd6a35f72ec76c7724faebdf9f" + "hash": "516a99f6306636a4be041d5cdbe700f9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Pulls.php", @@ -26284,7 +26284,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Issues.php", - "hash": "915d2ed894b7d180512fcf92a7e4ad89" + "hash": "d84c05552d5b01d9775b56252435d614" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Migrations.php", @@ -26300,7 +26300,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Repos.php", - "hash": "da0181293a94f820ef7b10c6939dd478" + "hash": "cbd5354784413a34b58d3dcad984c30a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Activity.php", @@ -26420,7 +26420,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Issues.php", - "hash": "6403f8e8f5f2af50442bbfdc13e0e58b" + "hash": "9093955b18677b388dbc68ca690b96df" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Pulls.php", @@ -26540,15 +26540,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "25255cc5e111abd99e0e25d0d17f1848" + "hash": "d82b73cc27be17f35716209659677b3b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "f9256152c1bb6b7ce3847aae41f71df4" + "hash": "0af8432c21d92bd5263cd89de7340c77" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "a599137abdcba30f7e73a7b74e31d2ea" + "hash": "8d38f8991ea9c2af9d12bde2a03e2b45" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -26576,7 +26576,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Seven.php", - "hash": "13426477dd1fba0fd3f5dbdfa6c4f75e" + "hash": "19e808ea0465474f48898cf1f2345413" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/Two.php", @@ -26624,7 +26624,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Eight.php", - "hash": "d901932cf50c86e24873f1324b1bdf95" + "hash": "23882f7964d4d0c2a69be9fdd2a973bf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Patch\/Two.php", @@ -26640,7 +26640,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "4c3c3a4bd4df81dac38bc01a76bdd2ad" + "hash": "381b412abe49fd76e8e7e3fabc5978d8" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Two.php", @@ -26652,7 +26652,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "5ab86acbf8be965692b1d15336be32bd" + "hash": "965c62bbe8aa3bcbda8e98777df286c0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -26676,7 +26676,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Seven.php", - "hash": "3635e8ce7600e056694cfac418ffb429" + "hash": "1345779ecab7f3a10e79fae919e36be7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Delete\/Six.php", @@ -26748,7 +26748,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "71587103cd88354b71495c86abad4f3f" + "hash": "9371b7701c11047853a0ecd9e86d66ec" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -28176,7 +28176,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", - "hash": "e19344e2dad0f4bb6aa81b1c9deb4ee3" + "hash": "b6108678c25c4f7f653002d0af555e4b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Comments.php", @@ -28196,15 +28196,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/Events\/EventId.php", - "hash": "024f456e318b81ca1552fc4ae9e17bfd" + "hash": "8e6ab09f1134da3b270ded3f077e333e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber.php", - "hash": "e5202efea58b3e23500dce42033fa58c" + "hash": "f18af9fa4aa37fd841f659765dd68088" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees.php", - "hash": "47ba60fd3141039579580dc1a91ecbe0" + "hash": "eccef84a256f2530036667bf473527db" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/Assignees\/Assignee.php", @@ -28920,7 +28920,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "f749522fdff9bfa513a891aa8fbfa54c" + "hash": "2ca031fc8e402f9e7f97ae12414cd591" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", @@ -29336,7 +29336,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRuleSuites.php", - "hash": "b0118580c1af278cd1c46d7937d405d5" + "hash": "b089a7c500fffbb8f463af30f412afbf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRuleSuitesTest.php", @@ -29348,7 +29348,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Repos\/GetOrgRuleSuitesListing.php", - "hash": "bbf1dc1a53701ba8f725001278d19db6" + "hash": "c8eea465654cdda87324dc19e39afb9b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Repos\/GetOrgRuleSuitesListingTest.php", @@ -29720,11 +29720,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "df186fa965ac810209ae1dccccde1887" + "hash": "8da3adbbc8fb36258bed4d09b30ccee6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "960d2abccfbd31ee50a8cbf4da57fdc4" + "hash": "759afd5395123a7e32fcb8783d0f4110" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30112,11 +30112,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/IssueComment.php", - "hash": "cbfa77062a94203f93d6c1a5cef3e23d" + "hash": "85dedfbee2c2e4914425fc6c30b06d4f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "4a991afa841365d1ee5de8d6810358c8" + "hash": "ac247b1432bd75103b0e4d9282a2ffe9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", @@ -31048,7 +31048,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksIssue.php", - "hash": "110e2cb2367915c7f92bff798c177182" + "hash": "ca81f3ea531271db77070cc23597e12c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksMilestone.php", @@ -31056,7 +31056,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksIssue2.php", - "hash": "7d4c663eabf435a60905f0288d9f6dbd" + "hash": "f39953ec1c5b261a09f329a33d6e75e4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksIssueComment\/User.php", @@ -32516,19 +32516,19 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueAdded.php", - "hash": "dddf7672a3184956182798b368bdd732" + "hash": "c429a4af6eb15d226b3841ec0d502144" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesParentIssueRemoved.php", - "hash": "fb60440201b07523c3291529d49ce55a" + "hash": "4edcb734023e1af694d003ac6cbc2183" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueAdded.php", - "hash": "f6ea2ab032d7e2050242747b77a669d3" + "hash": "a4724d327624e16ae9562791fe33d1cb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSubIssuesSubIssueRemoved.php", - "hash": "ab837e856885a90d7396ddeabed54129" + "hash": "368f9ef2a1fbdb7660a02475d91fb87e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/GlobalAdvisory\/Epss.php", @@ -32544,7 +32544,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SubIssues.php", - "hash": "e8a9a9c5675443e54542d0d21f98f34f" + "hash": "cc11412b0944f72a4fd69d09e1473ca6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/OrganizationCustomOrganizationRoleCreateSchema.php", @@ -32614,14 +32614,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet536805C4\/Tiet88923449\/Tiet8D7DF436\/Tiet2E07D018.php", "hash": "3689b755767f42ecbf0f4051c78a40db" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietA23D6950\/Tiet159F5376\/Tiet90CCF3DC\/Tiet33801188.php", - "hash": "27b9acee4d1d782527b955a374df7ea1" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet526BE7BD\/TietF3E1264C\/Tiet053DD938\/Tiet9E6A53E8.php", - "hash": "94dbc7aa195f6564aa7b9e8d46038b1d" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet9BB7FDE7\/Tiet7C408E87\/TietF0A7E59F\/Tiet74AED450.php", "hash": "8e2908f8a4ddd7f0df3a7b8ea2cb8295" @@ -33344,7 +33336,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/SecretScanning\/GetScanHistory.php", - "hash": "9b94a0c17440a3340bf30cc65f6b8183" + "hash": "0bd9e4882e5e749c7cc9eac4e50e510c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/SecretScanning\/GetScanHistoryTest.php", @@ -33365,6 +33357,178 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/ScanHistory.php", "hash": "d3899345edded4eb8182dcfa69029f57" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/RemoveSubIssue.php", + "hash": "3398f3905f632e1fe2e86f42cbe9f10e" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/RemoveSubIssue.php", + "hash": "64bce4e07dfd0d0d4f8120f57ef7db32" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/RemoveSubIssueTest.php", + "hash": "42610904f1ec74c5a3ff582daef78280" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListSubIssues.php", + "hash": "14af2221dc185562d3597d727014a08d" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListSubIssues.php", + "hash": "00e4bc812245d722964349c797c71135" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListSubIssuesTest.php", + "hash": "669b1b687061aaaf7a34b0f53e738c0b" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ListSubIssuesListing.php", + "hash": "5aaaab2dc5acb8cf9747067d77208c92" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ListSubIssuesListing.php", + "hash": "2af4de37e4bc88ad14227e478f89e557" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ListSubIssuesListingTest.php", + "hash": "9702ca60dc246d79e1f6603746588c79" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/AddSubIssue.php", + "hash": "636afa231eac34953a3f14a59a13b140" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/AddSubIssue.php", + "hash": "a3844818a4f2de40479835751e6b8ce7" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/AddSubIssueTest.php", + "hash": "5e359998bb56436568c054e13202a470" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Issues\/ReprioritizeSubIssue.php", + "hash": "59fdd732ba42d154b98ef24bbfb2bbb5" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Issues\/ReprioritizeSubIssue.php", + "hash": "ecc2d0d4ed8f112300ff800891747cef" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Issues\/ReprioritizeSubIssueTest.php", + "hash": "3ebb42ba0824abf5b1a714adb8734c81" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet5229E490\/Tiet0081962F\/Tiet31CBB446\/TietE4F4DE72.php", + "hash": "e569e6cb1e7d2705cd3f353a0f6e26ad" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem\/SubIssuesSummary.php", + "hash": "2694f4c2760df5f8c44f59790d568bde" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksIssue\/SubIssuesSummary.php", + "hash": "31e5304315ff9eae1f6a49bc20be7ea6" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksIssue2\/SubIssuesSummary.php", + "hash": "4062ae58443c5a8a00ae38330a126567" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentCreated\/Issue\/SubIssuesSummary.php", + "hash": "35bc41cfe475cc3bdf5f2f9f036439aa" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentDeleted\/Issue\/SubIssuesSummary.php", + "hash": "0b471b045a40a9cda369baa6a7d98582" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssueCommentEdited\/Issue\/SubIssuesSummary.php", + "hash": "ecf5c86552fbcbaffce5e8ba1959c518" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesClosed\/Issue\/SubIssuesSummary.php", + "hash": "5296d24c523d8cdcd9116bce21e6ed90" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDeleted\/Issue\/SubIssuesSummary.php", + "hash": "b4da65357d7312fcb3b98d45397e67da" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesDemilestoned\/Issue\/SubIssuesSummary.php", + "hash": "aea0d5b64e1bdba0b3fca0b35d58f94b" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesEdited\/Issue\/SubIssuesSummary.php", + "hash": "13978f1a150678a04f2473dc68fa83aa" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLabeled\/Issue\/SubIssuesSummary.php", + "hash": "7b75cb2c671136cff0d84e8df242dd61" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesLocked\/Issue\/SubIssuesSummary.php", + "hash": "3a9f49b47db8f4b86d0dadf8885081c2" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesMilestoned\/Issue\/SubIssuesSummary.php", + "hash": "cd8d80aacb03470b352b69acfd288a40" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Changes\/OldIssue\/SubIssuesSummary.php", + "hash": "d3a36d5117706bda598126eaff7bae28" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesOpened\/Issue\/SubIssuesSummary.php", + "hash": "c14ff416556ffb291e72bdb0a9f5b181" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesReopened\/Issue\/SubIssuesSummary.php", + "hash": "6005551090f69875b5e9f50b4775f80f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTransferred\/Changes\/NewIssue\/SubIssuesSummary.php", + "hash": "ded933bdb7c0069a9cc1fed01eb2da7b" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUnlocked\/Issue\/SubIssuesSummary.php", + "hash": "72ecc0a7202a1aeed25c2df359363890" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SubIssuesSummary.php", + "hash": "c6b0bf74f2a1c1916be9985a954665df" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet1C2726FB\/TietF6272968\/Tiet3A73798C\/Tiet25DBF1C9.php", + "hash": "15dab8f6735263505c7f055303c96e98" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietE95861A6\/Tiet6F267F34\/Tiet29FE7B1A\/TietFE49DAD1.php", + "hash": "b991d502c07b0b7a64816561fd8ab588" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Issues\/RemoveSubIssue\/Request\/ApplicationJson.php", + "hash": "36b20c10f1df5dedc08ca2d1ad30b633" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Issues\/AddSubIssue\/Request\/ApplicationJson.php", + "hash": "a2831f5d78ad00639a51be5f076c6795" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Issues\/ReprioritizeSubIssue\/Request\/ApplicationJson.php", + "hash": "11c2ccf9dc7cfb52e19c06a7f3f6a30f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssue.php", + "hash": "e5561765be509523f2983b38c53d73df" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssues.php", + "hash": "5f9b278e50e6fb5ea00d603baed5fd5f" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues\/IssueNumber\/SubIssues\/Priority.php", + "hash": "c790bcd60a24310d44218a394f55170e" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php index b98690d9847..0ed64e28b6d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -635,6 +637,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -2866,6 +2888,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError(array $payload): ScimError { $properties = []; @@ -3046,6 +3120,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($object), default => throw new LogicException("No serialization defined for $className"), @@ -3393,6 +3468,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -4341,6 +4425,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError(mixed $object): mixed { assert($object instanceof ScimError); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php index b4f5e8fab56..e679ba2c3c3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/Events/EventId.php @@ -20,6 +20,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Team; use ApiClients\Client\GitHubEnterpriseCloud\Schema\TeamSimple; use EventSauce\ObjectHydrator\IterableList; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEventLabel' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️IssueEventLabel($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Team' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Team($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Team\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Team⚡️Permissions($payload), @@ -1170,6 +1172,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -3140,6 +3162,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️IssueEventLabel(array $payload): IssueEventLabel { $properties = []; @@ -3932,6 +4006,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\IssueEventLabel' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️IssueEventLabel($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Team' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Team($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Team\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Team⚡️Permissions($object), @@ -4488,6 +4563,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -5337,6 +5421,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️IssueEventLabel(mixed $object): mixed { assert($object instanceof IssueEventLabel); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php index c4525f72a4d..f8a5d616cfd 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber.php @@ -15,6 +15,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; @@ -61,6 +62,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($payload), @@ -518,6 +520,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -2749,6 +2771,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError { $properties = []; @@ -2957,6 +3031,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($object), @@ -3236,6 +3311,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -4184,6 +4268,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed { assert($object instanceof BasicError); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php index 625ee0bac37..8f508084827 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/Assignees.php @@ -13,6 +13,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository; use ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary; use EventSauce\ObjectHydrator\IterableList; use EventSauce\ObjectHydrator\ObjectMapper; use EventSauce\ObjectHydrator\PropertySerializers\SerializeArrayItems; @@ -58,6 +59,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; } @@ -512,6 +514,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -2743,6 +2765,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array { foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { @@ -2784,6 +2858,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -3060,6 +3135,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -4008,6 +4092,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssue.php new file mode 100644 index 00000000000..e6aeabd725e --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssue.php @@ -0,0 +1,4412 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue(array $payload): Issue + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repositoryUrl; + } + + $properties['repositoryUrl'] = $value; + + after_repositoryUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['state_reason'] ?? null; + + if ($value === null) { + $properties['stateReason'] = null; + goto after_stateReason; + } + + $properties['stateReason'] = $value; + + after_stateReason: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $properties['body'] = null; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $properties['user'] = null; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $properties['assignee'] = null; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $properties['assignees'] = null; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $properties['milestone'] = null; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $properties['activeLockReason'] = null; + goto after_activeLockReason; + } + + $properties['activeLockReason'] = $value; + + after_activeLockReason: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $properties['pullRequest'] = null; + goto after_pullRequest; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pullRequest'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pullRequest'] = $value; + + after_pullRequest: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $properties['draft'] = null; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['closed_by'] ?? null; + + if ($value === null) { + $properties['closedBy'] = null; + goto after_closedBy; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'closedBy'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['closedBy'] = $value; + + after_closedBy: + + $value = $payload['body_html'] ?? null; + + if ($value === null) { + $properties['bodyHtml'] = null; + goto after_bodyHtml; + } + + $properties['bodyHtml'] = $value; + + after_bodyHtml: + + $value = $payload['body_text'] ?? null; + + if ($value === null) { + $properties['bodyText'] = null; + goto after_bodyText; + } + + $properties['bodyText'] = $value; + + after_bodyText: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $properties['timelineUrl'] = null; + goto after_timelineUrl; + } + + $properties['timelineUrl'] = $value; + + after_timelineUrl: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $properties['performedViaGithubApp'] = null; + goto after_performedViaGithubApp; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performedViaGithubApp'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performedViaGithubApp'] = $value; + + after_performedViaGithubApp: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_authorAssociation; + } + + $properties['authorAssociation'] = $value; + + after_authorAssociation: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $properties['reactions'] = null; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Issue(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $properties['email'] = null; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; + } + + $properties['avatarUrl'] = $value; + + after_avatarUrl: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $properties['gravatarId'] = null; + goto after_gravatarId; + } + + $properties['gravatarId'] = $value; + + after_gravatarId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followersUrl; + } + + $properties['followersUrl'] = $value; + + after_followersUrl: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_followingUrl; + } + + $properties['followingUrl'] = $value; + + after_followingUrl: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gistsUrl; + } + + $properties['gistsUrl'] = $value; + + after_gistsUrl: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starredUrl; + } + + $properties['starredUrl'] = $value; + + after_starredUrl: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; + } + + $properties['subscriptionsUrl'] = $value; + + after_subscriptionsUrl: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; + } + + $properties['organizationsUrl'] = $value; + + after_organizationsUrl: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_reposUrl; + } + + $properties['reposUrl'] = $value; + + after_reposUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; + } + + $properties['receivedEventsUrl'] = $value; + + after_receivedEventsUrl: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_siteAdmin; + } + + $properties['siteAdmin'] = $value; + + after_siteAdmin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['user_view_type'] ?? null; + + if ($value === null) { + $properties['userViewType'] = null; + goto after_userViewType; + } + + $properties['userViewType'] = $value; + + after_userViewType: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SimpleUser(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone(array $payload): Milestone + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $properties['creator'] = null; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closedIssues; + } + + $properties['closedIssues'] = $value; + + after_closedIssues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $properties['dueOn'] = null; + goto after_dueOn; + } + + $properties['dueOn'] = $value; + + after_dueOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Milestone(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest(array $payload): PullRequest + { + $properties = []; + $missingFields = []; + try { + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $properties['mergedAt'] = null; + goto after_mergedAt; + } + + $properties['mergedAt'] = $value; + + after_mergedAt: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $properties['diffUrl'] = null; + goto after_diffUrl; + } + + $properties['diffUrl'] = $value; + + after_diffUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $properties['patchUrl'] = null; + goto after_patchUrl; + } + + $properties['patchUrl'] = $value; + + after_patchUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new PullRequest(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository(array $payload): Repository + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_fullName; + } + + $properties['fullName'] = $value; + + after_fullName: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $properties['permissions'] = null; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archiveUrl; + } + + $properties['archiveUrl'] = $value; + + after_archiveUrl: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; + } + + $properties['assigneesUrl'] = $value; + + after_assigneesUrl: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; + } + + $properties['blobsUrl'] = $value; + + after_blobsUrl: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branchesUrl; + } + + $properties['branchesUrl'] = $value; + + after_branchesUrl: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; + } + + $properties['collaboratorsUrl'] = $value; + + after_collaboratorsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commitsUrl; + } + + $properties['commitsUrl'] = $value; + + after_commitsUrl: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compareUrl; + } + + $properties['compareUrl'] = $value; + + after_compareUrl: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contentsUrl; + } + + $properties['contentsUrl'] = $value; + + after_contentsUrl: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; + } + + $properties['contributorsUrl'] = $value; + + after_contributorsUrl: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; + } + + $properties['deploymentsUrl'] = $value; + + after_deploymentsUrl: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; + } + + $properties['downloadsUrl'] = $value; + + after_downloadsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forksUrl; + } + + $properties['forksUrl'] = $value; + + after_forksUrl: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; + } + + $properties['gitCommitsUrl'] = $value; + + after_gitCommitsUrl: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; + } + + $properties['gitRefsUrl'] = $value; + + after_gitRefsUrl: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; + } + + $properties['gitTagsUrl'] = $value; + + after_gitTagsUrl: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_gitUrl; + } + + $properties['gitUrl'] = $value; + + after_gitUrl: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; + } + + $properties['issueCommentUrl'] = $value; + + after_issueCommentUrl: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; + } + + $properties['issueEventsUrl'] = $value; + + after_issueEventsUrl: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issuesUrl; + } + + $properties['issuesUrl'] = $value; + + after_issuesUrl: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keysUrl; + } + + $properties['keysUrl'] = $value; + + after_keysUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languagesUrl; + } + + $properties['languagesUrl'] = $value; + + after_languagesUrl: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_mergesUrl; + } + + $properties['mergesUrl'] = $value; + + after_mergesUrl: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; + } + + $properties['milestonesUrl'] = $value; + + after_milestonesUrl: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; + } + + $properties['notificationsUrl'] = $value; + + after_notificationsUrl: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; + } + + $properties['pullsUrl'] = $value; + + after_pullsUrl: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releasesUrl; + } + + $properties['releasesUrl'] = $value; + + after_releasesUrl: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_sshUrl; + } + + $properties['sshUrl'] = $value; + + after_sshUrl: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; + } + + $properties['stargazersUrl'] = $value; + + after_stargazersUrl: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; + } + + $properties['statusesUrl'] = $value; + + after_statusesUrl: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; + } + + $properties['subscribersUrl'] = $value; + + after_subscribersUrl: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; + } + + $properties['subscriptionUrl'] = $value; + + after_subscriptionUrl: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tagsUrl; + } + + $properties['tagsUrl'] = $value; + + after_tagsUrl: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teamsUrl; + } + + $properties['teamsUrl'] = $value; + + after_teamsUrl: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_treesUrl; + } + + $properties['treesUrl'] = $value; + + after_treesUrl: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_cloneUrl; + } + + $properties['cloneUrl'] = $value; + + after_cloneUrl: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; + } + + $properties['mirrorUrl'] = $value; + + after_mirrorUrl: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; + } + + $properties['hooksUrl'] = $value; + + after_hooksUrl: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svnUrl; + } + + $properties['svnUrl'] = $value; + + after_svnUrl: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $properties['homepage'] = null; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $properties['language'] = null; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forksCount; + } + + $properties['forksCount'] = $value; + + after_forksCount: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazersCount; + } + + $properties['stargazersCount'] = $value; + + after_stargazersCount: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchersCount; + } + + $properties['watchersCount'] = $value; + + after_watchersCount: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_defaultBranch; + } + + $properties['defaultBranch'] = $value; + + after_defaultBranch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_openIssuesCount; + } + + $properties['openIssuesCount'] = $value; + + after_openIssuesCount: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $properties['isTemplate'] = null; + goto after_isTemplate; + } + + $properties['isTemplate'] = $value; + + after_isTemplate: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $properties['topics'] = null; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_hasIssues; + } + + $properties['hasIssues'] = $value; + + after_hasIssues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_hasProjects; + } + + $properties['hasProjects'] = $value; + + after_hasProjects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_hasWiki; + } + + $properties['hasWiki'] = $value; + + after_hasWiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_hasPages; + } + + $properties['hasPages'] = $value; + + after_hasPages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_hasDownloads; + } + + $properties['hasDownloads'] = $value; + + after_hasDownloads: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; + } + + $properties['hasDiscussions'] = $value; + + after_hasDiscussions: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $properties['visibility'] = null; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushedAt'] = null; + goto after_pushedAt; + } + + $properties['pushedAt'] = $value; + + after_pushedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $properties['allowRebaseMerge'] = null; + goto after_allowRebaseMerge; + } + + $properties['allowRebaseMerge'] = $value; + + after_allowRebaseMerge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; + } + + $properties['tempCloneToken'] = $value; + + after_tempCloneToken: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $properties['allowSquashMerge'] = null; + goto after_allowSquashMerge; + } + + $properties['allowSquashMerge'] = $value; + + after_allowSquashMerge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $properties['allowAutoMerge'] = null; + goto after_allowAutoMerge; + } + + $properties['allowAutoMerge'] = $value; + + after_allowAutoMerge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; + } + + $properties['deleteBranchOnMerge'] = $value; + + after_deleteBranchOnMerge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $properties['allowUpdateBranch'] = null; + goto after_allowUpdateBranch; + } + + $properties['allowUpdateBranch'] = $value; + + after_allowUpdateBranch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $properties['useSquashPrTitleAsDefault'] = null; + goto after_useSquashPrTitleAsDefault; + } + + $properties['useSquashPrTitleAsDefault'] = $value; + + after_useSquashPrTitleAsDefault: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitTitle'] = null; + goto after_squashMergeCommitTitle; + } + + $properties['squashMergeCommitTitle'] = $value; + + after_squashMergeCommitTitle: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitMessage'] = null; + goto after_squashMergeCommitMessage; + } + + $properties['squashMergeCommitMessage'] = $value; + + after_squashMergeCommitMessage: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $properties['mergeCommitTitle'] = null; + goto after_mergeCommitTitle; + } + + $properties['mergeCommitTitle'] = $value; + + after_mergeCommitTitle: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $properties['mergeCommitMessage'] = null; + goto after_mergeCommitMessage; + } + + $properties['mergeCommitMessage'] = $value; + + after_mergeCommitMessage: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $properties['allowMergeCommit'] = null; + goto after_allowMergeCommit; + } + + $properties['allowMergeCommit'] = $value; + + after_allowMergeCommit: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $properties['allowForking'] = null; + goto after_allowForking; + } + + $properties['allowForking'] = $value; + + after_allowForking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; + } + + $properties['webCommitSignoffRequired'] = $value; + + after_webCommitSignoffRequired: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $properties['masterBranch'] = null; + goto after_masterBranch; + } + + $properties['masterBranch'] = $value; + + after_masterBranch: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $properties['anonymousAccessEnabled'] = null; + goto after_anonymousAccessEnabled; + } + + $properties['anonymousAccessEnabled'] = $value; + + after_anonymousAccessEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Repository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple + { + $properties = []; + $missingFields = []; + try { + $value = $payload['key'] ?? null; + + if ($value === null) { + $missingFields[] = 'key'; + goto after_key; + } + + $properties['key'] = $value; + + after_key: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $properties['spdxId'] = null; + goto after_spdxId; + } + + $properties['spdxId'] = $value; + + after_spdxId: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new LicenseSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions(array $payload): Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $properties['triage'] = null; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $properties['maintain'] = null; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration(array $payload): Integration + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $properties['slug'] = null; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['client_id'] ?? null; + + if ($value === null) { + $properties['clientId'] = null; + goto after_clientId; + } + + $properties['clientId'] = $value; + + after_clientId: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $properties['owner'] = null; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_externalUrl; + } + + $properties['externalUrl'] = $value; + + after_externalUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['installations_count'] ?? null; + + if ($value === null) { + $properties['installationsCount'] = null; + goto after_installationsCount; + } + + $properties['installationsCount'] = $value; + + after_installationsCount: + + $value = $payload['client_secret'] ?? null; + + if ($value === null) { + $properties['clientSecret'] = null; + goto after_clientSecret; + } + + $properties['clientSecret'] = $value; + + after_clientSecret: + + $value = $payload['webhook_secret'] ?? null; + + if ($value === null) { + $properties['webhookSecret'] = null; + goto after_webhookSecret; + } + + $properties['webhookSecret'] = $value; + + after_webhookSecret: + + $value = $payload['pem'] ?? null; + + if ($value === null) { + $properties['pem'] = null; + goto after_pem; + } + + $properties['pem'] = $value; + + after_pem: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Integration::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Integration(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['issues'] ?? null; + + if ($value === null) { + $properties['issues'] = null; + goto after_issues; + } + + $properties['issues'] = $value; + + after_issues: + + $value = $payload['checks'] ?? null; + + if ($value === null) { + $properties['checks'] = null; + goto after_checks; + } + + $properties['checks'] = $value; + + after_checks: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $properties['metadata'] = null; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $properties['contents'] = null; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $properties['deployments'] = null; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup(array $payload): ReactionRollup + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['+1'] ?? null; + + if ($value === null) { + $missingFields[] = '+1'; + goto after_plusOne; + } + + $properties['plusOne'] = $value; + + after_plusOne: + + $value = $payload['-1'] ?? null; + + if ($value === null) { + $missingFields[] = '-1'; + goto after_minOne; + } + + $properties['minOne'] = $value; + + after_minOne: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $value = $payload['heart'] ?? null; + + if ($value === null) { + $missingFields[] = 'heart'; + goto after_heart; + } + + $properties['heart'] = $value; + + after_heart: + + $value = $payload['hooray'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooray'; + goto after_hooray; + } + + $properties['hooray'] = $value; + + after_hooray: + + $value = $payload['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ReactionRollup::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ReactionRollup(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError(array $payload): ScimError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['detail'] ?? null; + + if ($value === null) { + $properties['detail'] = null; + goto after_detail; + } + + $properties['detail'] = $value; + + after_detail: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + + $value = $payload['scim_type'] ?? null; + + if ($value === null) { + $properties['scimType'] = null; + goto after_scimType; + } + + $properties['scimType'] = $value; + + after_scimType: + + $value = $payload['schemas'] ?? null; + + if ($value === null) { + $properties['schemas'] = null; + goto after_schemas; + } + + $properties['schemas'] = $value; + + after_schemas: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ScimError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ScimError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue(mixed $object): mixed + { + assert($object instanceof Issue); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $repositoryUrl = $object->repositoryUrl; + after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $stateReason = $object->stateReason; + + if ($stateReason === null) { + goto after_stateReason; + } + + after_stateReason: $result['state_reason'] = $stateReason; + + $title = $object->title; + after_title: $result['title'] = $title; + + $body = $object->body; + + if ($body === null) { + goto after_body; + } + + after_body: $result['body'] = $body; + + $user = $object->user; + + if ($user === null) { + goto after_user; + } + + $user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($user); + after_user: $result['user'] = $user; + + $labels = $object->labels; + static $labelsSerializer0; + + if ($labelsSerializer0 === null) { + $labelsSerializer0 = new SerializeArrayItems(...[]); + } + + $labels = $labelsSerializer0->serialize($labels, $this); + after_labels: $result['labels'] = $labels; + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + + $assignee = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($assignee); + after_assignee: $result['assignee'] = $assignee; + + $assignees = $object->assignees; + + if ($assignees === null) { + goto after_assignees; + } + + static $assigneesSerializer0; + + if ($assigneesSerializer0 === null) { + $assigneesSerializer0 = new SerializeArrayItems(...[]); + } + + $assignees = $assigneesSerializer0->serialize($assignees, $this); + after_assignees: $result['assignees'] = $assignees; + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + + $milestone = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + $locked = $object->locked; + after_locked: $result['locked'] = $locked; + + $activeLockReason = $object->activeLockReason; + + if ($activeLockReason === null) { + goto after_activeLockReason; + } + + after_activeLockReason: $result['active_lock_reason'] = $activeLockReason; + + $comments = $object->comments; + after_comments: $result['comments'] = $comments; + + $pullRequest = $object->pullRequest; + + if ($pullRequest === null) { + goto after_pullRequest; + } + + $pullRequest = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($pullRequest); + after_pullRequest: $result['pull_request'] = $pullRequest; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $draft = $object->draft; + + if ($draft === null) { + goto after_draft; + } + + after_draft: $result['draft'] = $draft; + + $closedBy = $object->closedBy; + + if ($closedBy === null) { + goto after_closedBy; + } + + $closedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($closedBy); + after_closedBy: $result['closed_by'] = $closedBy; + + $bodyHtml = $object->bodyHtml; + + if ($bodyHtml === null) { + goto after_bodyHtml; + } + + after_bodyHtml: $result['body_html'] = $bodyHtml; + + $bodyText = $object->bodyText; + + if ($bodyText === null) { + goto after_bodyText; + } + + after_bodyText: $result['body_text'] = $bodyText; + + $timelineUrl = $object->timelineUrl; + + if ($timelineUrl === null) { + goto after_timelineUrl; + } + + after_timelineUrl: $result['timeline_url'] = $timelineUrl; + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + $performedViaGithubApp = $object->performedViaGithubApp; + + if ($performedViaGithubApp === null) { + goto after_performedViaGithubApp; + } + + $performedViaGithubApp = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($performedViaGithubApp); + after_performedViaGithubApp: $result['performed_via_github_app'] = $performedViaGithubApp; + + $authorAssociation = $object->authorAssociation; + after_authorAssociation: $result['author_association'] = $authorAssociation; + + $reactions = $object->reactions; + + if ($reactions === null) { + goto after_reactions; + } + + $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($reactions); + after_reactions: $result['reactions'] = $reactions; + + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone(mixed $object): mixed + { + assert($object instanceof Milestone); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $title = $object->title; + after_title: $result['title'] = $title; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $creator = $object->creator; + + if ($creator === null) { + goto after_creator; + } + + $creator = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($creator); + after_creator: $result['creator'] = $creator; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $closedIssues = $object->closedIssues; + after_closedIssues: $result['closed_issues'] = $closedIssues; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $dueOn = $object->dueOn; + + if ($dueOn === null) { + goto after_dueOn; + } + + after_dueOn: $result['due_on'] = $dueOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest(mixed $object): mixed + { + assert($object instanceof PullRequest); + $result = []; + + $mergedAt = $object->mergedAt; + + if ($mergedAt === null) { + goto after_mergedAt; + } + + after_mergedAt: $result['merged_at'] = $mergedAt; + + $diffUrl = $object->diffUrl; + + if ($diffUrl === null) { + goto after_diffUrl; + } + + after_diffUrl: $result['diff_url'] = $diffUrl; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $patchUrl = $object->patchUrl; + + if ($patchUrl === null) { + goto after_patchUrl; + } + + after_patchUrl: $result['patch_url'] = $patchUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository(mixed $object): mixed + { + assert($object instanceof Repository); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $fullName = $object->fullName; + after_fullName: $result['full_name'] = $fullName; + + $license = $object->license; + + if ($license === null) { + goto after_license; + } + + $license = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($license); + after_license: $result['license'] = $license; + + $forks = $object->forks; + after_forks: $result['forks'] = $forks; + + $permissions = $object->permissions; + + if ($permissions === null) { + goto after_permissions; + } + + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $owner = $object->owner; + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $private = $object->private; + after_private: $result['private'] = $private; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $fork = $object->fork; + after_fork: $result['fork'] = $fork; + + $url = $object->url; + after_url: $result['url'] = $url; + + $archiveUrl = $object->archiveUrl; + after_archiveUrl: $result['archive_url'] = $archiveUrl; + + $assigneesUrl = $object->assigneesUrl; + after_assigneesUrl: $result['assignees_url'] = $assigneesUrl; + + $blobsUrl = $object->blobsUrl; + after_blobsUrl: $result['blobs_url'] = $blobsUrl; + + $branchesUrl = $object->branchesUrl; + after_branchesUrl: $result['branches_url'] = $branchesUrl; + + $collaboratorsUrl = $object->collaboratorsUrl; + after_collaboratorsUrl: $result['collaborators_url'] = $collaboratorsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $commitsUrl = $object->commitsUrl; + after_commitsUrl: $result['commits_url'] = $commitsUrl; + + $compareUrl = $object->compareUrl; + after_compareUrl: $result['compare_url'] = $compareUrl; + + $contentsUrl = $object->contentsUrl; + after_contentsUrl: $result['contents_url'] = $contentsUrl; + + $contributorsUrl = $object->contributorsUrl; + after_contributorsUrl: $result['contributors_url'] = $contributorsUrl; + + $deploymentsUrl = $object->deploymentsUrl; + after_deploymentsUrl: $result['deployments_url'] = $deploymentsUrl; + + $downloadsUrl = $object->downloadsUrl; + after_downloadsUrl: $result['downloads_url'] = $downloadsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $forksUrl = $object->forksUrl; + after_forksUrl: $result['forks_url'] = $forksUrl; + + $gitCommitsUrl = $object->gitCommitsUrl; + after_gitCommitsUrl: $result['git_commits_url'] = $gitCommitsUrl; + + $gitRefsUrl = $object->gitRefsUrl; + after_gitRefsUrl: $result['git_refs_url'] = $gitRefsUrl; + + $gitTagsUrl = $object->gitTagsUrl; + after_gitTagsUrl: $result['git_tags_url'] = $gitTagsUrl; + + $gitUrl = $object->gitUrl; + after_gitUrl: $result['git_url'] = $gitUrl; + + $issueCommentUrl = $object->issueCommentUrl; + after_issueCommentUrl: $result['issue_comment_url'] = $issueCommentUrl; + + $issueEventsUrl = $object->issueEventsUrl; + after_issueEventsUrl: $result['issue_events_url'] = $issueEventsUrl; + + $issuesUrl = $object->issuesUrl; + after_issuesUrl: $result['issues_url'] = $issuesUrl; + + $keysUrl = $object->keysUrl; + after_keysUrl: $result['keys_url'] = $keysUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $languagesUrl = $object->languagesUrl; + after_languagesUrl: $result['languages_url'] = $languagesUrl; + + $mergesUrl = $object->mergesUrl; + after_mergesUrl: $result['merges_url'] = $mergesUrl; + + $milestonesUrl = $object->milestonesUrl; + after_milestonesUrl: $result['milestones_url'] = $milestonesUrl; + + $notificationsUrl = $object->notificationsUrl; + after_notificationsUrl: $result['notifications_url'] = $notificationsUrl; + + $pullsUrl = $object->pullsUrl; + after_pullsUrl: $result['pulls_url'] = $pullsUrl; + + $releasesUrl = $object->releasesUrl; + after_releasesUrl: $result['releases_url'] = $releasesUrl; + + $sshUrl = $object->sshUrl; + after_sshUrl: $result['ssh_url'] = $sshUrl; + + $stargazersUrl = $object->stargazersUrl; + after_stargazersUrl: $result['stargazers_url'] = $stargazersUrl; + + $statusesUrl = $object->statusesUrl; + after_statusesUrl: $result['statuses_url'] = $statusesUrl; + + $subscribersUrl = $object->subscribersUrl; + after_subscribersUrl: $result['subscribers_url'] = $subscribersUrl; + + $subscriptionUrl = $object->subscriptionUrl; + after_subscriptionUrl: $result['subscription_url'] = $subscriptionUrl; + + $tagsUrl = $object->tagsUrl; + after_tagsUrl: $result['tags_url'] = $tagsUrl; + + $teamsUrl = $object->teamsUrl; + after_teamsUrl: $result['teams_url'] = $teamsUrl; + + $treesUrl = $object->treesUrl; + after_treesUrl: $result['trees_url'] = $treesUrl; + + $cloneUrl = $object->cloneUrl; + after_cloneUrl: $result['clone_url'] = $cloneUrl; + + $mirrorUrl = $object->mirrorUrl; + + if ($mirrorUrl === null) { + goto after_mirrorUrl; + } + + after_mirrorUrl: $result['mirror_url'] = $mirrorUrl; + + $hooksUrl = $object->hooksUrl; + after_hooksUrl: $result['hooks_url'] = $hooksUrl; + + $svnUrl = $object->svnUrl; + after_svnUrl: $result['svn_url'] = $svnUrl; + + $homepage = $object->homepage; + + if ($homepage === null) { + goto after_homepage; + } + + after_homepage: $result['homepage'] = $homepage; + + $language = $object->language; + + if ($language === null) { + goto after_language; + } + + after_language: $result['language'] = $language; + + $forksCount = $object->forksCount; + after_forksCount: $result['forks_count'] = $forksCount; + + $stargazersCount = $object->stargazersCount; + after_stargazersCount: $result['stargazers_count'] = $stargazersCount; + + $watchersCount = $object->watchersCount; + after_watchersCount: $result['watchers_count'] = $watchersCount; + + $size = $object->size; + after_size: $result['size'] = $size; + + $defaultBranch = $object->defaultBranch; + after_defaultBranch: $result['default_branch'] = $defaultBranch; + + $openIssuesCount = $object->openIssuesCount; + after_openIssuesCount: $result['open_issues_count'] = $openIssuesCount; + + $isTemplate = $object->isTemplate; + + if ($isTemplate === null) { + goto after_isTemplate; + } + + after_isTemplate: $result['is_template'] = $isTemplate; + + $topics = $object->topics; + + if ($topics === null) { + goto after_topics; + } + + static $topicsSerializer0; + + if ($topicsSerializer0 === null) { + $topicsSerializer0 = new SerializeArrayItems(...[]); + } + + $topics = $topicsSerializer0->serialize($topics, $this); + after_topics: $result['topics'] = $topics; + + $hasIssues = $object->hasIssues; + after_hasIssues: $result['has_issues'] = $hasIssues; + + $hasProjects = $object->hasProjects; + after_hasProjects: $result['has_projects'] = $hasProjects; + + $hasWiki = $object->hasWiki; + after_hasWiki: $result['has_wiki'] = $hasWiki; + + $hasPages = $object->hasPages; + after_hasPages: $result['has_pages'] = $hasPages; + + $hasDownloads = $object->hasDownloads; + after_hasDownloads: $result['has_downloads'] = $hasDownloads; + + $hasDiscussions = $object->hasDiscussions; + + if ($hasDiscussions === null) { + goto after_hasDiscussions; + } + + after_hasDiscussions: $result['has_discussions'] = $hasDiscussions; + + $archived = $object->archived; + after_archived: $result['archived'] = $archived; + + $disabled = $object->disabled; + after_disabled: $result['disabled'] = $disabled; + + $visibility = $object->visibility; + + if ($visibility === null) { + goto after_visibility; + } + + after_visibility: $result['visibility'] = $visibility; + + $pushedAt = $object->pushedAt; + + if ($pushedAt === null) { + goto after_pushedAt; + } + + after_pushedAt: $result['pushed_at'] = $pushedAt; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $allowRebaseMerge = $object->allowRebaseMerge; + + if ($allowRebaseMerge === null) { + goto after_allowRebaseMerge; + } + + after_allowRebaseMerge: $result['allow_rebase_merge'] = $allowRebaseMerge; + + $tempCloneToken = $object->tempCloneToken; + + if ($tempCloneToken === null) { + goto after_tempCloneToken; + } + + after_tempCloneToken: $result['temp_clone_token'] = $tempCloneToken; + + $allowSquashMerge = $object->allowSquashMerge; + + if ($allowSquashMerge === null) { + goto after_allowSquashMerge; + } + + after_allowSquashMerge: $result['allow_squash_merge'] = $allowSquashMerge; + + $allowAutoMerge = $object->allowAutoMerge; + + if ($allowAutoMerge === null) { + goto after_allowAutoMerge; + } + + after_allowAutoMerge: $result['allow_auto_merge'] = $allowAutoMerge; + + $deleteBranchOnMerge = $object->deleteBranchOnMerge; + + if ($deleteBranchOnMerge === null) { + goto after_deleteBranchOnMerge; + } + + after_deleteBranchOnMerge: $result['delete_branch_on_merge'] = $deleteBranchOnMerge; + + $allowUpdateBranch = $object->allowUpdateBranch; + + if ($allowUpdateBranch === null) { + goto after_allowUpdateBranch; + } + + after_allowUpdateBranch: $result['allow_update_branch'] = $allowUpdateBranch; + + $useSquashPrTitleAsDefault = $object->useSquashPrTitleAsDefault; + + if ($useSquashPrTitleAsDefault === null) { + goto after_useSquashPrTitleAsDefault; + } + + after_useSquashPrTitleAsDefault: $result['use_squash_pr_title_as_default'] = $useSquashPrTitleAsDefault; + + $squashMergeCommitTitle = $object->squashMergeCommitTitle; + + if ($squashMergeCommitTitle === null) { + goto after_squashMergeCommitTitle; + } + + after_squashMergeCommitTitle: $result['squash_merge_commit_title'] = $squashMergeCommitTitle; + + $squashMergeCommitMessage = $object->squashMergeCommitMessage; + + if ($squashMergeCommitMessage === null) { + goto after_squashMergeCommitMessage; + } + + after_squashMergeCommitMessage: $result['squash_merge_commit_message'] = $squashMergeCommitMessage; + + $mergeCommitTitle = $object->mergeCommitTitle; + + if ($mergeCommitTitle === null) { + goto after_mergeCommitTitle; + } + + after_mergeCommitTitle: $result['merge_commit_title'] = $mergeCommitTitle; + + $mergeCommitMessage = $object->mergeCommitMessage; + + if ($mergeCommitMessage === null) { + goto after_mergeCommitMessage; + } + + after_mergeCommitMessage: $result['merge_commit_message'] = $mergeCommitMessage; + + $allowMergeCommit = $object->allowMergeCommit; + + if ($allowMergeCommit === null) { + goto after_allowMergeCommit; + } + + after_allowMergeCommit: $result['allow_merge_commit'] = $allowMergeCommit; + + $allowForking = $object->allowForking; + + if ($allowForking === null) { + goto after_allowForking; + } + + after_allowForking: $result['allow_forking'] = $allowForking; + + $webCommitSignoffRequired = $object->webCommitSignoffRequired; + + if ($webCommitSignoffRequired === null) { + goto after_webCommitSignoffRequired; + } + + after_webCommitSignoffRequired: $result['web_commit_signoff_required'] = $webCommitSignoffRequired; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $watchers = $object->watchers; + after_watchers: $result['watchers'] = $watchers; + + $masterBranch = $object->masterBranch; + + if ($masterBranch === null) { + goto after_masterBranch; + } + + after_masterBranch: $result['master_branch'] = $masterBranch; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $anonymousAccessEnabled = $object->anonymousAccessEnabled; + + if ($anonymousAccessEnabled === null) { + goto after_anonymousAccessEnabled; + } + + after_anonymousAccessEnabled: $result['anonymous_access_enabled'] = $anonymousAccessEnabled; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple(mixed $object): mixed + { + assert($object instanceof LicenseSimple); + $result = []; + + $key = $object->key; + after_key: $result['key'] = $key; + + $name = $object->name; + after_name: $result['name'] = $name; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $spdxId = $object->spdxId; + + if ($spdxId === null) { + goto after_spdxId; + } + + after_spdxId: $result['spdx_id'] = $spdxId; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions(mixed $object): mixed + { + assert($object instanceof Permissions); + $result = []; + + $admin = $object->admin; + after_admin: $result['admin'] = $admin; + + $pull = $object->pull; + after_pull: $result['pull'] = $pull; + + $triage = $object->triage; + + if ($triage === null) { + goto after_triage; + } + + after_triage: $result['triage'] = $triage; + + $push = $object->push; + after_push: $result['push'] = $push; + + $maintain = $object->maintain; + + if ($maintain === null) { + goto after_maintain; + } + + after_maintain: $result['maintain'] = $maintain; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration(mixed $object): mixed + { + assert($object instanceof Integration); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $slug = $object->slug; + + if ($slug === null) { + goto after_slug; + } + + after_slug: $result['slug'] = $slug; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $clientId = $object->clientId; + + if ($clientId === null) { + goto after_clientId; + } + + after_clientId: $result['client_id'] = $clientId; + + $owner = $object->owner; + + if ($owner === null) { + goto after_owner; + } + + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $externalUrl = $object->externalUrl; + after_externalUrl: $result['external_url'] = $externalUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $permissions = $object->permissions; + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $events = $object->events; + static $eventsSerializer0; + + if ($eventsSerializer0 === null) { + $eventsSerializer0 = new SerializeArrayItems(...[]); + } + + $events = $eventsSerializer0->serialize($events, $this); + after_events: $result['events'] = $events; + + $installationsCount = $object->installationsCount; + + if ($installationsCount === null) { + goto after_installationsCount; + } + + after_installationsCount: $result['installations_count'] = $installationsCount; + + $clientSecret = $object->clientSecret; + + if ($clientSecret === null) { + goto after_clientSecret; + } + + after_clientSecret: $result['client_secret'] = $clientSecret; + + $webhookSecret = $object->webhookSecret; + + if ($webhookSecret === null) { + goto after_webhookSecret; + } + + after_webhookSecret: $result['webhook_secret'] = $webhookSecret; + + $pem = $object->pem; + + if ($pem === null) { + goto after_pem; + } + + after_pem: $result['pem'] = $pem; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions); + $result = []; + + $issues = $object->issues; + + if ($issues === null) { + goto after_issues; + } + + after_issues: $result['issues'] = $issues; + + $checks = $object->checks; + + if ($checks === null) { + goto after_checks; + } + + after_checks: $result['checks'] = $checks; + + $metadata = $object->metadata; + + if ($metadata === null) { + goto after_metadata; + } + + after_metadata: $result['metadata'] = $metadata; + + $contents = $object->contents; + + if ($contents === null) { + goto after_contents; + } + + after_contents: $result['contents'] = $contents; + + $deployments = $object->deployments; + + if ($deployments === null) { + goto after_deployments; + } + + after_deployments: $result['deployments'] = $deployments; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup(mixed $object): mixed + { + assert($object instanceof ReactionRollup); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $plusOne = $object->plusOne; + after_plusOne: $result['+1'] = $plusOne; + + $minOne = $object->minOne; + after_minOne: $result['-1'] = $minOne; + + $laugh = $object->laugh; + after_laugh: $result['laugh'] = $laugh; + + $confused = $object->confused; + after_confused: $result['confused'] = $confused; + + $heart = $object->heart; + after_heart: $result['heart'] = $heart; + + $hooray = $object->hooray; + after_hooray: $result['hooray'] = $hooray; + + $eyes = $object->eyes; + after_eyes: $result['eyes'] = $eyes; + + $rocket = $object->rocket; + after_rocket: $result['rocket'] = $rocket; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError(mixed $object): mixed + { + assert($object instanceof ScimError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $detail = $object->detail; + + if ($detail === null) { + goto after_detail; + } + + after_detail: $result['detail'] = $detail; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + $scimType = $object->scimType; + + if ($scimType === null) { + goto after_scimType; + } + + after_scimType: $result['scim_type'] = $scimType; + + $schemas = $object->schemas; + + if ($schemas === null) { + goto after_schemas; + } + + static $schemasSerializer0; + + if ($schemasSerializer0 === null) { + $schemasSerializer0 = new SerializeArrayItems(...[]); + } + + $schemas = $schemasSerializer0->serialize($schemas, $this); + after_schemas: $result['schemas'] = $schemas; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues.php new file mode 100644 index 00000000000..b18fcbc8c42 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues.php @@ -0,0 +1,4345 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue(array $payload): Issue + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repositoryUrl; + } + + $properties['repositoryUrl'] = $value; + + after_repositoryUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['state_reason'] ?? null; + + if ($value === null) { + $properties['stateReason'] = null; + goto after_stateReason; + } + + $properties['stateReason'] = $value; + + after_stateReason: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $properties['body'] = null; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $properties['user'] = null; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $properties['assignee'] = null; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $properties['assignees'] = null; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $properties['milestone'] = null; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $properties['activeLockReason'] = null; + goto after_activeLockReason; + } + + $properties['activeLockReason'] = $value; + + after_activeLockReason: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $properties['pullRequest'] = null; + goto after_pullRequest; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pullRequest'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pullRequest'] = $value; + + after_pullRequest: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $properties['draft'] = null; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['closed_by'] ?? null; + + if ($value === null) { + $properties['closedBy'] = null; + goto after_closedBy; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'closedBy'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['closedBy'] = $value; + + after_closedBy: + + $value = $payload['body_html'] ?? null; + + if ($value === null) { + $properties['bodyHtml'] = null; + goto after_bodyHtml; + } + + $properties['bodyHtml'] = $value; + + after_bodyHtml: + + $value = $payload['body_text'] ?? null; + + if ($value === null) { + $properties['bodyText'] = null; + goto after_bodyText; + } + + $properties['bodyText'] = $value; + + after_bodyText: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $properties['timelineUrl'] = null; + goto after_timelineUrl; + } + + $properties['timelineUrl'] = $value; + + after_timelineUrl: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $properties['performedViaGithubApp'] = null; + goto after_performedViaGithubApp; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performedViaGithubApp'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performedViaGithubApp'] = $value; + + after_performedViaGithubApp: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_authorAssociation; + } + + $properties['authorAssociation'] = $value; + + after_authorAssociation: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $properties['reactions'] = null; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Issue(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $properties['email'] = null; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; + } + + $properties['avatarUrl'] = $value; + + after_avatarUrl: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $properties['gravatarId'] = null; + goto after_gravatarId; + } + + $properties['gravatarId'] = $value; + + after_gravatarId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followersUrl; + } + + $properties['followersUrl'] = $value; + + after_followersUrl: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_followingUrl; + } + + $properties['followingUrl'] = $value; + + after_followingUrl: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gistsUrl; + } + + $properties['gistsUrl'] = $value; + + after_gistsUrl: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starredUrl; + } + + $properties['starredUrl'] = $value; + + after_starredUrl: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; + } + + $properties['subscriptionsUrl'] = $value; + + after_subscriptionsUrl: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; + } + + $properties['organizationsUrl'] = $value; + + after_organizationsUrl: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_reposUrl; + } + + $properties['reposUrl'] = $value; + + after_reposUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; + } + + $properties['receivedEventsUrl'] = $value; + + after_receivedEventsUrl: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_siteAdmin; + } + + $properties['siteAdmin'] = $value; + + after_siteAdmin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['user_view_type'] ?? null; + + if ($value === null) { + $properties['userViewType'] = null; + goto after_userViewType; + } + + $properties['userViewType'] = $value; + + after_userViewType: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SimpleUser(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone(array $payload): Milestone + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $properties['creator'] = null; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closedIssues; + } + + $properties['closedIssues'] = $value; + + after_closedIssues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $properties['dueOn'] = null; + goto after_dueOn; + } + + $properties['dueOn'] = $value; + + after_dueOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Milestone(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest(array $payload): PullRequest + { + $properties = []; + $missingFields = []; + try { + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $properties['mergedAt'] = null; + goto after_mergedAt; + } + + $properties['mergedAt'] = $value; + + after_mergedAt: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $properties['diffUrl'] = null; + goto after_diffUrl; + } + + $properties['diffUrl'] = $value; + + after_diffUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $properties['patchUrl'] = null; + goto after_patchUrl; + } + + $properties['patchUrl'] = $value; + + after_patchUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new PullRequest(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository(array $payload): Repository + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_fullName; + } + + $properties['fullName'] = $value; + + after_fullName: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $properties['permissions'] = null; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archiveUrl; + } + + $properties['archiveUrl'] = $value; + + after_archiveUrl: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; + } + + $properties['assigneesUrl'] = $value; + + after_assigneesUrl: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; + } + + $properties['blobsUrl'] = $value; + + after_blobsUrl: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branchesUrl; + } + + $properties['branchesUrl'] = $value; + + after_branchesUrl: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; + } + + $properties['collaboratorsUrl'] = $value; + + after_collaboratorsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commitsUrl; + } + + $properties['commitsUrl'] = $value; + + after_commitsUrl: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compareUrl; + } + + $properties['compareUrl'] = $value; + + after_compareUrl: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contentsUrl; + } + + $properties['contentsUrl'] = $value; + + after_contentsUrl: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; + } + + $properties['contributorsUrl'] = $value; + + after_contributorsUrl: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; + } + + $properties['deploymentsUrl'] = $value; + + after_deploymentsUrl: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; + } + + $properties['downloadsUrl'] = $value; + + after_downloadsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forksUrl; + } + + $properties['forksUrl'] = $value; + + after_forksUrl: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; + } + + $properties['gitCommitsUrl'] = $value; + + after_gitCommitsUrl: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; + } + + $properties['gitRefsUrl'] = $value; + + after_gitRefsUrl: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; + } + + $properties['gitTagsUrl'] = $value; + + after_gitTagsUrl: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_gitUrl; + } + + $properties['gitUrl'] = $value; + + after_gitUrl: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; + } + + $properties['issueCommentUrl'] = $value; + + after_issueCommentUrl: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; + } + + $properties['issueEventsUrl'] = $value; + + after_issueEventsUrl: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issuesUrl; + } + + $properties['issuesUrl'] = $value; + + after_issuesUrl: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keysUrl; + } + + $properties['keysUrl'] = $value; + + after_keysUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languagesUrl; + } + + $properties['languagesUrl'] = $value; + + after_languagesUrl: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_mergesUrl; + } + + $properties['mergesUrl'] = $value; + + after_mergesUrl: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; + } + + $properties['milestonesUrl'] = $value; + + after_milestonesUrl: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; + } + + $properties['notificationsUrl'] = $value; + + after_notificationsUrl: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; + } + + $properties['pullsUrl'] = $value; + + after_pullsUrl: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releasesUrl; + } + + $properties['releasesUrl'] = $value; + + after_releasesUrl: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_sshUrl; + } + + $properties['sshUrl'] = $value; + + after_sshUrl: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; + } + + $properties['stargazersUrl'] = $value; + + after_stargazersUrl: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; + } + + $properties['statusesUrl'] = $value; + + after_statusesUrl: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; + } + + $properties['subscribersUrl'] = $value; + + after_subscribersUrl: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; + } + + $properties['subscriptionUrl'] = $value; + + after_subscriptionUrl: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tagsUrl; + } + + $properties['tagsUrl'] = $value; + + after_tagsUrl: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teamsUrl; + } + + $properties['teamsUrl'] = $value; + + after_teamsUrl: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_treesUrl; + } + + $properties['treesUrl'] = $value; + + after_treesUrl: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_cloneUrl; + } + + $properties['cloneUrl'] = $value; + + after_cloneUrl: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; + } + + $properties['mirrorUrl'] = $value; + + after_mirrorUrl: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; + } + + $properties['hooksUrl'] = $value; + + after_hooksUrl: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svnUrl; + } + + $properties['svnUrl'] = $value; + + after_svnUrl: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $properties['homepage'] = null; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $properties['language'] = null; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forksCount; + } + + $properties['forksCount'] = $value; + + after_forksCount: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazersCount; + } + + $properties['stargazersCount'] = $value; + + after_stargazersCount: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchersCount; + } + + $properties['watchersCount'] = $value; + + after_watchersCount: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_defaultBranch; + } + + $properties['defaultBranch'] = $value; + + after_defaultBranch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_openIssuesCount; + } + + $properties['openIssuesCount'] = $value; + + after_openIssuesCount: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $properties['isTemplate'] = null; + goto after_isTemplate; + } + + $properties['isTemplate'] = $value; + + after_isTemplate: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $properties['topics'] = null; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_hasIssues; + } + + $properties['hasIssues'] = $value; + + after_hasIssues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_hasProjects; + } + + $properties['hasProjects'] = $value; + + after_hasProjects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_hasWiki; + } + + $properties['hasWiki'] = $value; + + after_hasWiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_hasPages; + } + + $properties['hasPages'] = $value; + + after_hasPages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_hasDownloads; + } + + $properties['hasDownloads'] = $value; + + after_hasDownloads: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; + } + + $properties['hasDiscussions'] = $value; + + after_hasDiscussions: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $properties['visibility'] = null; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushedAt'] = null; + goto after_pushedAt; + } + + $properties['pushedAt'] = $value; + + after_pushedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $properties['allowRebaseMerge'] = null; + goto after_allowRebaseMerge; + } + + $properties['allowRebaseMerge'] = $value; + + after_allowRebaseMerge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; + } + + $properties['tempCloneToken'] = $value; + + after_tempCloneToken: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $properties['allowSquashMerge'] = null; + goto after_allowSquashMerge; + } + + $properties['allowSquashMerge'] = $value; + + after_allowSquashMerge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $properties['allowAutoMerge'] = null; + goto after_allowAutoMerge; + } + + $properties['allowAutoMerge'] = $value; + + after_allowAutoMerge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; + } + + $properties['deleteBranchOnMerge'] = $value; + + after_deleteBranchOnMerge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $properties['allowUpdateBranch'] = null; + goto after_allowUpdateBranch; + } + + $properties['allowUpdateBranch'] = $value; + + after_allowUpdateBranch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $properties['useSquashPrTitleAsDefault'] = null; + goto after_useSquashPrTitleAsDefault; + } + + $properties['useSquashPrTitleAsDefault'] = $value; + + after_useSquashPrTitleAsDefault: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitTitle'] = null; + goto after_squashMergeCommitTitle; + } + + $properties['squashMergeCommitTitle'] = $value; + + after_squashMergeCommitTitle: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitMessage'] = null; + goto after_squashMergeCommitMessage; + } + + $properties['squashMergeCommitMessage'] = $value; + + after_squashMergeCommitMessage: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $properties['mergeCommitTitle'] = null; + goto after_mergeCommitTitle; + } + + $properties['mergeCommitTitle'] = $value; + + after_mergeCommitTitle: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $properties['mergeCommitMessage'] = null; + goto after_mergeCommitMessage; + } + + $properties['mergeCommitMessage'] = $value; + + after_mergeCommitMessage: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $properties['allowMergeCommit'] = null; + goto after_allowMergeCommit; + } + + $properties['allowMergeCommit'] = $value; + + after_allowMergeCommit: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $properties['allowForking'] = null; + goto after_allowForking; + } + + $properties['allowForking'] = $value; + + after_allowForking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; + } + + $properties['webCommitSignoffRequired'] = $value; + + after_webCommitSignoffRequired: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $properties['masterBranch'] = null; + goto after_masterBranch; + } + + $properties['masterBranch'] = $value; + + after_masterBranch: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $properties['anonymousAccessEnabled'] = null; + goto after_anonymousAccessEnabled; + } + + $properties['anonymousAccessEnabled'] = $value; + + after_anonymousAccessEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Repository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple + { + $properties = []; + $missingFields = []; + try { + $value = $payload['key'] ?? null; + + if ($value === null) { + $missingFields[] = 'key'; + goto after_key; + } + + $properties['key'] = $value; + + after_key: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $properties['spdxId'] = null; + goto after_spdxId; + } + + $properties['spdxId'] = $value; + + after_spdxId: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new LicenseSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions(array $payload): Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $properties['triage'] = null; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $properties['maintain'] = null; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration(array $payload): Integration + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $properties['slug'] = null; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['client_id'] ?? null; + + if ($value === null) { + $properties['clientId'] = null; + goto after_clientId; + } + + $properties['clientId'] = $value; + + after_clientId: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $properties['owner'] = null; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_externalUrl; + } + + $properties['externalUrl'] = $value; + + after_externalUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['installations_count'] ?? null; + + if ($value === null) { + $properties['installationsCount'] = null; + goto after_installationsCount; + } + + $properties['installationsCount'] = $value; + + after_installationsCount: + + $value = $payload['client_secret'] ?? null; + + if ($value === null) { + $properties['clientSecret'] = null; + goto after_clientSecret; + } + + $properties['clientSecret'] = $value; + + after_clientSecret: + + $value = $payload['webhook_secret'] ?? null; + + if ($value === null) { + $properties['webhookSecret'] = null; + goto after_webhookSecret; + } + + $properties['webhookSecret'] = $value; + + after_webhookSecret: + + $value = $payload['pem'] ?? null; + + if ($value === null) { + $properties['pem'] = null; + goto after_pem; + } + + $properties['pem'] = $value; + + after_pem: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Integration::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Integration(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['issues'] ?? null; + + if ($value === null) { + $properties['issues'] = null; + goto after_issues; + } + + $properties['issues'] = $value; + + after_issues: + + $value = $payload['checks'] ?? null; + + if ($value === null) { + $properties['checks'] = null; + goto after_checks; + } + + $properties['checks'] = $value; + + after_checks: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $properties['metadata'] = null; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $properties['contents'] = null; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $properties['deployments'] = null; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup(array $payload): ReactionRollup + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['+1'] ?? null; + + if ($value === null) { + $missingFields[] = '+1'; + goto after_plusOne; + } + + $properties['plusOne'] = $value; + + after_plusOne: + + $value = $payload['-1'] ?? null; + + if ($value === null) { + $missingFields[] = '-1'; + goto after_minOne; + } + + $properties['minOne'] = $value; + + after_minOne: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $value = $payload['heart'] ?? null; + + if ($value === null) { + $missingFields[] = 'heart'; + goto after_heart; + } + + $properties['heart'] = $value; + + after_heart: + + $value = $payload['hooray'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooray'; + goto after_hooray; + } + + $properties['hooray'] = $value; + + after_hooray: + + $value = $payload['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ReactionRollup::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ReactionRollup(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError(array $payload): ValidationError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $missingFields[] = 'message'; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'documentation_url'; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['errors'] ?? null; + + if ($value === null) { + $properties['errors'] = null; + goto after_errors; + } + + $properties['errors'] = $value; + + after_errors: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ValidationError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ValidationError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue(mixed $object): mixed + { + assert($object instanceof Issue); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $repositoryUrl = $object->repositoryUrl; + after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $stateReason = $object->stateReason; + + if ($stateReason === null) { + goto after_stateReason; + } + + after_stateReason: $result['state_reason'] = $stateReason; + + $title = $object->title; + after_title: $result['title'] = $title; + + $body = $object->body; + + if ($body === null) { + goto after_body; + } + + after_body: $result['body'] = $body; + + $user = $object->user; + + if ($user === null) { + goto after_user; + } + + $user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($user); + after_user: $result['user'] = $user; + + $labels = $object->labels; + static $labelsSerializer0; + + if ($labelsSerializer0 === null) { + $labelsSerializer0 = new SerializeArrayItems(...[]); + } + + $labels = $labelsSerializer0->serialize($labels, $this); + after_labels: $result['labels'] = $labels; + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + + $assignee = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($assignee); + after_assignee: $result['assignee'] = $assignee; + + $assignees = $object->assignees; + + if ($assignees === null) { + goto after_assignees; + } + + static $assigneesSerializer0; + + if ($assigneesSerializer0 === null) { + $assigneesSerializer0 = new SerializeArrayItems(...[]); + } + + $assignees = $assigneesSerializer0->serialize($assignees, $this); + after_assignees: $result['assignees'] = $assignees; + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + + $milestone = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + $locked = $object->locked; + after_locked: $result['locked'] = $locked; + + $activeLockReason = $object->activeLockReason; + + if ($activeLockReason === null) { + goto after_activeLockReason; + } + + after_activeLockReason: $result['active_lock_reason'] = $activeLockReason; + + $comments = $object->comments; + after_comments: $result['comments'] = $comments; + + $pullRequest = $object->pullRequest; + + if ($pullRequest === null) { + goto after_pullRequest; + } + + $pullRequest = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($pullRequest); + after_pullRequest: $result['pull_request'] = $pullRequest; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $draft = $object->draft; + + if ($draft === null) { + goto after_draft; + } + + after_draft: $result['draft'] = $draft; + + $closedBy = $object->closedBy; + + if ($closedBy === null) { + goto after_closedBy; + } + + $closedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($closedBy); + after_closedBy: $result['closed_by'] = $closedBy; + + $bodyHtml = $object->bodyHtml; + + if ($bodyHtml === null) { + goto after_bodyHtml; + } + + after_bodyHtml: $result['body_html'] = $bodyHtml; + + $bodyText = $object->bodyText; + + if ($bodyText === null) { + goto after_bodyText; + } + + after_bodyText: $result['body_text'] = $bodyText; + + $timelineUrl = $object->timelineUrl; + + if ($timelineUrl === null) { + goto after_timelineUrl; + } + + after_timelineUrl: $result['timeline_url'] = $timelineUrl; + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + $performedViaGithubApp = $object->performedViaGithubApp; + + if ($performedViaGithubApp === null) { + goto after_performedViaGithubApp; + } + + $performedViaGithubApp = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($performedViaGithubApp); + after_performedViaGithubApp: $result['performed_via_github_app'] = $performedViaGithubApp; + + $authorAssociation = $object->authorAssociation; + after_authorAssociation: $result['author_association'] = $authorAssociation; + + $reactions = $object->reactions; + + if ($reactions === null) { + goto after_reactions; + } + + $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($reactions); + after_reactions: $result['reactions'] = $reactions; + + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone(mixed $object): mixed + { + assert($object instanceof Milestone); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $title = $object->title; + after_title: $result['title'] = $title; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $creator = $object->creator; + + if ($creator === null) { + goto after_creator; + } + + $creator = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($creator); + after_creator: $result['creator'] = $creator; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $closedIssues = $object->closedIssues; + after_closedIssues: $result['closed_issues'] = $closedIssues; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $dueOn = $object->dueOn; + + if ($dueOn === null) { + goto after_dueOn; + } + + after_dueOn: $result['due_on'] = $dueOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest(mixed $object): mixed + { + assert($object instanceof PullRequest); + $result = []; + + $mergedAt = $object->mergedAt; + + if ($mergedAt === null) { + goto after_mergedAt; + } + + after_mergedAt: $result['merged_at'] = $mergedAt; + + $diffUrl = $object->diffUrl; + + if ($diffUrl === null) { + goto after_diffUrl; + } + + after_diffUrl: $result['diff_url'] = $diffUrl; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $patchUrl = $object->patchUrl; + + if ($patchUrl === null) { + goto after_patchUrl; + } + + after_patchUrl: $result['patch_url'] = $patchUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository(mixed $object): mixed + { + assert($object instanceof Repository); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $fullName = $object->fullName; + after_fullName: $result['full_name'] = $fullName; + + $license = $object->license; + + if ($license === null) { + goto after_license; + } + + $license = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($license); + after_license: $result['license'] = $license; + + $forks = $object->forks; + after_forks: $result['forks'] = $forks; + + $permissions = $object->permissions; + + if ($permissions === null) { + goto after_permissions; + } + + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $owner = $object->owner; + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $private = $object->private; + after_private: $result['private'] = $private; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $fork = $object->fork; + after_fork: $result['fork'] = $fork; + + $url = $object->url; + after_url: $result['url'] = $url; + + $archiveUrl = $object->archiveUrl; + after_archiveUrl: $result['archive_url'] = $archiveUrl; + + $assigneesUrl = $object->assigneesUrl; + after_assigneesUrl: $result['assignees_url'] = $assigneesUrl; + + $blobsUrl = $object->blobsUrl; + after_blobsUrl: $result['blobs_url'] = $blobsUrl; + + $branchesUrl = $object->branchesUrl; + after_branchesUrl: $result['branches_url'] = $branchesUrl; + + $collaboratorsUrl = $object->collaboratorsUrl; + after_collaboratorsUrl: $result['collaborators_url'] = $collaboratorsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $commitsUrl = $object->commitsUrl; + after_commitsUrl: $result['commits_url'] = $commitsUrl; + + $compareUrl = $object->compareUrl; + after_compareUrl: $result['compare_url'] = $compareUrl; + + $contentsUrl = $object->contentsUrl; + after_contentsUrl: $result['contents_url'] = $contentsUrl; + + $contributorsUrl = $object->contributorsUrl; + after_contributorsUrl: $result['contributors_url'] = $contributorsUrl; + + $deploymentsUrl = $object->deploymentsUrl; + after_deploymentsUrl: $result['deployments_url'] = $deploymentsUrl; + + $downloadsUrl = $object->downloadsUrl; + after_downloadsUrl: $result['downloads_url'] = $downloadsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $forksUrl = $object->forksUrl; + after_forksUrl: $result['forks_url'] = $forksUrl; + + $gitCommitsUrl = $object->gitCommitsUrl; + after_gitCommitsUrl: $result['git_commits_url'] = $gitCommitsUrl; + + $gitRefsUrl = $object->gitRefsUrl; + after_gitRefsUrl: $result['git_refs_url'] = $gitRefsUrl; + + $gitTagsUrl = $object->gitTagsUrl; + after_gitTagsUrl: $result['git_tags_url'] = $gitTagsUrl; + + $gitUrl = $object->gitUrl; + after_gitUrl: $result['git_url'] = $gitUrl; + + $issueCommentUrl = $object->issueCommentUrl; + after_issueCommentUrl: $result['issue_comment_url'] = $issueCommentUrl; + + $issueEventsUrl = $object->issueEventsUrl; + after_issueEventsUrl: $result['issue_events_url'] = $issueEventsUrl; + + $issuesUrl = $object->issuesUrl; + after_issuesUrl: $result['issues_url'] = $issuesUrl; + + $keysUrl = $object->keysUrl; + after_keysUrl: $result['keys_url'] = $keysUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $languagesUrl = $object->languagesUrl; + after_languagesUrl: $result['languages_url'] = $languagesUrl; + + $mergesUrl = $object->mergesUrl; + after_mergesUrl: $result['merges_url'] = $mergesUrl; + + $milestonesUrl = $object->milestonesUrl; + after_milestonesUrl: $result['milestones_url'] = $milestonesUrl; + + $notificationsUrl = $object->notificationsUrl; + after_notificationsUrl: $result['notifications_url'] = $notificationsUrl; + + $pullsUrl = $object->pullsUrl; + after_pullsUrl: $result['pulls_url'] = $pullsUrl; + + $releasesUrl = $object->releasesUrl; + after_releasesUrl: $result['releases_url'] = $releasesUrl; + + $sshUrl = $object->sshUrl; + after_sshUrl: $result['ssh_url'] = $sshUrl; + + $stargazersUrl = $object->stargazersUrl; + after_stargazersUrl: $result['stargazers_url'] = $stargazersUrl; + + $statusesUrl = $object->statusesUrl; + after_statusesUrl: $result['statuses_url'] = $statusesUrl; + + $subscribersUrl = $object->subscribersUrl; + after_subscribersUrl: $result['subscribers_url'] = $subscribersUrl; + + $subscriptionUrl = $object->subscriptionUrl; + after_subscriptionUrl: $result['subscription_url'] = $subscriptionUrl; + + $tagsUrl = $object->tagsUrl; + after_tagsUrl: $result['tags_url'] = $tagsUrl; + + $teamsUrl = $object->teamsUrl; + after_teamsUrl: $result['teams_url'] = $teamsUrl; + + $treesUrl = $object->treesUrl; + after_treesUrl: $result['trees_url'] = $treesUrl; + + $cloneUrl = $object->cloneUrl; + after_cloneUrl: $result['clone_url'] = $cloneUrl; + + $mirrorUrl = $object->mirrorUrl; + + if ($mirrorUrl === null) { + goto after_mirrorUrl; + } + + after_mirrorUrl: $result['mirror_url'] = $mirrorUrl; + + $hooksUrl = $object->hooksUrl; + after_hooksUrl: $result['hooks_url'] = $hooksUrl; + + $svnUrl = $object->svnUrl; + after_svnUrl: $result['svn_url'] = $svnUrl; + + $homepage = $object->homepage; + + if ($homepage === null) { + goto after_homepage; + } + + after_homepage: $result['homepage'] = $homepage; + + $language = $object->language; + + if ($language === null) { + goto after_language; + } + + after_language: $result['language'] = $language; + + $forksCount = $object->forksCount; + after_forksCount: $result['forks_count'] = $forksCount; + + $stargazersCount = $object->stargazersCount; + after_stargazersCount: $result['stargazers_count'] = $stargazersCount; + + $watchersCount = $object->watchersCount; + after_watchersCount: $result['watchers_count'] = $watchersCount; + + $size = $object->size; + after_size: $result['size'] = $size; + + $defaultBranch = $object->defaultBranch; + after_defaultBranch: $result['default_branch'] = $defaultBranch; + + $openIssuesCount = $object->openIssuesCount; + after_openIssuesCount: $result['open_issues_count'] = $openIssuesCount; + + $isTemplate = $object->isTemplate; + + if ($isTemplate === null) { + goto after_isTemplate; + } + + after_isTemplate: $result['is_template'] = $isTemplate; + + $topics = $object->topics; + + if ($topics === null) { + goto after_topics; + } + + static $topicsSerializer0; + + if ($topicsSerializer0 === null) { + $topicsSerializer0 = new SerializeArrayItems(...[]); + } + + $topics = $topicsSerializer0->serialize($topics, $this); + after_topics: $result['topics'] = $topics; + + $hasIssues = $object->hasIssues; + after_hasIssues: $result['has_issues'] = $hasIssues; + + $hasProjects = $object->hasProjects; + after_hasProjects: $result['has_projects'] = $hasProjects; + + $hasWiki = $object->hasWiki; + after_hasWiki: $result['has_wiki'] = $hasWiki; + + $hasPages = $object->hasPages; + after_hasPages: $result['has_pages'] = $hasPages; + + $hasDownloads = $object->hasDownloads; + after_hasDownloads: $result['has_downloads'] = $hasDownloads; + + $hasDiscussions = $object->hasDiscussions; + + if ($hasDiscussions === null) { + goto after_hasDiscussions; + } + + after_hasDiscussions: $result['has_discussions'] = $hasDiscussions; + + $archived = $object->archived; + after_archived: $result['archived'] = $archived; + + $disabled = $object->disabled; + after_disabled: $result['disabled'] = $disabled; + + $visibility = $object->visibility; + + if ($visibility === null) { + goto after_visibility; + } + + after_visibility: $result['visibility'] = $visibility; + + $pushedAt = $object->pushedAt; + + if ($pushedAt === null) { + goto after_pushedAt; + } + + after_pushedAt: $result['pushed_at'] = $pushedAt; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $allowRebaseMerge = $object->allowRebaseMerge; + + if ($allowRebaseMerge === null) { + goto after_allowRebaseMerge; + } + + after_allowRebaseMerge: $result['allow_rebase_merge'] = $allowRebaseMerge; + + $tempCloneToken = $object->tempCloneToken; + + if ($tempCloneToken === null) { + goto after_tempCloneToken; + } + + after_tempCloneToken: $result['temp_clone_token'] = $tempCloneToken; + + $allowSquashMerge = $object->allowSquashMerge; + + if ($allowSquashMerge === null) { + goto after_allowSquashMerge; + } + + after_allowSquashMerge: $result['allow_squash_merge'] = $allowSquashMerge; + + $allowAutoMerge = $object->allowAutoMerge; + + if ($allowAutoMerge === null) { + goto after_allowAutoMerge; + } + + after_allowAutoMerge: $result['allow_auto_merge'] = $allowAutoMerge; + + $deleteBranchOnMerge = $object->deleteBranchOnMerge; + + if ($deleteBranchOnMerge === null) { + goto after_deleteBranchOnMerge; + } + + after_deleteBranchOnMerge: $result['delete_branch_on_merge'] = $deleteBranchOnMerge; + + $allowUpdateBranch = $object->allowUpdateBranch; + + if ($allowUpdateBranch === null) { + goto after_allowUpdateBranch; + } + + after_allowUpdateBranch: $result['allow_update_branch'] = $allowUpdateBranch; + + $useSquashPrTitleAsDefault = $object->useSquashPrTitleAsDefault; + + if ($useSquashPrTitleAsDefault === null) { + goto after_useSquashPrTitleAsDefault; + } + + after_useSquashPrTitleAsDefault: $result['use_squash_pr_title_as_default'] = $useSquashPrTitleAsDefault; + + $squashMergeCommitTitle = $object->squashMergeCommitTitle; + + if ($squashMergeCommitTitle === null) { + goto after_squashMergeCommitTitle; + } + + after_squashMergeCommitTitle: $result['squash_merge_commit_title'] = $squashMergeCommitTitle; + + $squashMergeCommitMessage = $object->squashMergeCommitMessage; + + if ($squashMergeCommitMessage === null) { + goto after_squashMergeCommitMessage; + } + + after_squashMergeCommitMessage: $result['squash_merge_commit_message'] = $squashMergeCommitMessage; + + $mergeCommitTitle = $object->mergeCommitTitle; + + if ($mergeCommitTitle === null) { + goto after_mergeCommitTitle; + } + + after_mergeCommitTitle: $result['merge_commit_title'] = $mergeCommitTitle; + + $mergeCommitMessage = $object->mergeCommitMessage; + + if ($mergeCommitMessage === null) { + goto after_mergeCommitMessage; + } + + after_mergeCommitMessage: $result['merge_commit_message'] = $mergeCommitMessage; + + $allowMergeCommit = $object->allowMergeCommit; + + if ($allowMergeCommit === null) { + goto after_allowMergeCommit; + } + + after_allowMergeCommit: $result['allow_merge_commit'] = $allowMergeCommit; + + $allowForking = $object->allowForking; + + if ($allowForking === null) { + goto after_allowForking; + } + + after_allowForking: $result['allow_forking'] = $allowForking; + + $webCommitSignoffRequired = $object->webCommitSignoffRequired; + + if ($webCommitSignoffRequired === null) { + goto after_webCommitSignoffRequired; + } + + after_webCommitSignoffRequired: $result['web_commit_signoff_required'] = $webCommitSignoffRequired; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $watchers = $object->watchers; + after_watchers: $result['watchers'] = $watchers; + + $masterBranch = $object->masterBranch; + + if ($masterBranch === null) { + goto after_masterBranch; + } + + after_masterBranch: $result['master_branch'] = $masterBranch; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $anonymousAccessEnabled = $object->anonymousAccessEnabled; + + if ($anonymousAccessEnabled === null) { + goto after_anonymousAccessEnabled; + } + + after_anonymousAccessEnabled: $result['anonymous_access_enabled'] = $anonymousAccessEnabled; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple(mixed $object): mixed + { + assert($object instanceof LicenseSimple); + $result = []; + + $key = $object->key; + after_key: $result['key'] = $key; + + $name = $object->name; + after_name: $result['name'] = $name; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $spdxId = $object->spdxId; + + if ($spdxId === null) { + goto after_spdxId; + } + + after_spdxId: $result['spdx_id'] = $spdxId; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions(mixed $object): mixed + { + assert($object instanceof Permissions); + $result = []; + + $admin = $object->admin; + after_admin: $result['admin'] = $admin; + + $pull = $object->pull; + after_pull: $result['pull'] = $pull; + + $triage = $object->triage; + + if ($triage === null) { + goto after_triage; + } + + after_triage: $result['triage'] = $triage; + + $push = $object->push; + after_push: $result['push'] = $push; + + $maintain = $object->maintain; + + if ($maintain === null) { + goto after_maintain; + } + + after_maintain: $result['maintain'] = $maintain; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration(mixed $object): mixed + { + assert($object instanceof Integration); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $slug = $object->slug; + + if ($slug === null) { + goto after_slug; + } + + after_slug: $result['slug'] = $slug; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $clientId = $object->clientId; + + if ($clientId === null) { + goto after_clientId; + } + + after_clientId: $result['client_id'] = $clientId; + + $owner = $object->owner; + + if ($owner === null) { + goto after_owner; + } + + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $externalUrl = $object->externalUrl; + after_externalUrl: $result['external_url'] = $externalUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $permissions = $object->permissions; + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $events = $object->events; + static $eventsSerializer0; + + if ($eventsSerializer0 === null) { + $eventsSerializer0 = new SerializeArrayItems(...[]); + } + + $events = $eventsSerializer0->serialize($events, $this); + after_events: $result['events'] = $events; + + $installationsCount = $object->installationsCount; + + if ($installationsCount === null) { + goto after_installationsCount; + } + + after_installationsCount: $result['installations_count'] = $installationsCount; + + $clientSecret = $object->clientSecret; + + if ($clientSecret === null) { + goto after_clientSecret; + } + + after_clientSecret: $result['client_secret'] = $clientSecret; + + $webhookSecret = $object->webhookSecret; + + if ($webhookSecret === null) { + goto after_webhookSecret; + } + + after_webhookSecret: $result['webhook_secret'] = $webhookSecret; + + $pem = $object->pem; + + if ($pem === null) { + goto after_pem; + } + + after_pem: $result['pem'] = $pem; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions); + $result = []; + + $issues = $object->issues; + + if ($issues === null) { + goto after_issues; + } + + after_issues: $result['issues'] = $issues; + + $checks = $object->checks; + + if ($checks === null) { + goto after_checks; + } + + after_checks: $result['checks'] = $checks; + + $metadata = $object->metadata; + + if ($metadata === null) { + goto after_metadata; + } + + after_metadata: $result['metadata'] = $metadata; + + $contents = $object->contents; + + if ($contents === null) { + goto after_contents; + } + + after_contents: $result['contents'] = $contents; + + $deployments = $object->deployments; + + if ($deployments === null) { + goto after_deployments; + } + + after_deployments: $result['deployments'] = $deployments; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup(mixed $object): mixed + { + assert($object instanceof ReactionRollup); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $plusOne = $object->plusOne; + after_plusOne: $result['+1'] = $plusOne; + + $minOne = $object->minOne; + after_minOne: $result['-1'] = $minOne; + + $laugh = $object->laugh; + after_laugh: $result['laugh'] = $laugh; + + $confused = $object->confused; + after_confused: $result['confused'] = $confused; + + $heart = $object->heart; + after_heart: $result['heart'] = $heart; + + $hooray = $object->hooray; + after_hooray: $result['hooray'] = $hooray; + + $eyes = $object->eyes; + after_eyes: $result['eyes'] = $eyes; + + $rocket = $object->rocket; + after_rocket: $result['rocket'] = $rocket; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError(mixed $object): mixed + { + assert($object instanceof ValidationError); + $result = []; + + $message = $object->message; + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $errors = $object->errors; + + if ($errors === null) { + goto after_errors; + } + + static $errorsSerializer0; + + if ($errorsSerializer0 === null) { + $errorsSerializer0 = new SerializeArrayItems(...[]); + } + + $errors = $errorsSerializer0->serialize($errors, $this); + after_errors: $result['errors'] = $errors; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues/Priority.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues/Priority.php new file mode 100644 index 00000000000..5d2d7c90898 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Issues/IssueNumber/SubIssues/Priority.php @@ -0,0 +1,4432 @@ + $className + * + * @return T + * + * @template T of object + */ + public function hydrateObject(string $className, array $payload): object + { + return match ($className) { + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationErrorSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationErrorSimple($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($payload), + default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), + }; + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue(array $payload): Issue + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['repository_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository_url'; + goto after_repositoryUrl; + } + + $properties['repositoryUrl'] = $value; + + after_repositoryUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['state_reason'] ?? null; + + if ($value === null) { + $properties['stateReason'] = null; + goto after_stateReason; + } + + $properties['stateReason'] = $value; + + after_stateReason: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['body'] ?? null; + + if ($value === null) { + $properties['body'] = null; + goto after_body; + } + + $properties['body'] = $value; + + after_body: + + $value = $payload['user'] ?? null; + + if ($value === null) { + $properties['user'] = null; + goto after_user; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'user'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['user'] = $value; + + after_user: + + $value = $payload['labels'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels'; + goto after_labels; + } + + $properties['labels'] = $value; + + after_labels: + + $value = $payload['assignee'] ?? null; + + if ($value === null) { + $properties['assignee'] = null; + goto after_assignee; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'assignee'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['assignee'] = $value; + + after_assignee: + + $value = $payload['assignees'] ?? null; + + if ($value === null) { + $properties['assignees'] = null; + goto after_assignees; + } + + $properties['assignees'] = $value; + + after_assignees: + + $value = $payload['milestone'] ?? null; + + if ($value === null) { + $properties['milestone'] = null; + goto after_milestone; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'milestone'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['milestone'] = $value; + + after_milestone: + + $value = $payload['locked'] ?? null; + + if ($value === null) { + $missingFields[] = 'locked'; + goto after_locked; + } + + $properties['locked'] = $value; + + after_locked: + + $value = $payload['active_lock_reason'] ?? null; + + if ($value === null) { + $properties['activeLockReason'] = null; + goto after_activeLockReason; + } + + $properties['activeLockReason'] = $value; + + after_activeLockReason: + + $value = $payload['comments'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments'; + goto after_comments; + } + + $properties['comments'] = $value; + + after_comments: + + $value = $payload['pull_request'] ?? null; + + if ($value === null) { + $properties['pullRequest'] = null; + goto after_pullRequest; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'pullRequest'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['pullRequest'] = $value; + + after_pullRequest: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['draft'] ?? null; + + if ($value === null) { + $properties['draft'] = null; + goto after_draft; + } + + $properties['draft'] = $value; + + after_draft: + + $value = $payload['closed_by'] ?? null; + + if ($value === null) { + $properties['closedBy'] = null; + goto after_closedBy; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'closedBy'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['closedBy'] = $value; + + after_closedBy: + + $value = $payload['body_html'] ?? null; + + if ($value === null) { + $properties['bodyHtml'] = null; + goto after_bodyHtml; + } + + $properties['bodyHtml'] = $value; + + after_bodyHtml: + + $value = $payload['body_text'] ?? null; + + if ($value === null) { + $properties['bodyText'] = null; + goto after_bodyText; + } + + $properties['bodyText'] = $value; + + after_bodyText: + + $value = $payload['timeline_url'] ?? null; + + if ($value === null) { + $properties['timelineUrl'] = null; + goto after_timelineUrl; + } + + $properties['timelineUrl'] = $value; + + after_timelineUrl: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $properties['repository'] = null; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['performed_via_github_app'] ?? null; + + if ($value === null) { + $properties['performedViaGithubApp'] = null; + goto after_performedViaGithubApp; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'performedViaGithubApp'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['performedViaGithubApp'] = $value; + + after_performedViaGithubApp: + + $value = $payload['author_association'] ?? null; + + if ($value === null) { + $missingFields[] = 'author_association'; + goto after_authorAssociation; + } + + $properties['authorAssociation'] = $value; + + after_authorAssociation: + + $value = $payload['reactions'] ?? null; + + if ($value === null) { + $properties['reactions'] = null; + goto after_reactions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'reactions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['reactions'] = $value; + + after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Issue::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Issue(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(array $payload): SimpleUser + { + $properties = []; + $missingFields = []; + try { + $value = $payload['name'] ?? null; + + if ($value === null) { + $properties['name'] = null; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['email'] ?? null; + + if ($value === null) { + $properties['email'] = null; + goto after_email; + } + + $properties['email'] = $value; + + after_email: + + $value = $payload['login'] ?? null; + + if ($value === null) { + $missingFields[] = 'login'; + goto after_login; + } + + $properties['login'] = $value; + + after_login: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['avatar_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'avatar_url'; + goto after_avatarUrl; + } + + $properties['avatarUrl'] = $value; + + after_avatarUrl: + + $value = $payload['gravatar_id'] ?? null; + + if ($value === null) { + $properties['gravatarId'] = null; + goto after_gravatarId; + } + + $properties['gravatarId'] = $value; + + after_gravatarId: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['followers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'followers_url'; + goto after_followersUrl; + } + + $properties['followersUrl'] = $value; + + after_followersUrl: + + $value = $payload['following_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'following_url'; + goto after_followingUrl; + } + + $properties['followingUrl'] = $value; + + after_followingUrl: + + $value = $payload['gists_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'gists_url'; + goto after_gistsUrl; + } + + $properties['gistsUrl'] = $value; + + after_gistsUrl: + + $value = $payload['starred_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'starred_url'; + goto after_starredUrl; + } + + $properties['starredUrl'] = $value; + + after_starredUrl: + + $value = $payload['subscriptions_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscriptions_url'; + goto after_subscriptionsUrl; + } + + $properties['subscriptionsUrl'] = $value; + + after_subscriptionsUrl: + + $value = $payload['organizations_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'organizations_url'; + goto after_organizationsUrl; + } + + $properties['organizationsUrl'] = $value; + + after_organizationsUrl: + + $value = $payload['repos_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'repos_url'; + goto after_reposUrl; + } + + $properties['reposUrl'] = $value; + + after_reposUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['received_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'received_events_url'; + goto after_receivedEventsUrl; + } + + $properties['receivedEventsUrl'] = $value; + + after_receivedEventsUrl: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $missingFields[] = 'type'; + goto after_type; + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['site_admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'site_admin'; + goto after_siteAdmin; + } + + $properties['siteAdmin'] = $value; + + after_siteAdmin: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['user_view_type'] ?? null; + + if ($value === null) { + $properties['userViewType'] = null; + goto after_userViewType; + } + + $properties['userViewType'] = $value; + + after_userViewType: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SimpleUser::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SimpleUser(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone(array $payload): Milestone + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['number'] ?? null; + + if ($value === null) { + $missingFields[] = 'number'; + goto after_number; + } + + $properties['number'] = $value; + + after_number: + + $value = $payload['state'] ?? null; + + if ($value === null) { + $missingFields[] = 'state'; + goto after_state; + } + + $properties['state'] = $value; + + after_state: + + $value = $payload['title'] ?? null; + + if ($value === null) { + $missingFields[] = 'title'; + goto after_title; + } + + $properties['title'] = $value; + + after_title: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['creator'] ?? null; + + if ($value === null) { + $properties['creator'] = null; + goto after_creator; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'creator'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['creator'] = $value; + + after_creator: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['closed_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'closed_issues'; + goto after_closedIssues; + } + + $properties['closedIssues'] = $value; + + after_closedIssues: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['closed_at'] ?? null; + + if ($value === null) { + $properties['closedAt'] = null; + goto after_closedAt; + } + + $properties['closedAt'] = $value; + + after_closedAt: + + $value = $payload['due_on'] ?? null; + + if ($value === null) { + $properties['dueOn'] = null; + goto after_dueOn; + } + + $properties['dueOn'] = $value; + + after_dueOn: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Milestone::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Milestone(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest(array $payload): PullRequest + { + $properties = []; + $missingFields = []; + try { + $value = $payload['merged_at'] ?? null; + + if ($value === null) { + $properties['mergedAt'] = null; + goto after_mergedAt; + } + + $properties['mergedAt'] = $value; + + after_mergedAt: + + $value = $payload['diff_url'] ?? null; + + if ($value === null) { + $properties['diffUrl'] = null; + goto after_diffUrl; + } + + $properties['diffUrl'] = $value; + + after_diffUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['patch_url'] ?? null; + + if ($value === null) { + $properties['patchUrl'] = null; + goto after_patchUrl; + } + + $properties['patchUrl'] = $value; + + after_patchUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(PullRequest::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new PullRequest(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository(array $payload): Repository + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['full_name'] ?? null; + + if ($value === null) { + $missingFields[] = 'full_name'; + goto after_fullName; + } + + $properties['fullName'] = $value; + + after_fullName: + + $value = $payload['license'] ?? null; + + if ($value === null) { + $properties['license'] = null; + goto after_license; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'license'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['license'] = $value; + + after_license: + + $value = $payload['forks'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks'; + goto after_forks; + } + + $properties['forks'] = $value; + + after_forks: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $properties['permissions'] = null; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $missingFields[] = 'owner'; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['private'] ?? null; + + if ($value === null) { + $missingFields[] = 'private'; + goto after_private; + } + + $properties['private'] = $value; + + after_private: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['fork'] ?? null; + + if ($value === null) { + $missingFields[] = 'fork'; + goto after_fork; + } + + $properties['fork'] = $value; + + after_fork: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['archive_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'archive_url'; + goto after_archiveUrl; + } + + $properties['archiveUrl'] = $value; + + after_archiveUrl: + + $value = $payload['assignees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'assignees_url'; + goto after_assigneesUrl; + } + + $properties['assigneesUrl'] = $value; + + after_assigneesUrl: + + $value = $payload['blobs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'blobs_url'; + goto after_blobsUrl; + } + + $properties['blobsUrl'] = $value; + + after_blobsUrl: + + $value = $payload['branches_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'branches_url'; + goto after_branchesUrl; + } + + $properties['branchesUrl'] = $value; + + after_branchesUrl: + + $value = $payload['collaborators_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'collaborators_url'; + goto after_collaboratorsUrl; + } + + $properties['collaboratorsUrl'] = $value; + + after_collaboratorsUrl: + + $value = $payload['comments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'comments_url'; + goto after_commentsUrl; + } + + $properties['commentsUrl'] = $value; + + after_commentsUrl: + + $value = $payload['commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'commits_url'; + goto after_commitsUrl; + } + + $properties['commitsUrl'] = $value; + + after_commitsUrl: + + $value = $payload['compare_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'compare_url'; + goto after_compareUrl; + } + + $properties['compareUrl'] = $value; + + after_compareUrl: + + $value = $payload['contents_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contents_url'; + goto after_contentsUrl; + } + + $properties['contentsUrl'] = $value; + + after_contentsUrl: + + $value = $payload['contributors_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'contributors_url'; + goto after_contributorsUrl; + } + + $properties['contributorsUrl'] = $value; + + after_contributorsUrl: + + $value = $payload['deployments_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'deployments_url'; + goto after_deploymentsUrl; + } + + $properties['deploymentsUrl'] = $value; + + after_deploymentsUrl: + + $value = $payload['downloads_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'downloads_url'; + goto after_downloadsUrl; + } + + $properties['downloadsUrl'] = $value; + + after_downloadsUrl: + + $value = $payload['events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'events_url'; + goto after_eventsUrl; + } + + $properties['eventsUrl'] = $value; + + after_eventsUrl: + + $value = $payload['forks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_url'; + goto after_forksUrl; + } + + $properties['forksUrl'] = $value; + + after_forksUrl: + + $value = $payload['git_commits_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_commits_url'; + goto after_gitCommitsUrl; + } + + $properties['gitCommitsUrl'] = $value; + + after_gitCommitsUrl: + + $value = $payload['git_refs_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_refs_url'; + goto after_gitRefsUrl; + } + + $properties['gitRefsUrl'] = $value; + + after_gitRefsUrl: + + $value = $payload['git_tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_tags_url'; + goto after_gitTagsUrl; + } + + $properties['gitTagsUrl'] = $value; + + after_gitTagsUrl: + + $value = $payload['git_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'git_url'; + goto after_gitUrl; + } + + $properties['gitUrl'] = $value; + + after_gitUrl: + + $value = $payload['issue_comment_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_comment_url'; + goto after_issueCommentUrl; + } + + $properties['issueCommentUrl'] = $value; + + after_issueCommentUrl: + + $value = $payload['issue_events_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue_events_url'; + goto after_issueEventsUrl; + } + + $properties['issueEventsUrl'] = $value; + + after_issueEventsUrl: + + $value = $payload['issues_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'issues_url'; + goto after_issuesUrl; + } + + $properties['issuesUrl'] = $value; + + after_issuesUrl: + + $value = $payload['keys_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'keys_url'; + goto after_keysUrl; + } + + $properties['keysUrl'] = $value; + + after_keysUrl: + + $value = $payload['labels_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'labels_url'; + goto after_labelsUrl; + } + + $properties['labelsUrl'] = $value; + + after_labelsUrl: + + $value = $payload['languages_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'languages_url'; + goto after_languagesUrl; + } + + $properties['languagesUrl'] = $value; + + after_languagesUrl: + + $value = $payload['merges_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'merges_url'; + goto after_mergesUrl; + } + + $properties['mergesUrl'] = $value; + + after_mergesUrl: + + $value = $payload['milestones_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'milestones_url'; + goto after_milestonesUrl; + } + + $properties['milestonesUrl'] = $value; + + after_milestonesUrl: + + $value = $payload['notifications_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'notifications_url'; + goto after_notificationsUrl; + } + + $properties['notificationsUrl'] = $value; + + after_notificationsUrl: + + $value = $payload['pulls_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'pulls_url'; + goto after_pullsUrl; + } + + $properties['pullsUrl'] = $value; + + after_pullsUrl: + + $value = $payload['releases_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'releases_url'; + goto after_releasesUrl; + } + + $properties['releasesUrl'] = $value; + + after_releasesUrl: + + $value = $payload['ssh_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'ssh_url'; + goto after_sshUrl; + } + + $properties['sshUrl'] = $value; + + after_sshUrl: + + $value = $payload['stargazers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_url'; + goto after_stargazersUrl; + } + + $properties['stargazersUrl'] = $value; + + after_stargazersUrl: + + $value = $payload['statuses_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'statuses_url'; + goto after_statusesUrl; + } + + $properties['statusesUrl'] = $value; + + after_statusesUrl: + + $value = $payload['subscribers_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscribers_url'; + goto after_subscribersUrl; + } + + $properties['subscribersUrl'] = $value; + + after_subscribersUrl: + + $value = $payload['subscription_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'subscription_url'; + goto after_subscriptionUrl; + } + + $properties['subscriptionUrl'] = $value; + + after_subscriptionUrl: + + $value = $payload['tags_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'tags_url'; + goto after_tagsUrl; + } + + $properties['tagsUrl'] = $value; + + after_tagsUrl: + + $value = $payload['teams_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'teams_url'; + goto after_teamsUrl; + } + + $properties['teamsUrl'] = $value; + + after_teamsUrl: + + $value = $payload['trees_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'trees_url'; + goto after_treesUrl; + } + + $properties['treesUrl'] = $value; + + after_treesUrl: + + $value = $payload['clone_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'clone_url'; + goto after_cloneUrl; + } + + $properties['cloneUrl'] = $value; + + after_cloneUrl: + + $value = $payload['mirror_url'] ?? null; + + if ($value === null) { + $properties['mirrorUrl'] = null; + goto after_mirrorUrl; + } + + $properties['mirrorUrl'] = $value; + + after_mirrorUrl: + + $value = $payload['hooks_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooks_url'; + goto after_hooksUrl; + } + + $properties['hooksUrl'] = $value; + + after_hooksUrl: + + $value = $payload['svn_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'svn_url'; + goto after_svnUrl; + } + + $properties['svnUrl'] = $value; + + after_svnUrl: + + $value = $payload['homepage'] ?? null; + + if ($value === null) { + $properties['homepage'] = null; + goto after_homepage; + } + + $properties['homepage'] = $value; + + after_homepage: + + $value = $payload['language'] ?? null; + + if ($value === null) { + $properties['language'] = null; + goto after_language; + } + + $properties['language'] = $value; + + after_language: + + $value = $payload['forks_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'forks_count'; + goto after_forksCount; + } + + $properties['forksCount'] = $value; + + after_forksCount: + + $value = $payload['stargazers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'stargazers_count'; + goto after_stargazersCount; + } + + $properties['stargazersCount'] = $value; + + after_stargazersCount: + + $value = $payload['watchers_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers_count'; + goto after_watchersCount; + } + + $properties['watchersCount'] = $value; + + after_watchersCount: + + $value = $payload['size'] ?? null; + + if ($value === null) { + $missingFields[] = 'size'; + goto after_size; + } + + $properties['size'] = $value; + + after_size: + + $value = $payload['default_branch'] ?? null; + + if ($value === null) { + $missingFields[] = 'default_branch'; + goto after_defaultBranch; + } + + $properties['defaultBranch'] = $value; + + after_defaultBranch: + + $value = $payload['open_issues_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues_count'; + goto after_openIssuesCount; + } + + $properties['openIssuesCount'] = $value; + + after_openIssuesCount: + + $value = $payload['is_template'] ?? null; + + if ($value === null) { + $properties['isTemplate'] = null; + goto after_isTemplate; + } + + $properties['isTemplate'] = $value; + + after_isTemplate: + + $value = $payload['topics'] ?? null; + + if ($value === null) { + $properties['topics'] = null; + goto after_topics; + } + + $properties['topics'] = $value; + + after_topics: + + $value = $payload['has_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_issues'; + goto after_hasIssues; + } + + $properties['hasIssues'] = $value; + + after_hasIssues: + + $value = $payload['has_projects'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_projects'; + goto after_hasProjects; + } + + $properties['hasProjects'] = $value; + + after_hasProjects: + + $value = $payload['has_wiki'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_wiki'; + goto after_hasWiki; + } + + $properties['hasWiki'] = $value; + + after_hasWiki: + + $value = $payload['has_pages'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_pages'; + goto after_hasPages; + } + + $properties['hasPages'] = $value; + + after_hasPages: + + $value = $payload['has_downloads'] ?? null; + + if ($value === null) { + $missingFields[] = 'has_downloads'; + goto after_hasDownloads; + } + + $properties['hasDownloads'] = $value; + + after_hasDownloads: + + $value = $payload['has_discussions'] ?? null; + + if ($value === null) { + $properties['hasDiscussions'] = null; + goto after_hasDiscussions; + } + + $properties['hasDiscussions'] = $value; + + after_hasDiscussions: + + $value = $payload['archived'] ?? null; + + if ($value === null) { + $missingFields[] = 'archived'; + goto after_archived; + } + + $properties['archived'] = $value; + + after_archived: + + $value = $payload['disabled'] ?? null; + + if ($value === null) { + $missingFields[] = 'disabled'; + goto after_disabled; + } + + $properties['disabled'] = $value; + + after_disabled: + + $value = $payload['visibility'] ?? null; + + if ($value === null) { + $properties['visibility'] = null; + goto after_visibility; + } + + $properties['visibility'] = $value; + + after_visibility: + + $value = $payload['pushed_at'] ?? null; + + if ($value === null) { + $properties['pushedAt'] = null; + goto after_pushedAt; + } + + $properties['pushedAt'] = $value; + + after_pushedAt: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $properties['createdAt'] = null; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $properties['updatedAt'] = null; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['allow_rebase_merge'] ?? null; + + if ($value === null) { + $properties['allowRebaseMerge'] = null; + goto after_allowRebaseMerge; + } + + $properties['allowRebaseMerge'] = $value; + + after_allowRebaseMerge: + + $value = $payload['temp_clone_token'] ?? null; + + if ($value === null) { + $properties['tempCloneToken'] = null; + goto after_tempCloneToken; + } + + $properties['tempCloneToken'] = $value; + + after_tempCloneToken: + + $value = $payload['allow_squash_merge'] ?? null; + + if ($value === null) { + $properties['allowSquashMerge'] = null; + goto after_allowSquashMerge; + } + + $properties['allowSquashMerge'] = $value; + + after_allowSquashMerge: + + $value = $payload['allow_auto_merge'] ?? null; + + if ($value === null) { + $properties['allowAutoMerge'] = null; + goto after_allowAutoMerge; + } + + $properties['allowAutoMerge'] = $value; + + after_allowAutoMerge: + + $value = $payload['delete_branch_on_merge'] ?? null; + + if ($value === null) { + $properties['deleteBranchOnMerge'] = null; + goto after_deleteBranchOnMerge; + } + + $properties['deleteBranchOnMerge'] = $value; + + after_deleteBranchOnMerge: + + $value = $payload['allow_update_branch'] ?? null; + + if ($value === null) { + $properties['allowUpdateBranch'] = null; + goto after_allowUpdateBranch; + } + + $properties['allowUpdateBranch'] = $value; + + after_allowUpdateBranch: + + $value = $payload['use_squash_pr_title_as_default'] ?? null; + + if ($value === null) { + $properties['useSquashPrTitleAsDefault'] = null; + goto after_useSquashPrTitleAsDefault; + } + + $properties['useSquashPrTitleAsDefault'] = $value; + + after_useSquashPrTitleAsDefault: + + $value = $payload['squash_merge_commit_title'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitTitle'] = null; + goto after_squashMergeCommitTitle; + } + + $properties['squashMergeCommitTitle'] = $value; + + after_squashMergeCommitTitle: + + $value = $payload['squash_merge_commit_message'] ?? null; + + if ($value === null) { + $properties['squashMergeCommitMessage'] = null; + goto after_squashMergeCommitMessage; + } + + $properties['squashMergeCommitMessage'] = $value; + + after_squashMergeCommitMessage: + + $value = $payload['merge_commit_title'] ?? null; + + if ($value === null) { + $properties['mergeCommitTitle'] = null; + goto after_mergeCommitTitle; + } + + $properties['mergeCommitTitle'] = $value; + + after_mergeCommitTitle: + + $value = $payload['merge_commit_message'] ?? null; + + if ($value === null) { + $properties['mergeCommitMessage'] = null; + goto after_mergeCommitMessage; + } + + $properties['mergeCommitMessage'] = $value; + + after_mergeCommitMessage: + + $value = $payload['allow_merge_commit'] ?? null; + + if ($value === null) { + $properties['allowMergeCommit'] = null; + goto after_allowMergeCommit; + } + + $properties['allowMergeCommit'] = $value; + + after_allowMergeCommit: + + $value = $payload['allow_forking'] ?? null; + + if ($value === null) { + $properties['allowForking'] = null; + goto after_allowForking; + } + + $properties['allowForking'] = $value; + + after_allowForking: + + $value = $payload['web_commit_signoff_required'] ?? null; + + if ($value === null) { + $properties['webCommitSignoffRequired'] = null; + goto after_webCommitSignoffRequired; + } + + $properties['webCommitSignoffRequired'] = $value; + + after_webCommitSignoffRequired: + + $value = $payload['open_issues'] ?? null; + + if ($value === null) { + $missingFields[] = 'open_issues'; + goto after_openIssues; + } + + $properties['openIssues'] = $value; + + after_openIssues: + + $value = $payload['watchers'] ?? null; + + if ($value === null) { + $missingFields[] = 'watchers'; + goto after_watchers; + } + + $properties['watchers'] = $value; + + after_watchers: + + $value = $payload['master_branch'] ?? null; + + if ($value === null) { + $properties['masterBranch'] = null; + goto after_masterBranch; + } + + $properties['masterBranch'] = $value; + + after_masterBranch: + + $value = $payload['starred_at'] ?? null; + + if ($value === null) { + $properties['starredAt'] = null; + goto after_starredAt; + } + + $properties['starredAt'] = $value; + + after_starredAt: + + $value = $payload['anonymous_access_enabled'] ?? null; + + if ($value === null) { + $properties['anonymousAccessEnabled'] = null; + goto after_anonymousAccessEnabled; + } + + $properties['anonymousAccessEnabled'] = $value; + + after_anonymousAccessEnabled: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Repository::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Repository(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple(array $payload): LicenseSimple + { + $properties = []; + $missingFields = []; + try { + $value = $payload['key'] ?? null; + + if ($value === null) { + $missingFields[] = 'key'; + goto after_key; + } + + $properties['key'] = $value; + + after_key: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['spdx_id'] ?? null; + + if ($value === null) { + $properties['spdxId'] = null; + goto after_spdxId; + } + + $properties['spdxId'] = $value; + + after_spdxId: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $properties['htmlUrl'] = null; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(LicenseSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new LicenseSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions(array $payload): Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['admin'] ?? null; + + if ($value === null) { + $missingFields[] = 'admin'; + goto after_admin; + } + + $properties['admin'] = $value; + + after_admin: + + $value = $payload['pull'] ?? null; + + if ($value === null) { + $missingFields[] = 'pull'; + goto after_pull; + } + + $properties['pull'] = $value; + + after_pull: + + $value = $payload['triage'] ?? null; + + if ($value === null) { + $properties['triage'] = null; + goto after_triage; + } + + $properties['triage'] = $value; + + after_triage: + + $value = $payload['push'] ?? null; + + if ($value === null) { + $missingFields[] = 'push'; + goto after_push; + } + + $properties['push'] = $value; + + after_push: + + $value = $payload['maintain'] ?? null; + + if ($value === null) { + $properties['maintain'] = null; + goto after_maintain; + } + + $properties['maintain'] = $value; + + after_maintain: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration(array $payload): Integration + { + $properties = []; + $missingFields = []; + try { + $value = $payload['id'] ?? null; + + if ($value === null) { + $missingFields[] = 'id'; + goto after_id; + } + + $properties['id'] = $value; + + after_id: + + $value = $payload['slug'] ?? null; + + if ($value === null) { + $properties['slug'] = null; + goto after_slug; + } + + $properties['slug'] = $value; + + after_slug: + + $value = $payload['node_id'] ?? null; + + if ($value === null) { + $missingFields[] = 'node_id'; + goto after_nodeId; + } + + $properties['nodeId'] = $value; + + after_nodeId: + + $value = $payload['client_id'] ?? null; + + if ($value === null) { + $properties['clientId'] = null; + goto after_clientId; + } + + $properties['clientId'] = $value; + + after_clientId: + + $value = $payload['owner'] ?? null; + + if ($value === null) { + $properties['owner'] = null; + goto after_owner; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'owner'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['owner'] = $value; + + after_owner: + + $value = $payload['name'] ?? null; + + if ($value === null) { + $missingFields[] = 'name'; + goto after_name; + } + + $properties['name'] = $value; + + after_name: + + $value = $payload['description'] ?? null; + + if ($value === null) { + $properties['description'] = null; + goto after_description; + } + + $properties['description'] = $value; + + after_description: + + $value = $payload['external_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'external_url'; + goto after_externalUrl; + } + + $properties['externalUrl'] = $value; + + after_externalUrl: + + $value = $payload['html_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'html_url'; + goto after_htmlUrl; + } + + $properties['htmlUrl'] = $value; + + after_htmlUrl: + + $value = $payload['created_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'created_at'; + goto after_createdAt; + } + + $properties['createdAt'] = $value; + + after_createdAt: + + $value = $payload['updated_at'] ?? null; + + if ($value === null) { + $missingFields[] = 'updated_at'; + goto after_updatedAt; + } + + $properties['updatedAt'] = $value; + + after_updatedAt: + + $value = $payload['permissions'] ?? null; + + if ($value === null) { + $missingFields[] = 'permissions'; + goto after_permissions; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'permissions'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['permissions'] = $value; + + after_permissions: + + $value = $payload['events'] ?? null; + + if ($value === null) { + $missingFields[] = 'events'; + goto after_events; + } + + $properties['events'] = $value; + + after_events: + + $value = $payload['installations_count'] ?? null; + + if ($value === null) { + $properties['installationsCount'] = null; + goto after_installationsCount; + } + + $properties['installationsCount'] = $value; + + after_installationsCount: + + $value = $payload['client_secret'] ?? null; + + if ($value === null) { + $properties['clientSecret'] = null; + goto after_clientSecret; + } + + $properties['clientSecret'] = $value; + + after_clientSecret: + + $value = $payload['webhook_secret'] ?? null; + + if ($value === null) { + $properties['webhookSecret'] = null; + goto after_webhookSecret; + } + + $properties['webhookSecret'] = $value; + + after_webhookSecret: + + $value = $payload['pem'] ?? null; + + if ($value === null) { + $properties['pem'] = null; + goto after_pem; + } + + $properties['pem'] = $value; + + after_pem: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(Integration::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new Integration(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions + { + $properties = []; + $missingFields = []; + try { + $value = $payload['issues'] ?? null; + + if ($value === null) { + $properties['issues'] = null; + goto after_issues; + } + + $properties['issues'] = $value; + + after_issues: + + $value = $payload['checks'] ?? null; + + if ($value === null) { + $properties['checks'] = null; + goto after_checks; + } + + $properties['checks'] = $value; + + after_checks: + + $value = $payload['metadata'] ?? null; + + if ($value === null) { + $properties['metadata'] = null; + goto after_metadata; + } + + $properties['metadata'] = $value; + + after_metadata: + + $value = $payload['contents'] ?? null; + + if ($value === null) { + $properties['contents'] = null; + goto after_contents; + } + + $properties['contents'] = $value; + + after_contents: + + $value = $payload['deployments'] ?? null; + + if ($value === null) { + $properties['deployments'] = null; + goto after_deployments; + } + + $properties['deployments'] = $value; + + after_deployments: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup(array $payload): ReactionRollup + { + $properties = []; + $missingFields = []; + try { + $value = $payload['url'] ?? null; + + if ($value === null) { + $missingFields[] = 'url'; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['total_count'] ?? null; + + if ($value === null) { + $missingFields[] = 'total_count'; + goto after_totalCount; + } + + $properties['totalCount'] = $value; + + after_totalCount: + + $value = $payload['+1'] ?? null; + + if ($value === null) { + $missingFields[] = '+1'; + goto after_plusOne; + } + + $properties['plusOne'] = $value; + + after_plusOne: + + $value = $payload['-1'] ?? null; + + if ($value === null) { + $missingFields[] = '-1'; + goto after_minOne; + } + + $properties['minOne'] = $value; + + after_minOne: + + $value = $payload['laugh'] ?? null; + + if ($value === null) { + $missingFields[] = 'laugh'; + goto after_laugh; + } + + $properties['laugh'] = $value; + + after_laugh: + + $value = $payload['confused'] ?? null; + + if ($value === null) { + $missingFields[] = 'confused'; + goto after_confused; + } + + $properties['confused'] = $value; + + after_confused: + + $value = $payload['heart'] ?? null; + + if ($value === null) { + $missingFields[] = 'heart'; + goto after_heart; + } + + $properties['heart'] = $value; + + after_heart: + + $value = $payload['hooray'] ?? null; + + if ($value === null) { + $missingFields[] = 'hooray'; + goto after_hooray; + } + + $properties['hooray'] = $value; + + after_hooray: + + $value = $payload['eyes'] ?? null; + + if ($value === null) { + $missingFields[] = 'eyes'; + goto after_eyes; + } + + $properties['eyes'] = $value; + + after_eyes: + + $value = $payload['rocket'] ?? null; + + if ($value === null) { + $missingFields[] = 'rocket'; + goto after_rocket; + } + + $properties['rocket'] = $value; + + after_rocket: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ReactionRollup::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ReactionRollup(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['url'] ?? null; + + if ($value === null) { + $properties['url'] = null; + goto after_url; + } + + $properties['url'] = $value; + + after_url: + + $value = $payload['status'] ?? null; + + if ($value === null) { + $properties['status'] = null; + goto after_status; + } + + $properties['status'] = $value; + + after_status: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new BasicError(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationErrorSimple(array $payload): ValidationErrorSimple + { + $properties = []; + $missingFields = []; + try { + $value = $payload['message'] ?? null; + + if ($value === null) { + $missingFields[] = 'message'; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $missingFields[] = 'documentation_url'; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + + $value = $payload['errors'] ?? null; + + if ($value === null) { + $properties['errors'] = null; + goto after_errors; + } + + $properties['errors'] = $value; + + after_errors: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationErrorSimple', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ValidationErrorSimple::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ValidationErrorSimple(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationErrorSimple', $exception, stack: $this->hydrationStack); + } + } + + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable(array $payload): ServiceUnavailable + { + $properties = []; + $missingFields = []; + try { + $value = $payload['code'] ?? null; + + if ($value === null) { + $properties['code'] = null; + goto after_code; + } + + $properties['code'] = $value; + + after_code: + + $value = $payload['message'] ?? null; + + if ($value === null) { + $properties['message'] = null; + goto after_message; + } + + $properties['message'] = $value; + + after_message: + + $value = $payload['documentation_url'] ?? null; + + if ($value === null) { + $properties['documentationUrl'] = null; + goto after_documentationUrl; + } + + $properties['documentationUrl'] = $value; + + after_documentationUrl: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(ServiceUnavailable::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new ServiceUnavailable(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable', $exception, stack: $this->hydrationStack); + } + } + + private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array + { + foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { + if (is_a($object, $valueType)) { + return [$accessor => $payloadType] + $this->{$method}($object); + } + } + + throw new LogicException('No type mapped for object of class: ' . $object::class); + } + + public function serializeObject(object $object): mixed + { + return $this->serializeObjectOfType($object, $object::class); + } + + /** + * @param T $object + * @param class-string $className + * + * @template T + */ + public function serializeObjectOfType(object $object, string $className): mixed + { + try { + return match ($className) { + 'array' => $this->serializeValuearray($object), + 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), + 'DateTime' => $this->serializeValueDateTime($object), + 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), + 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Milestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\LicenseSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Repository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationErrorSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationErrorSimple($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable($object), + default => throw new LogicException("No serialization defined for $className"), + }; + } catch (Throwable $exception) { + throw UnableToSerializeObject::dueToError($className, $exception); + } + } + + private function serializeValuearray(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeArrayItems(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeUuidToString(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTime(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeImmutable(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeValueDateTimeInterface(mixed $value): mixed + { + static $serializer; + + if ($serializer === null) { + $serializer = new SerializeDateTime(...[]); + } + + return $serializer->serialize($value, $this); + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue(mixed $object): mixed + { + assert($object instanceof Issue); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $repositoryUrl = $object->repositoryUrl; + after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $stateReason = $object->stateReason; + + if ($stateReason === null) { + goto after_stateReason; + } + + after_stateReason: $result['state_reason'] = $stateReason; + + $title = $object->title; + after_title: $result['title'] = $title; + + $body = $object->body; + + if ($body === null) { + goto after_body; + } + + after_body: $result['body'] = $body; + + $user = $object->user; + + if ($user === null) { + goto after_user; + } + + $user = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($user); + after_user: $result['user'] = $user; + + $labels = $object->labels; + static $labelsSerializer0; + + if ($labelsSerializer0 === null) { + $labelsSerializer0 = new SerializeArrayItems(...[]); + } + + $labels = $labelsSerializer0->serialize($labels, $this); + after_labels: $result['labels'] = $labels; + + $assignee = $object->assignee; + + if ($assignee === null) { + goto after_assignee; + } + + $assignee = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($assignee); + after_assignee: $result['assignee'] = $assignee; + + $assignees = $object->assignees; + + if ($assignees === null) { + goto after_assignees; + } + + static $assigneesSerializer0; + + if ($assigneesSerializer0 === null) { + $assigneesSerializer0 = new SerializeArrayItems(...[]); + } + + $assignees = $assigneesSerializer0->serialize($assignees, $this); + after_assignees: $result['assignees'] = $assignees; + + $milestone = $object->milestone; + + if ($milestone === null) { + goto after_milestone; + } + + $milestone = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone($milestone); + after_milestone: $result['milestone'] = $milestone; + + $locked = $object->locked; + after_locked: $result['locked'] = $locked; + + $activeLockReason = $object->activeLockReason; + + if ($activeLockReason === null) { + goto after_activeLockReason; + } + + after_activeLockReason: $result['active_lock_reason'] = $activeLockReason; + + $comments = $object->comments; + after_comments: $result['comments'] = $comments; + + $pullRequest = $object->pullRequest; + + if ($pullRequest === null) { + goto after_pullRequest; + } + + $pullRequest = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest($pullRequest); + after_pullRequest: $result['pull_request'] = $pullRequest; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $draft = $object->draft; + + if ($draft === null) { + goto after_draft; + } + + after_draft: $result['draft'] = $draft; + + $closedBy = $object->closedBy; + + if ($closedBy === null) { + goto after_closedBy; + } + + $closedBy = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($closedBy); + after_closedBy: $result['closed_by'] = $closedBy; + + $bodyHtml = $object->bodyHtml; + + if ($bodyHtml === null) { + goto after_bodyHtml; + } + + after_bodyHtml: $result['body_html'] = $bodyHtml; + + $bodyText = $object->bodyText; + + if ($bodyText === null) { + goto after_bodyText; + } + + after_bodyText: $result['body_text'] = $bodyText; + + $timelineUrl = $object->timelineUrl; + + if ($timelineUrl === null) { + goto after_timelineUrl; + } + + after_timelineUrl: $result['timeline_url'] = $timelineUrl; + + $repository = $object->repository; + + if ($repository === null) { + goto after_repository; + } + + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository($repository); + after_repository: $result['repository'] = $repository; + + $performedViaGithubApp = $object->performedViaGithubApp; + + if ($performedViaGithubApp === null) { + goto after_performedViaGithubApp; + } + + $performedViaGithubApp = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($performedViaGithubApp); + after_performedViaGithubApp: $result['performed_via_github_app'] = $performedViaGithubApp; + + $authorAssociation = $object->authorAssociation; + after_authorAssociation: $result['author_association'] = $authorAssociation; + + $reactions = $object->reactions; + + if ($reactions === null) { + goto after_reactions; + } + + $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($reactions); + after_reactions: $result['reactions'] = $reactions; + + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser(mixed $object): mixed + { + assert($object instanceof SimpleUser); + $result = []; + + $name = $object->name; + + if ($name === null) { + goto after_name; + } + + after_name: $result['name'] = $name; + + $email = $object->email; + + if ($email === null) { + goto after_email; + } + + after_email: $result['email'] = $email; + + $login = $object->login; + after_login: $result['login'] = $login; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $avatarUrl = $object->avatarUrl; + after_avatarUrl: $result['avatar_url'] = $avatarUrl; + + $gravatarId = $object->gravatarId; + + if ($gravatarId === null) { + goto after_gravatarId; + } + + after_gravatarId: $result['gravatar_id'] = $gravatarId; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $followersUrl = $object->followersUrl; + after_followersUrl: $result['followers_url'] = $followersUrl; + + $followingUrl = $object->followingUrl; + after_followingUrl: $result['following_url'] = $followingUrl; + + $gistsUrl = $object->gistsUrl; + after_gistsUrl: $result['gists_url'] = $gistsUrl; + + $starredUrl = $object->starredUrl; + after_starredUrl: $result['starred_url'] = $starredUrl; + + $subscriptionsUrl = $object->subscriptionsUrl; + after_subscriptionsUrl: $result['subscriptions_url'] = $subscriptionsUrl; + + $organizationsUrl = $object->organizationsUrl; + after_organizationsUrl: $result['organizations_url'] = $organizationsUrl; + + $reposUrl = $object->reposUrl; + after_reposUrl: $result['repos_url'] = $reposUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $receivedEventsUrl = $object->receivedEventsUrl; + after_receivedEventsUrl: $result['received_events_url'] = $receivedEventsUrl; + + $type = $object->type; + after_type: $result['type'] = $type; + + $siteAdmin = $object->siteAdmin; + after_siteAdmin: $result['site_admin'] = $siteAdmin; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $userViewType = $object->userViewType; + + if ($userViewType === null) { + goto after_userViewType; + } + + after_userViewType: $result['user_view_type'] = $userViewType; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Milestone(mixed $object): mixed + { + assert($object instanceof Milestone); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $number = $object->number; + after_number: $result['number'] = $number; + + $state = $object->state; + after_state: $result['state'] = $state; + + $title = $object->title; + after_title: $result['title'] = $title; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $creator = $object->creator; + + if ($creator === null) { + goto after_creator; + } + + $creator = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($creator); + after_creator: $result['creator'] = $creator; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $closedIssues = $object->closedIssues; + after_closedIssues: $result['closed_issues'] = $closedIssues; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $closedAt = $object->closedAt; + + if ($closedAt === null) { + goto after_closedAt; + } + + after_closedAt: $result['closed_at'] = $closedAt; + + $dueOn = $object->dueOn; + + if ($dueOn === null) { + goto after_dueOn; + } + + after_dueOn: $result['due_on'] = $dueOn; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Issue⚡️PullRequest(mixed $object): mixed + { + assert($object instanceof PullRequest); + $result = []; + + $mergedAt = $object->mergedAt; + + if ($mergedAt === null) { + goto after_mergedAt; + } + + after_mergedAt: $result['merged_at'] = $mergedAt; + + $diffUrl = $object->diffUrl; + + if ($diffUrl === null) { + goto after_diffUrl; + } + + after_diffUrl: $result['diff_url'] = $diffUrl; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $patchUrl = $object->patchUrl; + + if ($patchUrl === null) { + goto after_patchUrl; + } + + after_patchUrl: $result['patch_url'] = $patchUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository(mixed $object): mixed + { + assert($object instanceof Repository); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $name = $object->name; + after_name: $result['name'] = $name; + + $fullName = $object->fullName; + after_fullName: $result['full_name'] = $fullName; + + $license = $object->license; + + if ($license === null) { + goto after_license; + } + + $license = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple($license); + after_license: $result['license'] = $license; + + $forks = $object->forks; + after_forks: $result['forks'] = $forks; + + $permissions = $object->permissions; + + if ($permissions === null) { + goto after_permissions; + } + + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $owner = $object->owner; + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $private = $object->private; + after_private: $result['private'] = $private; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $fork = $object->fork; + after_fork: $result['fork'] = $fork; + + $url = $object->url; + after_url: $result['url'] = $url; + + $archiveUrl = $object->archiveUrl; + after_archiveUrl: $result['archive_url'] = $archiveUrl; + + $assigneesUrl = $object->assigneesUrl; + after_assigneesUrl: $result['assignees_url'] = $assigneesUrl; + + $blobsUrl = $object->blobsUrl; + after_blobsUrl: $result['blobs_url'] = $blobsUrl; + + $branchesUrl = $object->branchesUrl; + after_branchesUrl: $result['branches_url'] = $branchesUrl; + + $collaboratorsUrl = $object->collaboratorsUrl; + after_collaboratorsUrl: $result['collaborators_url'] = $collaboratorsUrl; + + $commentsUrl = $object->commentsUrl; + after_commentsUrl: $result['comments_url'] = $commentsUrl; + + $commitsUrl = $object->commitsUrl; + after_commitsUrl: $result['commits_url'] = $commitsUrl; + + $compareUrl = $object->compareUrl; + after_compareUrl: $result['compare_url'] = $compareUrl; + + $contentsUrl = $object->contentsUrl; + after_contentsUrl: $result['contents_url'] = $contentsUrl; + + $contributorsUrl = $object->contributorsUrl; + after_contributorsUrl: $result['contributors_url'] = $contributorsUrl; + + $deploymentsUrl = $object->deploymentsUrl; + after_deploymentsUrl: $result['deployments_url'] = $deploymentsUrl; + + $downloadsUrl = $object->downloadsUrl; + after_downloadsUrl: $result['downloads_url'] = $downloadsUrl; + + $eventsUrl = $object->eventsUrl; + after_eventsUrl: $result['events_url'] = $eventsUrl; + + $forksUrl = $object->forksUrl; + after_forksUrl: $result['forks_url'] = $forksUrl; + + $gitCommitsUrl = $object->gitCommitsUrl; + after_gitCommitsUrl: $result['git_commits_url'] = $gitCommitsUrl; + + $gitRefsUrl = $object->gitRefsUrl; + after_gitRefsUrl: $result['git_refs_url'] = $gitRefsUrl; + + $gitTagsUrl = $object->gitTagsUrl; + after_gitTagsUrl: $result['git_tags_url'] = $gitTagsUrl; + + $gitUrl = $object->gitUrl; + after_gitUrl: $result['git_url'] = $gitUrl; + + $issueCommentUrl = $object->issueCommentUrl; + after_issueCommentUrl: $result['issue_comment_url'] = $issueCommentUrl; + + $issueEventsUrl = $object->issueEventsUrl; + after_issueEventsUrl: $result['issue_events_url'] = $issueEventsUrl; + + $issuesUrl = $object->issuesUrl; + after_issuesUrl: $result['issues_url'] = $issuesUrl; + + $keysUrl = $object->keysUrl; + after_keysUrl: $result['keys_url'] = $keysUrl; + + $labelsUrl = $object->labelsUrl; + after_labelsUrl: $result['labels_url'] = $labelsUrl; + + $languagesUrl = $object->languagesUrl; + after_languagesUrl: $result['languages_url'] = $languagesUrl; + + $mergesUrl = $object->mergesUrl; + after_mergesUrl: $result['merges_url'] = $mergesUrl; + + $milestonesUrl = $object->milestonesUrl; + after_milestonesUrl: $result['milestones_url'] = $milestonesUrl; + + $notificationsUrl = $object->notificationsUrl; + after_notificationsUrl: $result['notifications_url'] = $notificationsUrl; + + $pullsUrl = $object->pullsUrl; + after_pullsUrl: $result['pulls_url'] = $pullsUrl; + + $releasesUrl = $object->releasesUrl; + after_releasesUrl: $result['releases_url'] = $releasesUrl; + + $sshUrl = $object->sshUrl; + after_sshUrl: $result['ssh_url'] = $sshUrl; + + $stargazersUrl = $object->stargazersUrl; + after_stargazersUrl: $result['stargazers_url'] = $stargazersUrl; + + $statusesUrl = $object->statusesUrl; + after_statusesUrl: $result['statuses_url'] = $statusesUrl; + + $subscribersUrl = $object->subscribersUrl; + after_subscribersUrl: $result['subscribers_url'] = $subscribersUrl; + + $subscriptionUrl = $object->subscriptionUrl; + after_subscriptionUrl: $result['subscription_url'] = $subscriptionUrl; + + $tagsUrl = $object->tagsUrl; + after_tagsUrl: $result['tags_url'] = $tagsUrl; + + $teamsUrl = $object->teamsUrl; + after_teamsUrl: $result['teams_url'] = $teamsUrl; + + $treesUrl = $object->treesUrl; + after_treesUrl: $result['trees_url'] = $treesUrl; + + $cloneUrl = $object->cloneUrl; + after_cloneUrl: $result['clone_url'] = $cloneUrl; + + $mirrorUrl = $object->mirrorUrl; + + if ($mirrorUrl === null) { + goto after_mirrorUrl; + } + + after_mirrorUrl: $result['mirror_url'] = $mirrorUrl; + + $hooksUrl = $object->hooksUrl; + after_hooksUrl: $result['hooks_url'] = $hooksUrl; + + $svnUrl = $object->svnUrl; + after_svnUrl: $result['svn_url'] = $svnUrl; + + $homepage = $object->homepage; + + if ($homepage === null) { + goto after_homepage; + } + + after_homepage: $result['homepage'] = $homepage; + + $language = $object->language; + + if ($language === null) { + goto after_language; + } + + after_language: $result['language'] = $language; + + $forksCount = $object->forksCount; + after_forksCount: $result['forks_count'] = $forksCount; + + $stargazersCount = $object->stargazersCount; + after_stargazersCount: $result['stargazers_count'] = $stargazersCount; + + $watchersCount = $object->watchersCount; + after_watchersCount: $result['watchers_count'] = $watchersCount; + + $size = $object->size; + after_size: $result['size'] = $size; + + $defaultBranch = $object->defaultBranch; + after_defaultBranch: $result['default_branch'] = $defaultBranch; + + $openIssuesCount = $object->openIssuesCount; + after_openIssuesCount: $result['open_issues_count'] = $openIssuesCount; + + $isTemplate = $object->isTemplate; + + if ($isTemplate === null) { + goto after_isTemplate; + } + + after_isTemplate: $result['is_template'] = $isTemplate; + + $topics = $object->topics; + + if ($topics === null) { + goto after_topics; + } + + static $topicsSerializer0; + + if ($topicsSerializer0 === null) { + $topicsSerializer0 = new SerializeArrayItems(...[]); + } + + $topics = $topicsSerializer0->serialize($topics, $this); + after_topics: $result['topics'] = $topics; + + $hasIssues = $object->hasIssues; + after_hasIssues: $result['has_issues'] = $hasIssues; + + $hasProjects = $object->hasProjects; + after_hasProjects: $result['has_projects'] = $hasProjects; + + $hasWiki = $object->hasWiki; + after_hasWiki: $result['has_wiki'] = $hasWiki; + + $hasPages = $object->hasPages; + after_hasPages: $result['has_pages'] = $hasPages; + + $hasDownloads = $object->hasDownloads; + after_hasDownloads: $result['has_downloads'] = $hasDownloads; + + $hasDiscussions = $object->hasDiscussions; + + if ($hasDiscussions === null) { + goto after_hasDiscussions; + } + + after_hasDiscussions: $result['has_discussions'] = $hasDiscussions; + + $archived = $object->archived; + after_archived: $result['archived'] = $archived; + + $disabled = $object->disabled; + after_disabled: $result['disabled'] = $disabled; + + $visibility = $object->visibility; + + if ($visibility === null) { + goto after_visibility; + } + + after_visibility: $result['visibility'] = $visibility; + + $pushedAt = $object->pushedAt; + + if ($pushedAt === null) { + goto after_pushedAt; + } + + after_pushedAt: $result['pushed_at'] = $pushedAt; + + $createdAt = $object->createdAt; + + if ($createdAt === null) { + goto after_createdAt; + } + + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + + if ($updatedAt === null) { + goto after_updatedAt; + } + + after_updatedAt: $result['updated_at'] = $updatedAt; + + $allowRebaseMerge = $object->allowRebaseMerge; + + if ($allowRebaseMerge === null) { + goto after_allowRebaseMerge; + } + + after_allowRebaseMerge: $result['allow_rebase_merge'] = $allowRebaseMerge; + + $tempCloneToken = $object->tempCloneToken; + + if ($tempCloneToken === null) { + goto after_tempCloneToken; + } + + after_tempCloneToken: $result['temp_clone_token'] = $tempCloneToken; + + $allowSquashMerge = $object->allowSquashMerge; + + if ($allowSquashMerge === null) { + goto after_allowSquashMerge; + } + + after_allowSquashMerge: $result['allow_squash_merge'] = $allowSquashMerge; + + $allowAutoMerge = $object->allowAutoMerge; + + if ($allowAutoMerge === null) { + goto after_allowAutoMerge; + } + + after_allowAutoMerge: $result['allow_auto_merge'] = $allowAutoMerge; + + $deleteBranchOnMerge = $object->deleteBranchOnMerge; + + if ($deleteBranchOnMerge === null) { + goto after_deleteBranchOnMerge; + } + + after_deleteBranchOnMerge: $result['delete_branch_on_merge'] = $deleteBranchOnMerge; + + $allowUpdateBranch = $object->allowUpdateBranch; + + if ($allowUpdateBranch === null) { + goto after_allowUpdateBranch; + } + + after_allowUpdateBranch: $result['allow_update_branch'] = $allowUpdateBranch; + + $useSquashPrTitleAsDefault = $object->useSquashPrTitleAsDefault; + + if ($useSquashPrTitleAsDefault === null) { + goto after_useSquashPrTitleAsDefault; + } + + after_useSquashPrTitleAsDefault: $result['use_squash_pr_title_as_default'] = $useSquashPrTitleAsDefault; + + $squashMergeCommitTitle = $object->squashMergeCommitTitle; + + if ($squashMergeCommitTitle === null) { + goto after_squashMergeCommitTitle; + } + + after_squashMergeCommitTitle: $result['squash_merge_commit_title'] = $squashMergeCommitTitle; + + $squashMergeCommitMessage = $object->squashMergeCommitMessage; + + if ($squashMergeCommitMessage === null) { + goto after_squashMergeCommitMessage; + } + + after_squashMergeCommitMessage: $result['squash_merge_commit_message'] = $squashMergeCommitMessage; + + $mergeCommitTitle = $object->mergeCommitTitle; + + if ($mergeCommitTitle === null) { + goto after_mergeCommitTitle; + } + + after_mergeCommitTitle: $result['merge_commit_title'] = $mergeCommitTitle; + + $mergeCommitMessage = $object->mergeCommitMessage; + + if ($mergeCommitMessage === null) { + goto after_mergeCommitMessage; + } + + after_mergeCommitMessage: $result['merge_commit_message'] = $mergeCommitMessage; + + $allowMergeCommit = $object->allowMergeCommit; + + if ($allowMergeCommit === null) { + goto after_allowMergeCommit; + } + + after_allowMergeCommit: $result['allow_merge_commit'] = $allowMergeCommit; + + $allowForking = $object->allowForking; + + if ($allowForking === null) { + goto after_allowForking; + } + + after_allowForking: $result['allow_forking'] = $allowForking; + + $webCommitSignoffRequired = $object->webCommitSignoffRequired; + + if ($webCommitSignoffRequired === null) { + goto after_webCommitSignoffRequired; + } + + after_webCommitSignoffRequired: $result['web_commit_signoff_required'] = $webCommitSignoffRequired; + + $openIssues = $object->openIssues; + after_openIssues: $result['open_issues'] = $openIssues; + + $watchers = $object->watchers; + after_watchers: $result['watchers'] = $watchers; + + $masterBranch = $object->masterBranch; + + if ($masterBranch === null) { + goto after_masterBranch; + } + + after_masterBranch: $result['master_branch'] = $masterBranch; + + $starredAt = $object->starredAt; + + if ($starredAt === null) { + goto after_starredAt; + } + + after_starredAt: $result['starred_at'] = $starredAt; + + $anonymousAccessEnabled = $object->anonymousAccessEnabled; + + if ($anonymousAccessEnabled === null) { + goto after_anonymousAccessEnabled; + } + + after_anonymousAccessEnabled: $result['anonymous_access_enabled'] = $anonymousAccessEnabled; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️LicenseSimple(mixed $object): mixed + { + assert($object instanceof LicenseSimple); + $result = []; + + $key = $object->key; + after_key: $result['key'] = $key; + + $name = $object->name; + after_name: $result['name'] = $name; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $spdxId = $object->spdxId; + + if ($spdxId === null) { + goto after_spdxId; + } + + after_spdxId: $result['spdx_id'] = $spdxId; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $htmlUrl = $object->htmlUrl; + + if ($htmlUrl === null) { + goto after_htmlUrl; + } + + after_htmlUrl: $result['html_url'] = $htmlUrl; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Repository⚡️Permissions(mixed $object): mixed + { + assert($object instanceof Permissions); + $result = []; + + $admin = $object->admin; + after_admin: $result['admin'] = $admin; + + $pull = $object->pull; + after_pull: $result['pull'] = $pull; + + $triage = $object->triage; + + if ($triage === null) { + goto after_triage; + } + + after_triage: $result['triage'] = $triage; + + $push = $object->push; + after_push: $result['push'] = $push; + + $maintain = $object->maintain; + + if ($maintain === null) { + goto after_maintain; + } + + after_maintain: $result['maintain'] = $maintain; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration(mixed $object): mixed + { + assert($object instanceof Integration); + $result = []; + + $id = $object->id; + after_id: $result['id'] = $id; + + $slug = $object->slug; + + if ($slug === null) { + goto after_slug; + } + + after_slug: $result['slug'] = $slug; + + $nodeId = $object->nodeId; + after_nodeId: $result['node_id'] = $nodeId; + + $clientId = $object->clientId; + + if ($clientId === null) { + goto after_clientId; + } + + after_clientId: $result['client_id'] = $clientId; + + $owner = $object->owner; + + if ($owner === null) { + goto after_owner; + } + + $owner = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($owner); + after_owner: $result['owner'] = $owner; + + $name = $object->name; + after_name: $result['name'] = $name; + + $description = $object->description; + + if ($description === null) { + goto after_description; + } + + after_description: $result['description'] = $description; + + $externalUrl = $object->externalUrl; + after_externalUrl: $result['external_url'] = $externalUrl; + + $htmlUrl = $object->htmlUrl; + after_htmlUrl: $result['html_url'] = $htmlUrl; + + $createdAt = $object->createdAt; + after_createdAt: $result['created_at'] = $createdAt; + + $updatedAt = $object->updatedAt; + after_updatedAt: $result['updated_at'] = $updatedAt; + + $permissions = $object->permissions; + $permissions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($permissions); + after_permissions: $result['permissions'] = $permissions; + + $events = $object->events; + static $eventsSerializer0; + + if ($eventsSerializer0 === null) { + $eventsSerializer0 = new SerializeArrayItems(...[]); + } + + $events = $eventsSerializer0->serialize($events, $this); + after_events: $result['events'] = $events; + + $installationsCount = $object->installationsCount; + + if ($installationsCount === null) { + goto after_installationsCount; + } + + after_installationsCount: $result['installations_count'] = $installationsCount; + + $clientSecret = $object->clientSecret; + + if ($clientSecret === null) { + goto after_clientSecret; + } + + after_clientSecret: $result['client_secret'] = $clientSecret; + + $webhookSecret = $object->webhookSecret; + + if ($webhookSecret === null) { + goto after_webhookSecret; + } + + after_webhookSecret: $result['webhook_secret'] = $webhookSecret; + + $pem = $object->pem; + + if ($pem === null) { + goto after_pem; + } + + after_pem: $result['pem'] = $pem; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions); + $result = []; + + $issues = $object->issues; + + if ($issues === null) { + goto after_issues; + } + + after_issues: $result['issues'] = $issues; + + $checks = $object->checks; + + if ($checks === null) { + goto after_checks; + } + + after_checks: $result['checks'] = $checks; + + $metadata = $object->metadata; + + if ($metadata === null) { + goto after_metadata; + } + + after_metadata: $result['metadata'] = $metadata; + + $contents = $object->contents; + + if ($contents === null) { + goto after_contents; + } + + after_contents: $result['contents'] = $contents; + + $deployments = $object->deployments; + + if ($deployments === null) { + goto after_deployments; + } + + after_deployments: $result['deployments'] = $deployments; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup(mixed $object): mixed + { + assert($object instanceof ReactionRollup); + $result = []; + + $url = $object->url; + after_url: $result['url'] = $url; + + $totalCount = $object->totalCount; + after_totalCount: $result['total_count'] = $totalCount; + + $plusOne = $object->plusOne; + after_plusOne: $result['+1'] = $plusOne; + + $minOne = $object->minOne; + after_minOne: $result['-1'] = $minOne; + + $laugh = $object->laugh; + after_laugh: $result['laugh'] = $laugh; + + $confused = $object->confused; + after_confused: $result['confused'] = $confused; + + $heart = $object->heart; + after_heart: $result['heart'] = $heart; + + $hooray = $object->hooray; + after_hooray: $result['hooray'] = $hooray; + + $eyes = $object->eyes; + after_eyes: $result['eyes'] = $eyes; + + $rocket = $object->rocket; + after_rocket: $result['rocket'] = $rocket; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed + { + assert($object instanceof BasicError); + $result = []; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $url = $object->url; + + if ($url === null) { + goto after_url; + } + + after_url: $result['url'] = $url; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationErrorSimple(mixed $object): mixed + { + assert($object instanceof ValidationErrorSimple); + $result = []; + + $message = $object->message; + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + $errors = $object->errors; + + if ($errors === null) { + goto after_errors; + } + + static $errorsSerializer0; + + if ($errorsSerializer0 === null) { + $errorsSerializer0 = new SerializeArrayItems(...[]); + } + + $errors = $errorsSerializer0->serialize($errors, $this); + after_errors: $result['errors'] = $errors; + + return $result; + } + + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️CodeScanning⚡️ListAlertsForEnterprise⚡️Response⚡️ApplicationJson⚡️ServiceUnavailable(mixed $object): mixed + { + assert($object instanceof ServiceUnavailable); + $result = []; + + $code = $object->code; + + if ($code === null) { + goto after_code; + } + + after_code: $result['code'] = $code; + + $message = $object->message; + + if ($message === null) { + goto after_message; + } + + after_message: $result['message'] = $message; + + $documentationUrl = $object->documentationUrl; + + if ($documentationUrl === null) { + goto after_documentationUrl; + } + + after_documentationUrl: $result['documentation_url'] = $documentationUrl; + + return $result; + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToHydrateObject + * + * @template T + */ + public function hydrateObjects(string $className, iterable $payloads): IterableList + { + return new IterableList($this->doHydrateObjects($className, $payloads)); + } + + private function doHydrateObjects(string $className, iterable $payloads): Generator + { + foreach ($payloads as $index => $payload) { + yield $index => $this->hydrateObject($className, $payload); + } + } + + /** + * @param class-string $className + * @param iterable $payloads; + * + * @return IterableList + * + * @throws UnableToSerializeObject + * + * @template T + */ + public function serializeObjects(iterable $payloads): IterableList + { + return new IterableList($this->doSerializeObjects($payloads)); + } + + private function doSerializeObjects(iterable $objects): Generator + { + foreach ($objects as $index => $object) { + yield $index => $this->serializeObject($object); + } + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php index d3b8fca374f..83b74754bb5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/IssueComment.php @@ -25,6 +25,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PullRequest; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksChanges; @@ -83,6 +84,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($payload), @@ -104,6 +106,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksChanges' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksChanges($payload), @@ -117,6 +120,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\Milestone\Creator' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️Milestone⚡️Creator($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), @@ -127,6 +131,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PerformedViaGithubApp' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PerformedViaGithubApp\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp⚡️Permissions($payload), @@ -1904,6 +1909,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -3767,6 +3792,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\User { $properties = []; @@ -7837,6 +7914,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -9700,6 +9797,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\User { $properties = []; @@ -10523,6 +10672,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -12386,6 +12555,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\User { $properties = []; @@ -14430,6 +14651,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\User { $properties = []; @@ -15405,6 +15678,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($object), @@ -15426,6 +15700,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksChanges' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksChanges($object), @@ -15439,6 +15714,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️User($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -16295,6 +16571,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -17411,6 +17696,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentCreated⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentCreated\Issue\User); @@ -19583,6 +19885,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -20699,6 +21010,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentDeleted⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentDeleted\Issue\User); @@ -21102,6 +21430,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -22218,6 +22555,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssueCommentEdited⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssueCommentEdited\Issue\User); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php index c8ad85ab3ce..4b78a82f61f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php @@ -46,6 +46,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PerformedViaGithubApp\Permissions; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PullRequest; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\Reactions; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\User; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksLabel; @@ -100,6 +101,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($payload), @@ -119,6 +121,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue($payload), @@ -130,6 +133,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue($payload), @@ -141,6 +145,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksMilestone' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksMilestone($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksMilestone\Creator' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksMilestone⚡️Creator($payload), @@ -157,6 +162,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksLabel' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksLabel($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled($payload), @@ -169,6 +175,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue($payload), @@ -180,6 +187,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue($payload), @@ -191,6 +199,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes($payload), @@ -203,6 +212,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository⚡️License($payload), @@ -217,6 +227,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesPinned' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesPinned($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2($payload), @@ -228,6 +239,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue($payload), @@ -239,6 +251,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes($payload), @@ -251,6 +264,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($payload), @@ -269,6 +283,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\PerformedViaGithubApp\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\PullRequest' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PullRequest($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\Reactions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Reactions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnpinned' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnpinned($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), @@ -1182,6 +1197,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -3045,6 +3080,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️User(array $payload): User { $properties = []; @@ -6788,6 +6875,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -8651,6 +8758,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\User { $properties = []; @@ -9365,6 +9524,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -11228,6 +11407,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\User { $properties = []; @@ -11962,6 +12193,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -13814,6 +14065,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\User { $properties = []; @@ -15152,6 +15455,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -17015,6 +17338,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\User { $properties = []; @@ -17845,6 +18220,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -19708,6 +20103,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\User { $properties = []; @@ -20422,6 +20869,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -22285,6 +22752,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\User { $properties = []; @@ -23019,6 +23538,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -24871,6 +25410,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\User { $properties = []; @@ -25664,6 +26255,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -27527,6 +28138,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\User { $properties = []; @@ -29567,6 +30230,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -31430,6 +32113,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\User { $properties = []; @@ -32144,6 +32879,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -34007,6 +34762,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\User { $properties = []; @@ -34721,6 +35528,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -36573,6 +37400,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\User { $properties = []; @@ -37366,6 +38245,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -39229,6 +40128,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\User { $properties = []; @@ -42020,6 +42971,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_repositoryUrl: + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: + $value = $payload['state'] ?? null; if ($value === null) { @@ -43883,6 +44854,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(\ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User(array $payload): \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\User { $properties = []; @@ -44398,6 +45421,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($object), @@ -44417,6 +45441,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue($object), @@ -44428,6 +45453,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue($object), @@ -44439,6 +45465,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksMilestone' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksMilestone($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksMilestone\Creator' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksMilestone⚡️Creator($object), @@ -44455,6 +45482,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksLabel' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksLabel($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled($object), @@ -44467,6 +45495,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue($object), @@ -44478,6 +45507,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue($object), @@ -44489,6 +45519,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes($object), @@ -44501,6 +45532,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository⚡️License($object), @@ -44515,6 +45547,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesPinned' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesPinned($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2($object), @@ -44526,6 +45559,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue($object), @@ -44537,6 +45571,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes($object), @@ -44549,6 +45584,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($object), @@ -44567,6 +45603,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\PerformedViaGithubApp\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PerformedViaGithubApp⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\PullRequest' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️PullRequest($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\Reactions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️Reactions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnpinned' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnpinned($object), default => throw new LogicException("No serialization defined for $className"), @@ -45079,6 +46116,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -46195,6 +47241,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue⚡️User(mixed $object): mixed { assert($object instanceof User); @@ -48193,6 +49256,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -49309,6 +50381,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesClosed⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesClosed\Issue\User); @@ -49676,6 +50765,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -50792,6 +51890,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDeleted⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDeleted\Issue\User); @@ -51168,6 +52283,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -52276,6 +53400,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesDemilestoned⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesDemilestoned\Issue\User); @@ -52955,6 +54096,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -54071,6 +55221,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesEdited⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesEdited\Issue\User); @@ -54481,6 +55648,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -55597,6 +56773,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLabeled⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLabeled\Issue\User); @@ -55959,6 +57152,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -57075,6 +58277,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesLocked⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesLocked\Issue\User); @@ -57446,6 +58665,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -58554,6 +59782,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesMilestoned⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesMilestoned\Issue\User); @@ -58951,6 +60196,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -60067,6 +61321,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldIssue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldIssue\User); @@ -61034,6 +62305,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -62150,6 +63430,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Issue\User); @@ -62517,6 +63814,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -63633,6 +64939,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue2\User); @@ -64000,6 +65323,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; after_state: $result['state'] = $state; @@ -65103,6 +66435,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesReopened⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesReopened\Issue\User); @@ -65490,6 +66839,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue2⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -66606,6 +67964,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewIssue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue\User); @@ -67905,6 +69280,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $repositoryUrl = $object->repositoryUrl; after_repositoryUrl: $result['repository_url'] = $repositoryUrl; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + $state = $object->state; if ($state === null) { @@ -69021,6 +70405,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User(mixed $object): mixed { assert($object instanceof \ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\User); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php index 4c10ef489d4..3354f20ac80 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SubIssues.php @@ -19,6 +19,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\TemplateRepository\Owner; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleUser; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesParentIssueAdded; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesParentIssueRemoved; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookSubIssuesSubIssueAdded; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($payload), @@ -726,6 +728,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S $properties['reactions'] = $value; after_reactions: + + $value = $payload['sub_issues_summary'] ?? null; + + if ($value === null) { + $properties['subIssuesSummary'] = null; + goto after_subIssuesSummary; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'subIssuesSummary'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['subIssuesSummary'] = $value; + + after_subIssuesSummary: } catch (Throwable $exception) { throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue', $exception, stack: $this->hydrationStack); } @@ -2957,6 +2979,58 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(array $payload): SubIssuesSummary + { + $properties = []; + $missingFields = []; + try { + $value = $payload['total'] ?? null; + + if ($value === null) { + $missingFields[] = 'total'; + goto after_total; + } + + $properties['total'] = $value; + + after_total: + + $value = $payload['completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'completed'; + goto after_completed; + } + + $properties['completed'] = $value; + + after_completed: + + $value = $payload['percent_completed'] ?? null; + + if ($value === null) { + $missingFields[] = 'percent_completed'; + goto after_percentCompleted; + } + + $properties['percentCompleted'] = $value; + + after_percentCompleted: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SubIssuesSummary::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SubIssuesSummary(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation(array $payload): SimpleInstallation { $properties = []; @@ -6319,6 +6393,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Integration\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Integration⚡️Permissions($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ReactionRollup' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\OrganizationSimpleWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($object), @@ -6670,6 +6745,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $reactions = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ReactionRollup($reactions); after_reactions: $result['reactions'] = $reactions; + $subIssuesSummary = $object->subIssuesSummary; + + if ($subIssuesSummary === null) { + goto after_subIssuesSummary; + } + + $subIssuesSummary = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary($subIssuesSummary); + after_subIssuesSummary: $result['sub_issues_summary'] = $subIssuesSummary; + return $result; } @@ -7618,6 +7702,23 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SubIssuesSummary(mixed $object): mixed + { + assert($object instanceof SubIssuesSummary); + $result = []; + + $total = $object->total; + after_total: $result['total'] = $total; + + $completed = $object->completed; + after_completed: $result['completed'] = $completed; + + $percentCompleted = $object->percentCompleted; + after_percentCompleted: $result['percent_completed'] = $percentCompleted; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation(mixed $object): mixed { assert($object instanceof SimpleInstallation); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php index f87dc655e17..a73f2655bca 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php @@ -510,6 +510,9 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Lock|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Lock = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Reactions|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Reactions\ReactionId|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions🌀ReactionId = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssue|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues = null; + private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues\Priority|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline|null $operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Keys|null $operation🌀Repos🌀Owner🌀Repo🌀Keys = null; private Internal\Hydrator\Operation\Repos\Owner\Repo\Keys\KeyId|null $operation🌀Repos🌀Owner🌀Repo🌀Keys🌀KeyId = null; @@ -1026,7 +1029,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Repos\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks🌀HookId🌀Deliveries🌀DeliveryId🌀Attempts()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Import' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Import()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PorterAuthor' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Import🌀Authors🌀AuthorId()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Issue\\PullRequest' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEvent', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventLabel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Team', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Team\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventDismissedReview', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventProjectCard', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventRename' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events🌀EventId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()->hydrateObject($className, $payload), @@ -1121,8 +1124,8 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationNewPermissionsAccepted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationSuspend', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationUnsuspend' => $this->getObjectMapperWebHook🪝Installation()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationRepositoriesAdded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🪝InstallationRepositories()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Login', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Slug' => $this->getObjectMapperWebHook🪝InstallationTarget()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Color', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Description', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Name' => $this->getObjectMapperWebHook🪝Label()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🪝MarketplacePurchase()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes\\Permission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes\\RoleName', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes\\OldPermission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes\\Permission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🪝Member()->hydrateObject($className, $payload), @@ -1411,7 +1414,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Repos\\RedeliverWebhookDelivery\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Hooks🌀HookId🌀Deliveries🌀DeliveryId🌀Attempts()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Import' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Import()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\PorterAuthor' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Import🌀Authors🌀AuthorId()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Issue\\PullRequest' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SubIssuesSummary' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueComment' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Comments🌀CommentId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEvent', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventLabel', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Team', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Team\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventDismissedReview', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventProjectCard', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\IssueEventRename' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀Events🌀EventId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\DeployKey' => $this->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Keys()->serializeObject($object), @@ -1506,8 +1509,8 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationNewPermissionsAccepted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationSuspend', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationUnsuspend' => $this->getObjectMapperWebHook🪝Installation()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationRepositoriesAdded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🪝InstallationRepositories()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Login', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Slug' => $this->getObjectMapperWebHook🪝InstallationTarget()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Color', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Description', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Name' => $this->getObjectMapperWebHook🪝Label()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🪝MarketplacePurchase()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes\\Permission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes\\RoleName', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes\\OldPermission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes\\Permission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🪝Member()->serializeObject($object), @@ -6061,6 +6064,33 @@ public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀 return $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Reactions🌀ReactionId; } + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue(): Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssue + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssue === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue = new Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssue(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue; + } + + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues(): Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues = new Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues; + } + + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority(): Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues\Priority + { + if ($this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues\Priority === false) { + $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority = new Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\SubIssues\Priority(); + } + + return $this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority; + } + public function getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline(): Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline { if ($this->operation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀Timeline instanceof Internal\Hydrator\Operation\Repos\Owner\Repo\Issues\IssueNumber\Timeline === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/AddSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/AddSubIssue.php new file mode 100644 index 00000000000..25083365cc2 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/AddSubIssue.php @@ -0,0 +1,101 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('POST', str_replace(['{owner}', '{repo}', '{issue_number}'], [$this->owner, $this->repo, $this->issueNumber], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\Issue + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 201: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationError(422, $this->hydrator->hydrateObject(Schema\ValidationError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ListSubIssues.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ListSubIssues.php new file mode 100644 index 00000000000..6fc108e6c72 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ListSubIssues.php @@ -0,0 +1,102 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{owner}', '{repo}', '{issue_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues' . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Issue { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ListSubIssuesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ListSubIssuesListing.php new file mode 100644 index 00000000000..a10a0057280 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ListSubIssuesListing.php @@ -0,0 +1,102 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + $this->perPage = $perPage; + $this->page = $page; + } + + public function createRequest(): RequestInterface + { + return new Request('GET', str_replace(['{owner}', '{repo}', '{issue_number}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->issueNumber, $this->perPage, $this->page], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues' . '?per_page={per_page}&page={page}')); + } + + /** @return Observable */ + public function createResponse(ResponseInterface $response): Observable + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\Issue { + $error = new RuntimeException(); + try { + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + } catch (Throwable $error) { + goto items_application_json_two_hundred_aaaaa; + } + + items_application_json_two_hundred_aaaaa: + throw $error; + }); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Gone + **/ + + case 410: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(410, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/RemoveSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/RemoveSubIssue.php new file mode 100644 index 00000000000..fc28bf8e8d2 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/RemoveSubIssue.php @@ -0,0 +1,98 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('DELETE', str_replace(['{owner}', '{repo}', '{issue_number}'], [$this->owner, $this->repo, $this->issueNumber], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issue'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\Issue + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + /** + * Bad Request + **/ + + case 400: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(400, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + } + + break; + case 'application/scim+json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Bad Request + **/ + case 400: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ScimError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ScimError(400, $this->hydrator->hydrateObject(Schema\ScimError::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ReprioritizeSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ReprioritizeSubIssue.php new file mode 100644 index 00000000000..e1aadc94d0e --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Issues/ReprioritizeSubIssue.php @@ -0,0 +1,101 @@ +owner = $owner; + $this->repo = $repo; + $this->issueNumber = $issueNumber; + } + + public function createRequest(array $data): RequestInterface + { + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return new Request('PATCH', str_replace(['{owner}', '{repo}', '{issue_number}'], [$this->owner, $this->repo, $this->issueNumber], '/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority'), ['Content-Type' => 'application/json'], json_encode($data)); + } + + public function createResponse(ResponseInterface $response): Schema\Issue + { + $code = $response->getStatusCode(); + [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); + switch ($contentType) { + case 'application/json': + $body = json_decode($response->getBody()->getContents(), true); + switch ($code) { + /** + * Response + **/ + case 200: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Issue::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + return $this->hydrator->hydrateObject(Schema\Issue::class, $body); + /** + * Forbidden + **/ + + case 403: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Resource not found + **/ + + case 404: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); + /** + * Validation failed, or the endpoint has been spammed. + **/ + + case 422: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\ValidationErrorSimple::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\ValidationErrorSimple(422, $this->hydrator->hydrateObject(Schema\ValidationErrorSimple::class, $body)); + /** + * Service unavailable + **/ + + case 503: + $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); + + throw new ErrorSchemas\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable(503, $this->hydrator->hydrateObject(Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class, $body)); + } + + break; + } + + throw new RuntimeException('Unable to find matching response code and content type'); + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/AddSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/AddSubIssue.php new file mode 100644 index 00000000000..69acc3bbcd4 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/AddSubIssue.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); + $request = $operation->createRequest($params); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Issue { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssues.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssues.php new file mode 100644 index 00000000000..eea64fad34a --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssues.php @@ -0,0 +1,41 @@ + */ + public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Issues\ListSubIssues($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssuesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssuesListing.php new file mode 100644 index 00000000000..7be9a63cc34 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ListSubIssuesListing.php @@ -0,0 +1,41 @@ + */ + public function call(string $owner, string $repo, int $issueNumber, int $perPage = 30, int $page = 1): iterable + { + $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Issues\ListSubIssuesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber, $perPage, $page); + $request = $operation->createRequest(); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Observable { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/RemoveSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/RemoveSubIssue.php new file mode 100644 index 00000000000..90aa84d5a14 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/RemoveSubIssue.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); + $request = $operation->createRequest($params); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Issue { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ReprioritizeSubIssue.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ReprioritizeSubIssue.php new file mode 100644 index 00000000000..9e73c157757 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Issues/ReprioritizeSubIssue.php @@ -0,0 +1,40 @@ +requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $issueNumber); + $request = $operation->createRequest($params); + $result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Issue { + return $operation->createResponse($response); + })); + if ($result instanceof Observable) { + $result = awaitObservable($result); + } + + return $result; + } +} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php index fbd121954fb..e7cadb71273 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $ref, string $repositoryName, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetOrgRuleSuites($this->responseSchemaValidator, $this->hydrator, $org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php index a7fe93f1d8f..249fef626bf 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php @@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable */ + /** @return Observable */ public function call(string $org, string $ref, string $repositoryName, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetOrgRuleSuitesListing($this->responseSchemaValidator, $this->hydrator, $org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/GetScanHistory.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/GetScanHistory.php index 21849ab82e5..afc1847c462 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/GetScanHistory.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/SecretScanning/GetScanHistory.php @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } + /** @return */ public function call(string $owner, string $repo): SecretScanningScanHistory|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\SecretScanning\GetScanHistory($this->responseSchemaValidator, $this->hydrator, $owner, $repo); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operators.php b/clients/GitHubEnterpriseCloud/src/Internal/Operators.php index ad3476a3fe8..82c87f09410 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operators.php @@ -880,6 +880,11 @@ final class Operators private Internal\Operator\Reactions\ListForIssueListing|null $reactions👷ListForIssueListing = null; private Internal\Operator\Reactions\CreateForIssue|null $reactions👷CreateForIssue = null; private Internal\Operator\Reactions\DeleteForIssue|null $reactions👷DeleteForIssue = null; + private Internal\Operator\Issues\RemoveSubIssue|null $issues👷RemoveSubIssue = null; + private Internal\Operator\Issues\ListSubIssues|null $issues👷ListSubIssues = null; + private Internal\Operator\Issues\ListSubIssuesListing|null $issues👷ListSubIssuesListing = null; + private Internal\Operator\Issues\AddSubIssue|null $issues👷AddSubIssue = null; + private Internal\Operator\Issues\ReprioritizeSubIssue|null $issues👷ReprioritizeSubIssue = null; private Internal\Operator\Issues\ListEventsForTimeline|null $issues👷ListEventsForTimeline = null; private Internal\Operator\Issues\ListEventsForTimelineListing|null $issues👷ListEventsForTimelineListing = null; private Internal\Operator\Repos\ListDeployKeys|null $repos👷ListDeployKeys = null; @@ -9119,6 +9124,51 @@ public function reactions👷DeleteForIssue(): Internal\Operator\Reactions\Delet return $this->reactions👷DeleteForIssue; } + public function issues👷RemoveSubIssue(): Internal\Operator\Issues\RemoveSubIssue + { + if ($this->issues👷RemoveSubIssue instanceof Internal\Operator\Issues\RemoveSubIssue === false) { + $this->issues👷RemoveSubIssue = new Internal\Operator\Issues\RemoveSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue()); + } + + return $this->issues👷RemoveSubIssue; + } + + public function issues👷ListSubIssues(): Internal\Operator\Issues\ListSubIssues + { + if ($this->issues👷ListSubIssues instanceof Internal\Operator\Issues\ListSubIssues === false) { + $this->issues👷ListSubIssues = new Internal\Operator\Issues\ListSubIssues($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + } + + return $this->issues👷ListSubIssues; + } + + public function issues👷ListSubIssuesListing(): Internal\Operator\Issues\ListSubIssuesListing + { + if ($this->issues👷ListSubIssuesListing instanceof Internal\Operator\Issues\ListSubIssuesListing === false) { + $this->issues👷ListSubIssuesListing = new Internal\Operator\Issues\ListSubIssuesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + } + + return $this->issues👷ListSubIssuesListing; + } + + public function issues👷AddSubIssue(): Internal\Operator\Issues\AddSubIssue + { + if ($this->issues👷AddSubIssue instanceof Internal\Operator\Issues\AddSubIssue === false) { + $this->issues👷AddSubIssue = new Internal\Operator\Issues\AddSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + } + + return $this->issues👷AddSubIssue; + } + + public function issues👷ReprioritizeSubIssue(): Internal\Operator\Issues\ReprioritizeSubIssue + { + if ($this->issues👷ReprioritizeSubIssue instanceof Internal\Operator\Issues\ReprioritizeSubIssue === false) { + $this->issues👷ReprioritizeSubIssue = new Internal\Operator\Issues\ReprioritizeSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority()); + } + + return $this->issues👷ReprioritizeSubIssue; + } + public function issues👷ListEventsForTimeline(): Internal\Operator\Issues\ListEventsForTimeline { if ($this->issues👷ListEventsForTimeline instanceof Internal\Operator\Issues\ListEventsForTimeline === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php index d8474c8788e..bdfe1646d44 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Issues.php @@ -130,6 +130,32 @@ public function unlock(array $params): WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number']); } + public function removeSubIssue(array $params): Issue + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + $operator = new Internal\Operator\Issues\RemoveSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssue()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); + } + /** @return */ public function deleteLabel(array $params): WithoutBody { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php index fe29235dab7..042e25a0644 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Delete/Seven.php @@ -19,6 +19,7 @@ public function __construct(private Routers $routers) { } + /** @return |Schema\Issue */ public function call(string $call, array $params, array $pathChunks): WithoutBody|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\DeleteFromOrganization\Response\ApplicationJson\Accepted\Application\Json|CodeScanningAnalysisDeletion|Issue|BasicError|PullRequestSimple { if ($pathChunks[0] === '') { @@ -217,6 +218,10 @@ public function call(string $call, array $params, array $pathChunks): WithoutBod if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock') { return $this->routers->internal🔀Router🔀Delete🔀Issues()->unlock($params); } + } elseif ($pathChunks[6] === 'sub_issue') { + if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue') { + return $this->routers->internal🔀Router🔀Delete🔀Issues()->removeSubIssue($params); + } } } } elseif ($pathChunks[4] === 'pulls') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php index 2c9c0ca5a53..e17d61e3800 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php @@ -56,7 +56,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|AuditLogStreamKey|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|RepositoryRuleset|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php index 53b479ae675..c31d530358f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Issues.php @@ -800,6 +800,45 @@ public function listLabelsOnIssue(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); } + /** @return iterable */ + public function listSubIssues(array $params): iterable + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + $operator = new Internal\Operator\Issues\ListSubIssues($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page']); + } + /** @return Observable */ public function listEventsForTimeline(array $params): iterable { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php index 06358fc153d..80aafc507f6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php @@ -309,7 +309,7 @@ public function listForUser(array $params): iterable return $operator->call($arguments['username'], $arguments['direction'], $arguments['type'], $arguments['sort'], $arguments['per_page'], $arguments['page']); } - /** @return iterable */ + /** @return Observable */ public function getOrgRuleSuites(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/SecretScanning.php index a12ca54eb78..12908e81155 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/SecretScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/SecretScanning.php @@ -299,6 +299,7 @@ public function listAlertsForRepo(array $params): iterable|WithoutBody return $operator->call($arguments['owner'], $arguments['repo'], $arguments['state'], $arguments['secret_type'], $arguments['resolution'], $arguments['before'], $arguments['after'], $arguments['validity'], $arguments['sort'], $arguments['direction'], $arguments['page'], $arguments['per_page'], $arguments['is_publicly_leaked'], $arguments['is_multi_repo']); } + /** @return */ public function getScanHistory(array $params): SecretScanningScanHistory|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php index a294695d441..ed5e4fc3d24 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php @@ -67,7 +67,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): Json|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|iterable|OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|GroupMapping|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { @@ -584,6 +584,10 @@ public function call(string $call, array $params, array $pathChunks): Json|Ok|\A if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/reactions') { return $this->routers->internal🔀Router🔀Get🔀Reactions()->listForIssue($params); } + } elseif ($pathChunks[6] === 'sub_issues') { + if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->routers->internal🔀Router🔀Get🔀Issues()->listSubIssues($params); + } } elseif ($pathChunks[6] === 'timeline') { if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/timeline') { return $this->routers->internal🔀Router🔀Get🔀Issues()->listEventsForTimeline($params); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index b381d8d7bd5..7f1742fbc2a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -86,7 +86,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\SecretScanningScanHistory|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|GetAuditLogStreamConfig|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|ApiInsightsSummaryStats|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|SecretScanningScanHistory|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php index e064564b813..83c51755a6d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|iterable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php index 0b5de8a7ed9..2e17db043ce 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Issues.php @@ -610,6 +610,51 @@ public function listLabelsOnIssueListing(array $params): iterable|BasicError } while (count($items) > 0); } + /** @return iterable */ + public function listSubIssuesListing(array $params): iterable + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + if (array_key_exists('per_page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: per_page'); + } + + $arguments['per_page'] = $params['per_page']; + unset($params['per_page']); + if (array_key_exists('page', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: page'); + } + + $arguments['page'] = $params['page']; + unset($params['page']); + $arguments['page'] = 1; + do { + $operator = new Internal\Operator\Issues\ListSubIssuesListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + $items = [...$operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $arguments['per_page'], $arguments['page'])]; + + yield from $items; + + $arguments['page']++; + } while (count($items) > 0); + } + /** @return Observable */ public function listEventsForTimelineListing(array $params): iterable { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php index 76a4f1fcc51..2a62021189f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Repos.php @@ -259,7 +259,7 @@ public function listForUserListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable */ + /** @return Observable */ public function getOrgRuleSuitesListing(array $params): iterable { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php index 5a14dca5b32..204f2e84f0e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|iterable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { @@ -137,6 +137,10 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/reactions') { return $this->routers->internal🔀Router🔀List🔀Reactions()->listForIssueListing($params); } + } elseif ($pathChunks[6] === 'sub_issues') { + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->routers->internal🔀Router🔀List🔀Issues()->listSubIssuesListing($params); + } } elseif ($pathChunks[6] === 'timeline') { if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/timeline') { return $this->routers->internal🔀Router🔀List🔀Issues()->listEventsForTimelineListing($params); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Eight.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Eight.php index b34f6332785..4bb36b0e50f 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Eight.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Eight.php @@ -5,6 +5,7 @@ namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Router\Patch; use ApiClients\Client\GitHubEnterpriseCloud\Internal\Routers; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\Issue; use ApiClients\Client\GitHubEnterpriseCloud\Schema\ProtectedBranchPullRequestReview; use ApiClients\Client\GitHubEnterpriseCloud\Schema\StatusCheckPolicy; use ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody; @@ -16,7 +17,8 @@ public function __construct(private Routers $routers) { } - public function call(string $call, array $params, array $pathChunks): ProtectedBranchPullRequestReview|StatusCheckPolicy|WithoutBody + /** @return |Schema\Issue */ + public function call(string $call, array $params, array $pathChunks): ProtectedBranchPullRequestReview|StatusCheckPolicy|WithoutBody|Issue { if ($pathChunks[0] === '') { if ($pathChunks[1] === 'repos') { @@ -46,6 +48,16 @@ public function call(string $call, array $params, array $pathChunks): ProtectedB } } } + } elseif ($pathChunks[4] === 'issues') { + if ($pathChunks[5] === '{issue_number}') { + if ($pathChunks[6] === 'sub_issues') { + if ($pathChunks[7] === 'priority') { + if ($call === 'PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority') { + return $this->routers->internal🔀Router🔀Patch🔀Issues()->reprioritizeSubIssue($params); + } + } + } + } } } } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Issues.php index 44a5fc033b3..eb5f3a47ab2 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Patch/Issues.php @@ -130,4 +130,30 @@ public function updateComment(array $params): IssueComment return $operator->call($arguments['owner'], $arguments['repo'], $arguments['comment_id'], $params); } + + public function reprioritizeSubIssue(array $params): Issue + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + $operator = new Internal\Operator\Issues\ReprioritizeSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues🌀Priority()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); + } } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Issues.php index f30c6a76407..22f7302bc33 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Issues.php @@ -167,4 +167,30 @@ public function addLabels(array $params): iterable|BasicError return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); } + + public function addSubIssue(array $params): Issue + { + $arguments = []; + if (array_key_exists('owner', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: owner'); + } + + $arguments['owner'] = $params['owner']; + unset($params['owner']); + if (array_key_exists('repo', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: repo'); + } + + $arguments['repo'] = $params['repo']; + unset($params['repo']); + if (array_key_exists('issue_number', $params) === false) { + throw new InvalidArgumentException('Missing mandatory field: issue_number'); + } + + $arguments['issue_number'] = $params['issue_number']; + unset($params['issue_number']); + $operator = new Internal\Operator\Issues\AddSubIssue($this->browser, $this->authentication, $this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Repos🌀Owner🌀Repo🌀Issues🌀IssueNumber🌀SubIssues()); + + return $operator->call($arguments['owner'], $arguments['repo'], $arguments['issue_number'], $params); + } } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Seven.php index 9fa9a52ade7..ff9627ef670 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Post/Seven.php @@ -35,7 +35,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Schema\BasicError */ + /** @return |Observable|Schema\BasicError|Schema\Issue */ public function call(string $call, array $params, array $pathChunks): Ok|Json|WithoutBody|Created|AuthenticationToken|BranchWithProtection|EmptyObject|CodeScanningVariantAnalysis|Reaction|CommitComment|DeploymentStatus|DeploymentBranchPolicy|DeploymentProtectionRule|Issue|IssueComment|iterable|BasicError|Codespace|PullRequestReviewComment|PullRequestSimple|PullRequestReview|ReleaseAsset|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\SecurityAdvisories\CreateRepositoryAdvisoryCveRequest\Response\ApplicationJson\Accepted\Application\Json|FullRepository { if ($pathChunks[0] === '') { @@ -208,6 +208,10 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|Wi if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/reactions') { return $this->routers->internal🔀Router🔀Post🔀Reactions()->createForIssue($params); } + } elseif ($pathChunks[6] === 'sub_issues') { + if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->routers->internal🔀Router🔀Post🔀Issues()->addSubIssue($params); + } } } } elseif ($pathChunks[4] === 'pulls') { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Issues.php b/clients/GitHubEnterpriseCloud/src/Operation/Issues.php index e02e55c49ae..78192cf7dd3 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Issues.php @@ -236,6 +236,33 @@ public function unlock(string $owner, string $repo, int $issueNumber): WithoutBo return $this->operators->issues👷Unlock()->call($owner, $repo, $issueNumber); } + public function removeSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue + { + return $this->operators->issues👷RemoveSubIssue()->call($owner, $repo, $issueNumber, $params); + } + + /** @return iterable */ + public function listSubIssues(string $owner, string $repo, int $issueNumber, int $perPage, int $page): iterable + { + return $this->operators->issues👷ListSubIssues()->call($owner, $repo, $issueNumber, $perPage, $page); + } + + /** @return iterable */ + public function listSubIssuesListing(string $owner, string $repo, int $issueNumber, int $perPage, int $page): iterable + { + return $this->operators->issues👷ListSubIssuesListing()->call($owner, $repo, $issueNumber, $perPage, $page); + } + + public function addSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue + { + return $this->operators->issues👷AddSubIssue()->call($owner, $repo, $issueNumber, $params); + } + + public function reprioritizeSubIssue(string $owner, string $repo, int $issueNumber, array $params): Issue + { + return $this->operators->issues👷ReprioritizeSubIssue()->call($owner, $repo, $issueNumber, $params); + } + /** @return Observable */ public function listEventsForTimeline(string $owner, string $repo, int $issueNumber, int $perPage, int $page): iterable { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Repos.php b/clients/GitHubEnterpriseCloud/src/Operation/Repos.php index 2ed3bec70a6..b13ad250396 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Repos.php @@ -107,13 +107,13 @@ public function createOrgRuleset(string $org, array $params): RepositoryRuleset return $this->operators->repos👷CreateOrgRuleset()->call($org, $params); } - /** @return iterable */ + /** @return Observable */ public function getOrgRuleSuites(string $org, string $ref, string $repositoryName, string $actorName, string $timePeriod, string $ruleSuiteResult, int $perPage, int $page): iterable { return $this->operators->repos👷GetOrgRuleSuites()->call($org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); } - /** @return iterable */ + /** @return Observable */ public function getOrgRuleSuitesListing(string $org, string $ref, string $repositoryName, string $actorName, string $timePeriod, string $ruleSuiteResult, int $perPage, int $page): iterable { return $this->operators->repos👷GetOrgRuleSuitesListing()->call($org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page); diff --git a/clients/GitHubEnterpriseCloud/src/Operation/SecretScanning.php b/clients/GitHubEnterpriseCloud/src/Operation/SecretScanning.php index 4d90cf6e95f..c1fb9c317fd 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/SecretScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/SecretScanning.php @@ -96,6 +96,7 @@ public function createPushProtectionBypass(string $owner, string $repo, array $p return $this->operators->secretScanning👷CreatePushProtectionBypass()->call($owner, $repo, $params); } + /** @return */ public function getScanHistory(string $owner, string $repo): SecretScanningScanHistory|WithoutBody { return $this->operators->secretScanning👷GetScanHistory()->call($owner, $repo); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index 9cb1eeba2cb..f0296d6aea8 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -1784,11 +1784,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /orgs/{org}/rulesets/rule-suites') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'LIST /orgs/{org}/rulesets/rule-suites') { - return $this->typeResolver->resolve('iterable'); + return $this->typeResolver->resolve('Observable'); } if ($call === 'GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}') { @@ -3519,6 +3519,26 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve(''); } + if ($call === 'DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue') { + return $this->typeResolver->resolve('Schema\\Issue'); + } + + if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->typeResolver->resolve('iterable'); + } + + if ($call === 'LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->typeResolver->resolve('iterable'); + } + + if ($call === 'POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues') { + return $this->typeResolver->resolve('Schema\\Issue'); + } + + if ($call === 'PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority') { + return $this->typeResolver->resolve('Schema\\Issue'); + } + if ($call === 'GET /repos/{owner}/{repo}/issues/{issue_number}/timeline') { return $this->typeResolver->resolve('Observable'); } @@ -4036,7 +4056,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/secret-scanning/scan-history') { - return $this->typeResolver->resolve('Schema\\SecretScanningScanHistory|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve(''); } if ($call === 'GET /repos/{owner}/{repo}/security-advisories') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietA23D6950/Tiet159F5376/Tiet90CCF3DC/Tiet33801188.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1C2726FB/TietF6272968/Tiet3A73798C/Tiet25DBF1C9.php similarity index 98% rename from clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietA23D6950/Tiet159F5376/Tiet90CCF3DC/Tiet33801188.php rename to clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1C2726FB/TietF6272968/Tiet3A73798C/Tiet25DBF1C9.php index df4742d00de..e95f910f450 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietA23D6950/Tiet159F5376/Tiet90CCF3DC/Tiet33801188.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1C2726FB/TietF6272968/Tiet3A73798C/Tiet25DBF1C9.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\TietA23D6950\Tiet159F5376\Tiet90CCF3DC; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet1C2726FB\TietF6272968\Tiet3A73798C; use ApiClients\Client\GitHubEnterpriseCloud\Schema; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet33801188 +abstract readonly class Tiet25DBF1C9 { public const SCHEMA_JSON = '{ "title": "Issue", @@ -1120,6 +1120,26 @@ "type": "string", "format": "uri" }, + "sub_issues_summary": { + "title": "Sub-issues Summary", + "required": [ + "total", + "completed", + "percent_completed" + ], + "type": "object", + "properties": { + "total": { + "type": "integer" + }, + "completed": { + "type": "integer" + }, + "percent_completed": { + "type": "integer" + } + } + }, "state": { "enum": [ "open", @@ -1504,6 +1524,11 @@ "url": "https:\\/\\/example.com\\/" }, "repository_url": "https:\\/\\/example.com\\/", + "sub_issues_summary": { + "total": 5, + "completed": 9, + "percent_completed": 17 + }, "state": "open", "state_reason": "generated", "timeline_url": "https:\\/\\/example.com\\/", @@ -1557,7 +1582,8 @@ public function __construct(#[MapFrom('active_lock_reason')] public string $nodeId, public int $number, #[MapFrom('performed_via_github_app')] public Schema\WebhooksIssue\PerformedViaGithubApp|null $performedViaGithubApp, #[MapFrom('pull_request')] public Schema\WebhooksIssue\PullRequest|null $pullRequest, public Schema\WebhooksIssue\Reactions $reactions, #[MapFrom('repository_url')] - public string $repositoryUrl, public string|null $state, #[MapFrom('state_reason')] + public string $repositoryUrl, #[MapFrom('sub_issues_summary')] + public Schema\WebhooksIssue\SubIssuesSummary|null $subIssuesSummary, public string|null $state, #[MapFrom('state_reason')] public string|null $stateReason, #[MapFrom('timeline_url')] public string|null $timelineUrl, public string $title, #[MapFrom('updated_at')] public string $updatedAt, public string $url, public Schema\WebhooksIssue\User|null $user,) diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet5229E490/Tiet0081962F/Tiet31CBB446/TietE4F4DE72.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet5229E490/Tiet0081962F/Tiet31CBB446/TietE4F4DE72.php new file mode 100644 index 00000000000..973ca1e0c97 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet5229E490/Tiet0081962F/Tiet31CBB446/TietE4F4DE72.php @@ -0,0 +1,43 @@ + 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_201_requestContentType_application_json_responseContentType_application_json_zero(): void + { + $response = new Response(201, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_410_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_410_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationError::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\AddSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('POST', '/repos/generated/generated/issues/12/sub_issues', Argument::type('array'), json_encode(json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->addSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\AddSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ListSubIssuesListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ListSubIssuesListingTest.php new file mode 100644 index 00000000000..f1bf38ff64d --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ListSubIssuesListingTest.php @@ -0,0 +1,107 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ListSubIssuesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listSubIssuesListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ListSubIssuesListing::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + foreach ($result as $item) { + } + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listSubIssuesListing('generated', 'generated', 12, 8, 1); + foreach ($result as $item) { + } + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ListSubIssuesTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ListSubIssuesTest.php new file mode 100644 index 00000000000..5c9601c93c6 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ListSubIssuesTest.php @@ -0,0 +1,99 @@ + 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ListSubIssues::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_404_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listSubIssues('generated', 'generated', 12, 8, 1); + } + + /** @test */ + public function call_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ListSubIssues::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + $data['per_page'] = 8; + $data['page'] = 1; + + return $data; + })([])); + } + + /** @test */ + public function operations_httpCode_410_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(410, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('GET', '/repos/generated/generated/issues/12/sub_issues?per_page=8&page=1', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->listSubIssues('generated', 'generated', 12, 8, 1); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/RemoveSubIssueTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/RemoveSubIssueTest.php new file mode 100644 index 00000000000..1e7b4bcbbc7 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/RemoveSubIssueTest.php @@ -0,0 +1,165 @@ + 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\RemoveSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_200_requestContentType_application_json_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->removeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_400_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(400, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\RemoveSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_400_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(400, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->removeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_400_requestContentType_application_json_responseContentType_application_scim_json_zero(): void + { + self::expectException(ErrorSchemas\ScimError::class); + $response = new Response(400, ['Content-Type' => 'application/scim+json'], json_encode(json_decode(Schema\ScimError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\RemoveSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_400_requestContentType_application_json_responseContentType_application_scim_json_zero(): void + { + self::expectException(ErrorSchemas\ScimError::class); + $response = new Response(400, ['Content-Type' => 'application/scim+json'], json_encode(json_decode(Schema\ScimError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->removeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\RemoveSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('DELETE', '/repos/generated/generated/issues/12/sub_issue', Argument::type('array'), json_encode(json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->removeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\RemoveSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ReprioritizeSubIssueTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ReprioritizeSubIssueTest.php new file mode 100644 index 00000000000..91f05c348e5 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Issues/ReprioritizeSubIssueTest.php @@ -0,0 +1,201 @@ + 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_200_requestContentType_application_json_responseContentType_application_json_zero(): void + { + $response = new Response(200, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Issue::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_403_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_404_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\BasicError::class); + $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationErrorSimple::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationErrorSimple::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_422_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\ValidationErrorSimple::class); + $response = new Response(422, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\ValidationErrorSimple::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } + + /** @test */ + public function call_httpCode_503_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->call(Internal\Operation\Issues\ReprioritizeSubIssue::OPERATION_MATCH, (static function (array $data): array { + $data['owner'] = 'generated'; + $data['repo'] = 'generated'; + $data['issue_number'] = 12; + + return $data; + })(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true))); + } + + /** @test */ + public function operations_httpCode_503_requestContentType_application_json_responseContentType_application_json_zero(): void + { + self::expectException(ErrorSchemas\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::class); + $response = new Response(503, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\Operations\CodeScanning\ListAlertsForEnterprise\Response\ApplicationJson\ServiceUnavailable::SCHEMA_EXAMPLE_DATA, true))); + $auth = $this->prophesize(AuthenticationInterface::class); + $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); + $browser = $this->prophesize(Browser::class); + $browser->withBase(Argument::any())->willReturn($browser->reveal()); + $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); + $browser->request('PATCH', '/repos/generated/generated/issues/12/sub_issues/priority', Argument::type('array'), json_encode(json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)))->willReturn(resolve($response))->shouldBeCalled(); + $client = new Client($auth->reveal(), $browser->reveal()); + $result = $client->operations()->issues()->reprioritizeSubIssue('generated', 'generated', 12, json_decode(Schema\Issues\ReprioritizeSubIssue\Request\ApplicationJson::SCHEMA_EXAMPLE_DATA, true)); + } +} diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index 150174c7831..9138c4f88b5 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -452,8 +452,8 @@ function authHeader(): string assertType('Observable', $client->call('GET /orgs/{org}/rulesets')); assertType('Observable', $client->call('LIST /orgs/{org}/rulesets')); assertType('', $client->call('POST /orgs/{org}/rulesets')); -assertType('iterable', $client->call('GET /orgs/{org}/rulesets/rule-suites')); -assertType('iterable', $client->call('LIST /orgs/{org}/rulesets/rule-suites')); +assertType('Observable', $client->call('GET /orgs/{org}/rulesets/rule-suites')); +assertType('Observable', $client->call('LIST /orgs/{org}/rulesets/rule-suites')); assertType('', $client->call('GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}')); assertType('', $client->call('GET /orgs/{org}/rulesets/{ruleset_id}')); assertType('', $client->call('PUT /orgs/{org}/rulesets/{ruleset_id}')); @@ -886,6 +886,11 @@ function authHeader(): string assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/reactions')); assertType('', $client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/reactions')); assertType('', $client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}')); +assertType('Schema\\Issue', $client->call('DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue')); +assertType('iterable', $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('iterable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('Schema\\Issue', $client->call('POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues')); +assertType('Schema\\Issue', $client->call('PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/issues/{issue_number}/timeline')); assertType('Observable', $client->call('LIST /repos/{owner}/{repo}/issues/{issue_number}/timeline')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/keys')); @@ -1015,7 +1020,7 @@ function authHeader(): string assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations')); assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations')); assertType('', $client->call('POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses')); -assertType('Schema\\SecretScanningScanHistory|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/secret-scanning/scan-history')); +assertType('', $client->call('GET /repos/{owner}/{repo}/secret-scanning/scan-history')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/security-advisories')); assertType('', $client->call('POST /repos/{owner}/{repo}/security-advisories')); assertType('', $client->call('POST /repos/{owner}/{repo}/security-advisories/reports')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 367c78b92c2..e0267ea4368 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -37497,6 +37497,255 @@ paths: enabledForGitHubApps: true category: reactions subcategory: reactions + "/repos/{owner}/{repo}/issues/{issue_number}/sub_issue": + delete: + summary: Remove sub-issue + description: |- + You can use the REST API to remove a sub-issue from an issue. + Removing content too quickly using this endpoint may result in secondary rate limiting. + For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" + and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." + This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass a specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + tags: + - issues + operationId: issues/remove-sub-issue + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#remove-sub-issue + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + sub_issue_id: + type: integer + description: The sub-issue to remove + required: + - sub_issue_id + examples: + default: + value: + sub_issue_id: 6 + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/issue" + examples: + default: + "$ref": "#/components/examples/issue" + headers: + Location: + example: https://api.github.com/repos/octocat/Hello-World/issues/1/sub-issue + schema: + type: string + '400': + "$ref": "#/components/responses/bad_request" + '404': + "$ref": "#/components/responses/not_found" + x-github: + triggersNotification: true + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: sub-issues + "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues": + get: + summary: List sub-issues + description: |- + You can use the REST API to list the sub-issues on an issue. + + This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + + - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + tags: + - issues + operationId: issues/list-sub-issues + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#list-sub-issues + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + - "$ref": "#/components/parameters/per-page" + - "$ref": "#/components/parameters/page" + responses: + '200': + description: Response + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/issue" + examples: + default: + "$ref": "#/components/examples/issue-items" + headers: + Link: + "$ref": "#/components/headers/link" + '404': + "$ref": "#/components/responses/not_found" + '410': + "$ref": "#/components/responses/gone" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: sub-issues + post: + summary: Add sub-issue + description: |- + You can use the REST API to add sub-issues to issues. + + Creating content too quickly using this endpoint may result in secondary rate limiting. + For more information, see "[Rate limits for the API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/rate-limits-for-the-rest-api#about-secondary-rate-limits)" + and "[Best practices for using the REST API](https://docs.github.com/enterprise-cloud@latest//rest/guides/best-practices-for-using-the-rest-api)." + + This endpoint supports the following custom media types. For more information, see "[Media types](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)." + + - **`application/vnd.github.raw+json`**: Returns the raw markdown body. Response will include `body`. This is the default if you do not pass any specific media type. + - **`application/vnd.github.text+json`**: Returns a text only representation of the markdown body. Response will include `body_text`. + - **`application/vnd.github.html+json`**: Returns HTML rendered from the body's markdown. Response will include `body_html`. + - **`application/vnd.github.full+json`**: Returns raw, text, and HTML representations. Response will include `body`, `body_text`, and `body_html`. + tags: + - issues + operationId: issues/add-sub-issue + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#add-sub-issue + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + sub_issue_id: + type: integer + description: The sub-issue to add + replace_parent: + type: boolean + description: Option that, when true, instructs the operation to + replace the sub-issues current parent issue + required: + - sub_issue_id + examples: + default: + value: + sub_issue_id: 1 + responses: + '201': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/issue" + examples: + default: + "$ref": "#/components/examples/issue" + headers: + Location: + example: https://api.github.com/repos/octocat/Hello-World/issues/sub-issues/1 + schema: + type: string + '403': + "$ref": "#/components/responses/forbidden" + '410': + "$ref": "#/components/responses/gone" + '422': + "$ref": "#/components/responses/validation_failed" + '404': + "$ref": "#/components/responses/not_found" + x-github: + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: sub-issues + "/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority": + patch: + summary: Reprioritize sub-issue + description: You can use the REST API to reprioritize a sub-issue to a different + position in the parent list. + tags: + - issues + operationId: issues/reprioritize-sub-issue + externalDocs: + description: API method documentation + url: https://docs.github.com/enterprise-cloud@latest//rest/issues/sub-issues#reprioritize-sub-issue + parameters: + - "$ref": "#/components/parameters/owner" + - "$ref": "#/components/parameters/repo" + - "$ref": "#/components/parameters/issue-number" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + sub_issue_id: + type: integer + description: The id of the sub-issue to reprioritize + after_id: + type: integer + description: The id of the sub-issue to be prioritized after (either + positional argument after OR before should be specified). + before_id: + type: integer + description: The id of the sub-issue to be prioritized before (either + positional argument after OR before should be specified). + required: + - sub_issue_id + examples: + default: + value: + sub_issue_id: 6 + after_id: 5 + responses: + '200': + description: Response + content: + application/json: + schema: + "$ref": "#/components/schemas/issue" + examples: + default: + "$ref": "#/components/examples/issue" + '403': + "$ref": "#/components/responses/forbidden" + '404': + "$ref": "#/components/responses/not_found" + '422': + "$ref": "#/components/responses/validation_failed_simple" + '503': + "$ref": "#/components/responses/service_unavailable" + x-github: + triggersNotification: true + githubCloudOnly: false + enabledForGitHubApps: true + category: issues + subcategory: sub-issues "/repos/{owner}/{repo}/issues/{issue_number}/timeline": get: summary: List timeline events for an issue @@ -77809,6 +78058,20 @@ components: - hooray - eyes - rocket + sub-issues-summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed issue: title: Issue description: Issues are a great way to keep track of tasks, enhancements, and @@ -78003,6 +78266,8 @@ components: "$ref": "#/components/schemas/author-association" reactions: "$ref": "#/components/schemas/reaction-rollup" + sub_issues_summary: + "$ref": "#/components/schemas/sub-issues-summary" required: - assignee - closed_at @@ -98328,6 +98593,20 @@ components: type: - string - 'null' + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: type: string state_reason: @@ -103625,6 +103904,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -104691,6 +104984,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -122307,6 +122614,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -123504,6 +123825,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -124708,6 +125043,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -125937,6 +126286,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -127025,6 +127388,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -127994,6 +128371,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -128945,6 +129336,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -129898,6 +130303,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -130875,6 +131294,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -131821,6 +132254,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -132749,6 +133196,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -134157,6 +134618,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -135154,6 +135629,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -136078,6 +136567,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string @@ -137592,6 +138095,20 @@ components: repository_url: type: string format: uri + sub_issues_summary: + title: Sub-issues Summary + type: object + properties: + total: + type: integer + completed: + type: integer + percent_completed: + type: integer + required: + - total + - completed + - percent_completed state: description: State of the issue; either 'open' or 'closed' type: string